数据库访问异常Access denied for user ''@'localhost' to database 'xinjisudi'
WBOY
Release: 2016-06-13 12:56:23
Original
983 people have browsed it
数据库访问错误Access denied for user ''@'localhost' to database 'xinjisudi' 连接数据库报错 数据库访问错误Access denied for user ''@'localhost' to database 'xinjisudi'
连接数据库代码
$conn=mysql_connect("localhost","","") or die("数据库服务器连接错误".mysql_error());//创建数据库连接
mysql_select_db("xinjisudi",$conn) or die("数据库访问错误".mysql_error());//打开数据库
mysql_query("set names utf8");//解决乱码
?>
啥问题 希望各位帮忙
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