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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby devarmagan » 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

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
devarmagan
 
Posts: 2
Joined: 07. March 2007 15:42

Postby Wiedmann » 07. March 2007 18:42

The variables $host, $user and $pass have no value.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby devarmagan » 08. March 2007 14:51

Wiedmann wrote:The variables $host, $user and $pass have no value.



ok how to solve it
devarmagan
 
Posts: 2
Joined: 07. March 2007 15:42

Postby Wiedmann » 08. March 2007 15:52

ok how to solve it

This is a question?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 103 guests