Install MySQL will not say, online tutorial A, generally can
Http://tech.163.com/06/0206/11/299AMBLT0009159K_3.html
That would be nice.
Well configured (mostly
Modify the php.ini file, start some extensions, put
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_openssl.dll
We need to be careful here to see how these are released.
)
<?php
$link =mysql_connect (' localhost ', ' root ', ' yubing ');
if (! $link) echo "Failed!";
else echo "Success!";
Mysql_close ();
?>
This time should not be reported mysql_connect can not find the function.
<?php
Phpinfo ();
?>
You can already see the information about MySQL.
At this time if the top of the code in the Web browser does not error, but the page can not be displayed, is more difficult.
If you are a win7 system:
The PHP folder under the Libmysql.dll test to Windows\System32
(64 people may also copy here to C:\Windows\SysWOW64) The problem should be solved.
Problems with MySQL configuration connection in PHP