View previous topic :: View next topic |
Author |
Message |
zryznar -
Joined: 13 Jun 2003 Posts: 5
|
Posted: Sun Jun 22, 2003 11:46 am Post subject: Can't connect to MySQL server on 'localhost' (10061) |
|
|
This is my first installation of MySql. Probably I put all what is needed into php.ini and my.ini and added phpMyAdmin in serverconfig-advanced-alliases. But I can't get MySQL server:
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can't connect to MySQL server on 'localhost' (10061) in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\login.php on line 9
Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in C:\PROGRAM FILES\ABYSS WEB SERVER\cgi-bin\login.php on line 9
line 9 inlogin.php:
$mysql_version = mysql_get_server_info();
echo $mysql_version;
Help please
Zygmunt |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jun 23, 2003 11:26 pm Post subject: Re: Can't connect to MySQL server on 'localhost' (10061) |
|
|
The problem is that PHP database function can't connect to your database. This can happen when your database server is not running, or when 'localhost' does not resolve to your local computer. In such a case, use 127.0.0.1. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|