Click to See Complete Forum and Search --> : Warning: MySQL Connection Failed......
I've phptriad.exe (Apache web server, PHP, MySQL) installed under WindowsXP.
And when I access to my phpmyadmin, I got the below error message:
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255
Error
Does anyone know how to solve this problem? Thanks before!
nb: I didn't have this problem under Windows98
jrmad
12-12-2001, 05:54 PM
hey chery,
be so kind to post some of your lines from the lib.inc.php. so we or i may detect the error ....
regards
JR
chery wrote:
-------------------------------
I've phptriad.exe (Apache web server, PHP, MySQL) installed under WindowsXP.
And when I access to my phpmyadmin, I got the below error message:
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line 255
Error
Does anyone know how to solve this problem? Thanks before!
nb: I didn't have this problem under Windows98
thanks for replying.
here is the code (i dont know exactly where the line 255 ):
if (empty($cfgServer['port']))
$link = $connect_func($cfgServer['host'], $cfgServer['user'], $cfgServer['password']) or mysql_die();
else
$link = $connect_func($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or mysql_die();
$result = mysql_query("SELECT VERSION() AS version") or mysql_die();
$row = mysql_fetch_array($result);
define("MYSQL_MAJOR_VERSION", substr($row["version"], 0, 4));
nb: now i'm also having this problem under win98
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.