Hello there
Hope you can help me with my problem.
When I open the following file in my browser: http://localhost/create_db.php
I am encountering the following error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Norlets_Admin'@'localhost' (using password: YES) in C:\wamp\www\includes\session_handler.php on line 71
The coding in the file in question, session_handler.php, is below:
66 function m_open($a, $b)
67 {
68 global $sess_db;
69
70 if ($sess_db = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME,
71 DATABASE_PASSWORD))
72 {
73 return mysql_select_db(DATABASE_NAME, $_sess_db);
74 }
75 else
76 {
77 return false;
78 }
79 }
as far as I am aware I have granted all the necessary privileges, and I have the user, database name and password correct in the inc.config.php file (see below):
35 /************** DATABASE LOGIN *********************/
36
37 define ("DATABASE_USERNAME","Norlets_Admin");
38 define ("DATABASE_PASSWORD","pass");
39 define ("DATABASE_NAME","norlets");
40 define ("DATABASE_SERVER","localhost"); // often "localhost"
So any advice on where I'm going wrong would be greatly appreciated!