Home >Backend Development >PHP Tutorial >PHP链接不上MYSQL,该怎么解决

PHP链接不上MYSQL,该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:23:48907browse

PHP链接不上MYSQL
$con = mysql_connect("localhost","root","123456");
if (!$con){
die('Could not connect: ' . mysql_error());
}else{
echo 'suc';
}
就写了这么一段程序。
结果,就提示下边错误:
PHP has encountered an Access Violation at 0155AC5A
麻烦知道的朋友,给指条明路。

------解决方案--------------------
情况是多样的,看看这里可能有帮助 http://www.google.com.hk/search?client=aff-cs-360chromium&ie=UTF-8&q=PHP+has+encountered+an+Access+Violation
------解决方案--------------------
php违规访问:
http://www.jb51.net/article/10072.htm

Statement:
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