mysql错误:Access denied for user 'root'@'172.19.100.123' to database 'android'
2013-07-30 17:33
429 查看
tomcat运行工程是报错:Access denied for user 'root'@'172.19.100.123' to database 'android'的提示。
错误的原因是root用户在远程连接的MYSQL上面,没有这个新数据库的授权。在本地使用mysql应该不存在这个问题。
解决方法,执行授权:
GRANT ALL PRIVILEGES ON android.* TO 'root'@'172.19.100.123' IDENTIFIED BY 'root' WITH GRANT OPTION;
android为创建的数据库,username和password都为root。请按实际要求进行更改。
该命令详细的使用方法,请参考host xxx is not allowed to connect to this MySQL
错误的原因是root用户在远程连接的MYSQL上面,没有这个新数据库的授权。在本地使用mysql应该不存在这个问题。
解决方法,执行授权:
GRANT ALL PRIVILEGES ON android.* TO 'root'@'172.19.100.123' IDENTIFIED BY 'root' WITH GRANT OPTION;
android为创建的数据库,username和password都为root。请按实际要求进行更改。
该命令详细的使用方法,请参考host xxx is not allowed to connect to this MySQL
相关文章推荐
- [mysql_error]: Access denied for user 'root'@'%' to database 'image' 错误解决
- 解决mysql创建数据库后出现:Access denied for user 'root'@'%' to database 'xxx'的问题
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- 远程 mysql access denied for user 'root'@'%' to database xxxx
- Mysql错误: Access denied for user ''@'localhost' to database 'mysql'
- mysql创建数据库后出现Access denied for user 'root'@'%' to database 'xxx'
- 安装mysql 出现错误Unable to update security settings. Access denied for user 'root'@'localhost' 的解决
- CGI+MySQL: Access denied for user 'root'@'%' to database '
- 遇到错误ERROR 1044 (42000): Access denied for user ''@'localhost'to database 'mysql',的解决办法
- mysql创建数据库后出现Access denied for user 'root'@'%' to database ‘xxxx’
- MySQL Access denied for user 'root'@'%' to database 'xxx'
- error 1044 (42000):access denied for user ''@'localhost' to database 'mysql'错误解决方案
- ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- Mysql初次启动修改root账户密码的方法(解决Access denied for user ''@'localhost' to database 'mysql的方法)
- mysql安装时的粗心错误:last error unable to update security settings. access denied for user 'root' @ 'localh
- 1044-Access denied for user 'root'@'%' to database databaseTest 错误
- mysql切换数据库时会报错:ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'mysql'
- MySQL Access denied for user 'root'@'%' to database 'xxx'
- mysql忘记root密码或报错:ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘xx‘