Heim >Backend-Entwicklung >PHP-Tutorial > PHP链接不上MYSQL,该怎么解决
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