Page 1 of 1

Access denied for user 'ODBC'@'localhost' (using password: N

PostPosted: 07. March 2007 15:52
by devarmagan
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

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

PostPosted: 07. March 2007 18:42
by Wiedmann
The variables $host, $user and $pass have no value.

PostPosted: 08. March 2007 14:51
by devarmagan
Wiedmann wrote:The variables $host, $user and $pass have no value.



ok how to solve it

PostPosted: 08. March 2007 15:52
by Wiedmann
ok how to solve it

This is a question?