连接mysql服务器出现错误提示 error no. 1045 解决方法
(2013-03-15 10:30:38)
标签:
mysqlsqlyogerrorno.1045 |
分类: 计算机应用 |
在 windows 用 sqlyog 远程登录 mysql
服务器时不能连接,出现提示:error no. 1045 access denied for user 'root'@'*****'
(using password:YES)。
说明:密码输入确定是对的;其中的
‘****’为计算机名(即提示中出现的),不一定是 localhost。
试了好几种方法不行,最后通过下面方法解决:
在服务器上通过命令行登录 mysql,然后输入命令语句:
grant all on *.* to 'root'@'计算机名' identified by '密码';
flush privileges;
完成。就这么简单!