Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\liuyanban\config.php on line 3
数据库连接失败
我的代码 :
header('Content-Type:text/html;charset=utf-8');
$conn=mysql_connect('localhost','root','111111')or die("数据库连接失败");
mysql_select_db("guestbook")or die("数据表连接失败");
?>
不需要端口号?
看楼下怎么说
不指定数据库
PHP不懂
MySQL
我的新博客 http://www.xiaxiaoyuzone.com
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号