SQLyog连接mysql服务器出现错误提示 error no. 1045 解决方法
(2015-10-16 16:50:47)
标签:
mysqlsqlyogerrorno1045 |
分类: 数据库 |
在 windows 用SQLyog远程登录 mysql 服务器时不能连接,出现提示:error no. 1045
access denied for user 'root'@'*****' (using password:YES)。
说明:密码输入确定是对的;
其中的 ‘****’为计算机名(即提示中出现的),不一定是 localhost。
解决步骤:
首先打开运行窗口输入cmd进入DOS界面
Step1: cd C:\Program Files\MySQL\MySQL Server 5.6\bin
Step2: mysql(不需要密码)或者mysql -uroot(不需要密码)或者mysql -u root
-p(需要输入密码)
Step3: grant all on *.* to 'root'@'localhost' identified by
'123456';
Step4: flush privileges;