Hi all,
maybe this isn't a php question, but a MySQL question.
If so I'm sorry for asking you guys to help me :)
I know this question is asked often in NGs, but I couldn't find the
answer that works for me.
I've just installed my server with following:
Apache2, PHP5 and MySQL 4.1.12 on Windows 2000 Server.
Apache and PHP are funtioning properly (I can open a page like
phpinfo() ).
But now i've come upon a problem with MySQL.
When i try to run a simple PHP script like:
mysql_connect("localhost", "root", "password") or die (mysql_error());
I get the following error:
Can't connect to MySQL server on 'localhost' (10061)
I've tried several different addresses like: localhost, 127.0.0.1,
server01, 192.168.0.3 all with same result.
Loopback address should work cause I configured MySQL that way.
The MySQL service is started.
I don't know whether it's a good way to test the MySQL server but on
commandline I typed:
mysql --user=user_name --password=your_password
And I got mysql> commandline.
Can someone please help me find the problem and/or give a better way of
testing.
Thanks in advance for your replies.
P. Hordijk