php应用mysql扩展库连接mysql服务器失败

WBOY
Release: 2016-06-13 12:41:51
Original
714 people have browsed it

php使用mysql扩展库连接mysql服务器失败
在php使用mysql扩展库扩连mysql服务器的时候,总是出错。说是页面打不开,详细错误也没有报,我试了一下其他的错误都会报!在php.ini 文件中也进行了配置。使用php_info()函数也能够在页面中看到Mysql。很是费解。
一下是我连接数据库的语句:
$link=mysql_connect("localhost:3306","root","123456");
if(!$link){
die("错误信息是".mysql_error());
}
很是费解。不知道是为什么。
以下是我php.ini文件中的配置。
extension_dir = "D:/php/ext"
extension=php_msql.dll

MySQL 扩展 服务器
Related labels:
source:php.cn
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