您的位置:首页 > 数据库 > MySQL

the user specified as a definer('root'@'%') does not exit解决办法

2015-08-06 17:16 537 查看
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">the user specified as a definer('root'@'%') does not exit</span>
主要是权限问题

本地电脑解决 

1、运行cmd命令 输入E:进入盘符 cd进入目录 办法进入mysql的bin目录  我的mysql目录是E:\phpStudy\MySQL\bin

E:
cd phpStudy\MySQL\bin






进入bin目录后再运行  以下命令    ===  liunx服务器上直接从这步开始

mysql -u root -proot




这句 -u 后面这个root是mysql用户名,-p后面root是mysql密码 进入mysql

 

接下来运行下面命令:

grant all privileges on *.* to root@"%" identified by ".";




解决了 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  MySQL