当Navicat for Mysql出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes)
来源:互联网 发布:linux中的grep命令 编辑:程序博客网 时间:2024/05/22 13:53
今天被这个问题困住了好久,其实网上好多说的都是对的,只不过我一开始不明白,所以也不会,我就把我解决该问题的流程讲一下,如果你得到了启示,那么恭喜你解决一个问题,如果看完还是不会,那就继续去搜答案吧,总会找到的。
首先我讲一下我的情况,我开发的电脑用的是windows 7操作系统,服务器是linux的操作系统,mysql安装在linux上面。
就像连接我自己的电脑一样填入信息,出现了这么个错误2003 -Can't connection to MySQL server on '服务器ipAddress'(10038)
于是乎我就开始上网上搜答案,说是我服务器的ip地址或者是服务器mysql的端口号不对,于是乎我就查linux怎么查mysql的端口号:
操作是在linux终端输入netstat -anp|grep mysqld,输出的端口号为8000.
8000!我也不知道是哪个天才居然把端口号设置成了8000!简直就是……太(cao)狗(ta)血(mei)了
然后我就把Navicat 连接中的端口号改成了8000
然后就出现了1045 -Access denied for user'root'@'ipAddress'(using password :yes)这个错误
然后然后再然后,我就又查了一下,说是我服务器上的mysql没有给本地授权,于是乎我就在linux上登录mysql
就是在linux上输入mysql -uroot -p ,然后回车输入数据库的密码
之后就是授权了,最开始我是在我电脑上cmd命令窗口中ipconfig中获得的我电脑的ip地址,然后授权
授权命令大概是这样的 grant all on to *.* 'root'@'我电脑的ip地址' identified by '密码'; (这一段命令是在linux终端进入mysql后输入)
之后依旧出现1045 -Access denied for user'root'@'ipAddress'(using password :yes)这个错误,唉我就不淡定了,怎么了呢就,后来我读了一下这个错误,这个错误里面的ip地址跟我ipconfig出来的ip地址不一样啊,why?啊然后我就重新授权了一下,ip地址改成了错误中提到的ip地址,然后!就连通了……
说话啰嗦了点,就这样了~
- 当Navicat for Mysql出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes)
- 当Navicat for Mysql出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes)
- Navicat for Mysql建立本地连接出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes) 的问题
- Navicat for Mysql建立本地连接出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes) 的问题
- mysql 出现 Access denied for user'root'@'ipAddress'(using password :yes)
- 关于Navicat mysql连接出现1045 access denied for user 'root'@'localhost' using password: yes
- navicat连接数据库出现1045 access denied for user 'root'@'localhost' using password yes
- navicat(MySql)错误1045 Access denied for user 'root'@'localhost' (using password:YES)
- 解决Navicat连接的时候出现了1045 -Access denied for user'root'@'ip'(using password :yes)--mysql
- mysql 出现 1045 access denied for user 'root'@'localhost' using password yes 解决办法
- mysql登录出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题
- mysql出现1045 - Access denied for user 'root'@'localhost' (using password: YES)错误
- mysql出现:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 错误
- MySql 出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES).问题解决方案
- 关于MySql登录出现错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)
- MySQL登录出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- linux安装MySQL出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- SharePoint Server 2016 update
- Vi编辑器基础使用
- Ubuntu ☞ 安装配置PPTP VPN服务
- 同一进程中线程共享和独占的资源
- 黑马程序员——OC学习——@class的使用
- 当Navicat for Mysql出现 1045 -Access denied for user'root'@'ipAddress'(using password :yes)
- Wamserver 添加虚拟主机的方式
- Linux基础命令
- C++终极复习篇(五)----STL标准模板库
- acm2056 神烦 超限 超限
- Unity 如何减少DrawCall
- 个人重要信息备份
- DOPE OPENCART 自适应主题模板 ABC-0701
- maven -- 导入本地jar包