Home > Database > Mysql Tutorial > mysql-PHP不能连接MYSQL数据库

mysql-PHP不能连接MYSQL数据库

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:45:45
Original
1540 people have browsed it

mysqlphp

PHP连接mysql数据库时
使用如下语句:
$link=mysql_connect("localhost","root","1973")or die("无法创建连接");
echo"成功创建连接";
出现警告:mysql_connect():2002。
还有错误:in C:\myweb\mysql_connect.php on line 9 Fatal error: Maximum execution time of 30 seconds exceeded in C:\myweb\mysql_connect.php on line 9

如果把localhost改为127.0.0.1则出现空白网页

求高手指教~

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template