为什么会出现这种错误!!!头疼

working_boy 2002-06-22 11:55:19
<?php
$link=mysql_connect("211.47.67.13", "root", "yuchina");
if ($link==1)
{ print("ok.");
exit;
}
print(“databse connect fail:");
print mysql_error();
mysql_close($link);
?>





Warning: Access denied for user: 'yuchina@ns13.kobis.net' (Using password: YES) in /home/yiwu/www/sqlcon.php on line 10

Warning: MySQL Connection Failed: Access denied for user: 'yuchina@ns13.kobis.net' (Using password: YES) in /home/yiwu/www/sqlcon.php on line 10

connect fail show:Access denied for user: 'yuchina@ns13.kobis.net' (Using password: YES)
Warning: Supplied argument is not a valid MySQL-Link resource in /home/yiwu/www/sqlcon.php on line 17
...全文
39 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
nne998 2002-06-24
  • 打赏
  • 举报
回复
你的ip在不允许登陆的范围内, 那台机子是你自己管的吗? 如果是,就自己
设置一下mysql的权限吧。
working_boy 2002-06-23
  • 打赏
  • 举报
回复
我用 的主机是linux系统
working_boy 2002-06-23
  • 打赏
  • 举报
回复
不行,根本连接不了服务器的sql,按照楼上意思写过海几次
出现
error1130:Host '218.0.78.234' is not allowed to connect to this MySql server
webmin 2002-06-23
  • 打赏
  • 举报
回复
你先在shell下用mysql -h 211.47.67.13 -u root -pyuchina databasename试了能进数据库,再把相应参数代进mysql_connect();里.
yejin 2002-06-23
  • 打赏
  • 举报
回复
把密码去掉(让登录口令空着)试试!

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧