PHP5 connection problem with MYSQL
(':)') know php 5 has seperated from mysql 4.1 version database server, javascript:insertsmilie
Smile :)anyone know how to configure the PHP 5 to "call" mysql 4.1 to execute the database query?
1.)i've uncomment the php_mysql.dll on php.ini inside apache.
2.) copy "some" dll into the system 32 in the windows installation folder
3.)set the path to reach php c:\php; inside PATH environment.
what else have i miss out?
i've got this error when running the code!
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in G:\Program Files\Apache Group\Apache2\htdocs\a\conn.php on line 4
Could not connect: Can't connect to MySQL server on 'localhost' (10061)
and my coding source is:
<?php
$link = mysql_connect('localhost', 'root@localhost', '@@@')
or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
?>
|