Access denied for user 'ODBC'@'localhost' (using password: N
Posted: 07. March 2007 15:52
i want to run the http://www.shop-script.com/ free system
i have created a username call shopscript and created a database with same name in the phpmyadmin
then i have given the hostname, username,password,database in the system install.php page after clicking the install button the following errors coming:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\shopscript\includes\database\mysql.php on line 13
Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\xampp\htdocs\shopscript\includes\database\mysql.php on line 14
the install.php code
iam trying this for morethan a month
please help me
i have created a username call shopscript and created a database with same name in the phpmyadmin
then i have given the hostname, username,password,database in the system install.php page after clicking the install button the following errors coming:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\xampp\htdocs\shopscript\includes\database\mysql.php on line 13
Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\xampp\htdocs\shopscript\includes\database\mysql.php on line 14
the install.php code
- Code: Select all
// database functions :: MySQL
function db_connect($host,$user,$pass) //create connection
{
(13)$r = mysql_connect($host,$user,$pass);
(14)if(preg_match('/^5\./',mysql_get_server_info($r)))db_query('SET SESSION sql_mode=0');
return $r;
}
iam trying this for morethan a month
please help me