villermen Posted June 27, 2009 Share Posted June 27, 2009 I've just installed MySQL on my computer, and got it all running now.The problem is when I try to connect to MySQL via PHP, it gives an error message.The error message given is: Could not connect: Access denied for user 'ODBC'@'localhost' (using password: NO)PHP Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in [[path to file (hid it)]] on line 2 The .php file run only contains the following part from the MySQL connect tutorial: <?php$con = mysql_connect();if (!$con) { die('Could not connect: ' . mysql_error()); }?> Why and how is the acces denied?I can't find out where the problem lies, can anybody help me fixing it?Website:IIS (run from localhost)PHP 5.2.10 (run from localhost/linked to IIS/working fine/mysql extension supported)MySQL 5.1 (configured with no password and username)Gr.Villermen Link to comment Share on other sites More sharing options...
villermen Posted June 27, 2009 Author Share Posted June 27, 2009 test Link to comment Share on other sites More sharing options...
villermen Posted June 27, 2009 Author Share Posted June 27, 2009 Oops, sorry for misposting, I will open another at the right forum Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.