Can't connect to MySQL server on 'localhost' (10061)

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
zryznar
-


Joined: 13 Jun 2003
Posts: 5

PostPosted: Sun Jun 22, 2003 11:46 am    Post subject: Can't connect to MySQL server on 'localhost' (10061) Reply with quote

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 View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jun 23, 2003 11:26 pm    Post subject: Re: Can't connect to MySQL server on 'localhost' (10061) Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group