MySql的一些错误解决方法
2012-02-29 15:19
525 查看
'Accessdenied for user 'root'@'localhost' (using password: YES)'解决方法:
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放开权限:
首先计入到mysql的客户端命令行。(使用mysql)
grantall privileges on *.* to 'root'@'localhost' identified by '你的密码' with grantoption;
flushprivileges;
执行完这两条命令之后使用mysql –p之后敲入密码就可以了。
ERROR 1396 (HY000): Operation CREATE USER failed解决方法:
这是mysql的一个bug。需要flush privileges,步骤如下:
Drop user admin@localhost;
Flush privileges;
Create user admin@localhost identified by ‘admins_password’即可
在grant权限的时候访问拒绝的解决方法:
这是登录服务器的用户不具备grant权限,把grant权限赋予登录用户即可。
grantall privileges on *.* to 'root'@'localhost' identified by '你的密码' with grantoption;
从错误中可以看出你的权限是对localhost的访问没有放开。
于是你可以使用如下命令来放开权限:
首先计入到mysql的客户端命令行。(使用mysql)
grantall privileges on *.* to 'root'@'localhost' identified by '你的密码' with grantoption;
flushprivileges;
执行完这两条命令之后使用mysql –p之后敲入密码就可以了。
ERROR 1396 (HY000): Operation CREATE USER failed解决方法:
这是mysql的一个bug。需要flush privileges,步骤如下:
Drop user admin@localhost;
Flush privileges;
Create user admin@localhost identified by ‘admins_password’即可
在grant权限的时候访问拒绝的解决方法:
这是登录服务器的用户不具备grant权限,把grant权限赋予登录用户即可。
grantall privileges on *.* to 'root'@'localhost' identified by '你的密码' with grantoption;
相关文章推荐
- Windows下MySQL一些错误的解决解决方法
- 自己做的mysql主从同步以及一些错误解决方法
- MYSQL1130错误的解决方案+通过Navicat for MySQL远程连接的时候报错mysql 1130的解决方法
- cmd可以链接mysql,但是mysql-front/navicat 1045错误解决方法
- mySQL 1130错误解决方法
- Git 一些错误的解决方法
- 关于mysql版本升级后,原有的数据无法访问的解决方法,mysql错误代码:1558
- cacti使用中的一些错误及解决方法
- MySQL下“Can’t create/write to file xxx (Errcode: 13)”错误的解决方法
- mysql Access denied for user root@localhost错误解决方法总结(转)
- mysql 发生系统错误1067的解决方法
- 记录一些意外:ORA-00020:maximum number of processes (1500) exceeded 错误解决方法
- 绿色mysql初始化以及遇到一些问题解决方法
- mysql Incorrect information in file 错误解决方法数据库为innodb
- VC6.0的一些路径设置及常见错误Error spawning cl.exe的解决方法!
- mysql常见错误提示及解决方法
- Linux连接MySQL出现1045错误 解决方法
- 【MySQL】 [1045]Access denied for user ‘root’@’localhost’ 错误解决方法总结
- 关于win 8系统安装mysql报2502、2503错误解决方法
- 关于MySQL的1067错误解决方法