免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4673 | 回复: 6
打印 上一主题 下一主题

Access denied for user: 'root@localhost' [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-17 22:38 |只看该作者 |倒序浏览
我编译好mysql之后用mysqladmin 设置密码出现了如下的问题不知道什么原因:

-bash-2.05b# ./mysqladmin -u mysql -p password
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'mysql@localhost' (Using password: YES)'

-bash-2.05b# ./mysqladmin -u root -p password
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'

谢了

论坛徽章:
0
2 [报告]
发表于 2003-03-18 00:55 |只看该作者

Access denied for user: 'root@localhost'

use "grant" to let that user can access mysql

论坛徽章:
0
3 [报告]
发表于 2003-03-18 06:03 |只看该作者

Access denied for user: 'root@localhost'

可是如果更本进不去mysql,或者连不上mysql这个database的话,如何能够进入mysql呢,除了重装?谢谢!

论坛徽章:
0
4 [报告]
发表于 2003-03-19 00:30 |只看该作者

Access denied for user: 'root@localhost'

Did you start mysql? check this with "ps -ef|grep mysql". Reinstall it if you can not enter mysql.

论坛徽章:
0
5 [报告]
发表于 2003-03-20 05:16 |只看该作者

Access denied for user: 'root@localhost'

[quote]原帖由 "peter333"]use "grant" to let that user can access mysql[/quote 发表:



我在mysql下用
mysql>;grant all
         >;on *
         >;to root identified by 'xxxx'
         >;with grant option;
之后虽然提示ok了,但是我的mysql还是没有设上密码。

论坛徽章:
0
6 [报告]
发表于 2003-03-20 09:31 |只看该作者

Access denied for user: 'root@localhost'

我认为是属于连接问题

论坛徽章:
0
7 [报告]
发表于 2003-08-07 17:52 |只看该作者

Access denied for user: 'root@localhost'

我现在是照弹头说的做出现如下情况
[root@xblinux root]# mysql -u root  
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 3.23.52

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>; use mysql
ERROR 1044: Access denied for user: '@localhost' to database 'mysql'
mysql>; grant all
    ->; on *
    ->; to root identified by 'langlang'
    ->; with grant option;
ERROR 1045: Access denied for user: '@localhost' (Using password: NO)

我该如何处理呢?重装过MYSQL,望解答。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP