1045-Acess denied for user:'root'@'192.100.1.243'(Using password:YES)
2016-01-16 17:29
573 查看
Navicat连接mysql时报错:
1045-Acess denied for user:'root'@'192.100.1.243'(Using password:YES)
解决办法:
login as: root
root@192.168.0.192's password:
Last failed login: Sat Jan 16 16:51:04 CST2016 from 192.168.198.109 on ssh:notty
There were 8 failed login attempts sincethe last successful login.
Last login: Sat Jan 16 16:07:40 2016
[root@NeoKylin-CNVL ~]# mysql -uroot
ERROR 1045 (28000): Access denied for user'root'@'localhost' (using password: NO)
[root@NeoKylin-CNVL ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.6.25 MySQL CommunityServer (GPL)
Copyright (c) 2000, 2015, Oracle and/or itsaffiliates. All rights reserved.
Oracle is a registered trademark of OracleCorporation and/or its
affiliates. Other names may be trademarksof their respective
owners.
Type 'help;' or '\h' for help. Type '\c' toclear the current input statement.
给予授权
mysql> grant all on *.* to root@"%"identified by "root";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
重新启动mysql
[root@NeoKylin-CNVL ~]# /etc/init.d/mysqlrestart
Shutting down MySQL.. [ 确定 ]
Starting MySQL.... [ 确定 ]
[root@NeoKylin-CNVL ~]#
测试连接正常,如图所示:
1045-Acess denied for user:'root'@'192.100.1.243'(Using password:YES)
解决办法:
login as: root
root@192.168.0.192's password:
Last failed login: Sat Jan 16 16:51:04 CST2016 from 192.168.198.109 on ssh:notty
There were 8 failed login attempts sincethe last successful login.
Last login: Sat Jan 16 16:07:40 2016
[root@NeoKylin-CNVL ~]# mysql -uroot
ERROR 1045 (28000): Access denied for user'root'@'localhost' (using password: NO)
[root@NeoKylin-CNVL ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.6.25 MySQL CommunityServer (GPL)
Copyright (c) 2000, 2015, Oracle and/or itsaffiliates. All rights reserved.
Oracle is a registered trademark of OracleCorporation and/or its
affiliates. Other names may be trademarksof their respective
owners.
Type 'help;' or '\h' for help. Type '\c' toclear the current input statement.
给予授权
mysql> grant all on *.* to root@"%"identified by "root";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
重新启动mysql
[root@NeoKylin-CNVL ~]# /etc/init.d/mysqlrestart
Shutting down MySQL.. [ 确定 ]
Starting MySQL.... [ 确定 ]
[root@NeoKylin-CNVL ~]#
测试连接正常,如图所示:
相关文章推荐
- mysql Access denied for user ‘root’@’localhost’ (using password: YES)解决方法
- Serv-U 550 Permission denied 的解决办法
- FTP 550 Permission denied 只能建文件夹,没法删除及上传文件的原因说明
- 脚本中出现 window.open() access is denied - 拒绝访问 情况一则及分析
- winxp 安装MYSQL 出现Error 1045 access denied 的解决方法
- mysql ERROR 1044 (42000): Access denied for user ''@'localhost' to database
- PHP使用Session遇到的一个Permission denied Notice解决办法
- No result defined for action com.tarena.action.HelloAction and result success
- flashplayer debug for firefox
- 解决discuz论坛无法显示短消息及Access denied for agent changed
- git@git.oschina.net's password: Permission denied
- 关于登录mysql时遇到的 error1045 错误
- 1045 - Access denied for user 'root'@'localhost'(using password:YES)
- 日本의 侵略
- ld: library not found for -lPods-AFNetworking的问题(2015年11月29日更新)
- No result defined for action org.strutsOne.web.SumAction and result
- Access to file"\\***\user.txt" denied
- Again Prime? No Time.
- LCM Cardinality
- The Super Powers