mysqladmin:在'localhost'连接到服务器失败 - MySQL [英] mysqladmin: connect to server at 'localhost' failed - MySQL

查看:403
本文介绍了mysqladmin:在'localhost'连接到服务器失败 - MySQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我收到的错误就像

[sait6 @ localhost treestructure] $ mysqladmin -h localhost -u root -p create bedrock

输入密码:******

mysqladmin:在''localhost'连接到服务器'失败

错误:''拒绝访问用户''root''@''localhost''(使用密码:YES)''


[sait6 @ localhost treestructure] $ mysqladmin --no-defaults -u root ver

mysqladmin:在''localhost'连接到服务器'失败

错误:''访问被拒绝用户''root'''''localhost''(使用密码:NO)''


当我输入mysql并开始更改密码时我得到了


mysql> INSERT INTO用户(主机,用户,密码)

- > VALUES(''%'',''sait6'',''sait123'');

ERROR 1046(3D000):未选择数据库


请给出建议以消除上述问题。


比你好。

-RAJU

hi all,

I got the error like
[sait6@localhost treestructure]$ mysqladmin -h localhost -u root -p create bedrock
Enter password: ******
mysqladmin: connect to server at ''localhost'' failed
error: ''Access denied for user ''root''@''localhost'' (using password: YES)''

[sait6@localhost treestructure]$ mysqladmin --no-defaults -u root ver
mysqladmin: connect to server at ''localhost'' failed
error: ''Access denied for user ''root''@''localhost'' (using password: NO)''


and when i type mysql and start to change some password i got

mysql> INSERT INTO user (Host,User,Password)
-> VALUES(''%'',''sait6'',''sait123'');
ERROR 1046 (3D000): No database selected

please give suggestion to eradicate the above problem.

thanyou.
-RAJU

推荐答案

mysqladmin -h localhost -u root -p create bedrock

输入密码:******

mysqladmin:在''localhost'连接到服务器'失败

错误:''访问被拒绝用户''root'''''localhost''(使用密码:YES)''


[sait6 @ localhost treestructure ]
mysqladmin -h localhost -u root -p create bedrock
Enter password: ******
mysqladmin: connect to server at ''localhost'' failed
error: ''Access denied for user ''root''@''localhost'' (using password: YES)''

[sait6@localhost treestructure]


mysqladmin --no-defaults -u root ver

mysqladmin:在''localhost'连接到服务器'失败

错误:''访问被拒绝用户''root'''''localhost''(使用密码:NO)''


当我输入mysql并启动时我改变了一些密码


mysql> INSERT INTO用户(主机,用户,密码)

- > VALUES(''%'',''sait6'',''sait123'');

ERROR 1046(3D000):未选择数据库


请给出建议以消除上述问题。


比你好。

-RAJU
mysqladmin --no-defaults -u root ver
mysqladmin: connect to server at ''localhost'' failed
error: ''Access denied for user ''root''@''localhost'' (using password: NO)''


and when i type mysql and start to change some password i got

mysql> INSERT INTO user (Host,User,Password)
-> VALUES(''%'',''sait6'',''sait123'');
ERROR 1046 (3D000): No database selected

please give suggestion to eradicate the above problem.

thanyou.
-RAJU



大家好,


我收到的错误就像

[sait6 @ localhost treestructure]
hi all,

I got the error like
[sait6@localhost treestructure]


这篇关于mysqladmin:在'localhost'连接到服务器失败 - MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆