The user specified as a definer ('root'@'%') does not exist解决方法
2015-03-13 15:49
489 查看
今天从服务器数据库备份到自己电脑的时候,发现备份的视图打不开了,提示The user specified as a definer ('root'@'%') does not exist。
然后去启动mysql命令窗口,发现不能用,去本地服务上找,发现本地服务上找不到mysql服务了。我的数据库版本是5.5的 解决方法:D:\Program Files\MySQL\MySQL Server 5.5\bin>mysqld.exe -install
接着就可以再本地服务上看到mysql了,然后启动mysql.在mysql命令窗口上
mysql> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
问题解决!!
然后去启动mysql命令窗口,发现不能用,去本地服务上找,发现本地服务上找不到mysql服务了。我的数据库版本是5.5的 解决方法:D:\Program Files\MySQL\MySQL Server 5.5\bin>mysqld.exe -install
接着就可以再本地服务上看到mysql了,然后启动mysql.在mysql命令窗口上
mysql> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
问题解决!!
相关文章推荐
- 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 解决方法
- 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 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- 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 解决方法
- 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 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法
- java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist 解决方法
- mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法