Problems with MySQL configuration connection in PHP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.