使用jdbc连接mysql 出现 java.sql.Exception: this specifer does...(root@'%')..doesn't exist.
2010-06-14 19:27
886 查看
异常大概就是讲用户不存在:
我们可以使用一下脚本来解决:
Grant all privileges on *.* to root@localhost identified by "ichibanposdatabasemysql2008_03";
Grant all privileges on *.* to root@"%" identified by "ichibanposdatabasemysql2008_03";
ichibanposdatabasemysql2008_03 替换成你实际的root密码
这样的话,就可以解决碰到的问题了。
我们可以使用一下脚本来解决:
Grant all privileges on *.* to root@localhost identified by "ichibanposdatabasemysql2008_03";
Grant all privileges on *.* to root@"%" identified by "ichibanposdatabasemysql2008_03";
ichibanposdatabasemysql2008_03 替换成你实际的root密码
这样的话,就可以解决碰到的问题了。
相关文章推荐
- java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist
- mySql问题:The user specified as a definer ('root'@'%') does not exist 解决方法
- java连接linux中mysql出现:Access denied for user 'root'@'192.168.91.1' (using password: YES)
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- MYSQL操作中错误The user specified as a definer ('root'@'%') does not exist的解决
- MySQL ('root'@'%') does not exist 的问题
- MySQL ('root'@'%') does not exist的问题
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- Hive连接MYSQL数据OK,查询出现in thread "Thread-18" java.lang.IllegalArgumentException:Does not contain a vali
- MYSQL操作中错误The user specified as a definer ('root'@'%') does not exist的解决
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- MYSQL : "THE USER SPECIFIED AS A DEFINER ('ROOT'@'%') DOES NOT EXIST"
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- 使用TOMCAT5.5连接池连接mysql(解决Cannot create JDBC driver of class '' for connect URL 'null')
- Android Caused by: java.lang.IllegalArgumentException: column '_id' does not exist
- 使用TOMCAT5.5连接池连接mysql(解决Cannot create JDBC driver of class '' for connect URL 'null')
- mysqldump报错'The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES'
- java.lang.IllegalArgumentException: column '_id' does not exist