MySQL出错了

来源:百度知道 编辑:UC知道 时间:2024/06/23 00:52:43
Access denied for user 'goushi'@'localhost' (using password:YES)
创建时SQL语句:grant select,insert,update,delete on Linux.* to goushi@"%" identified by "123456"
密码正确的.登录时出现

grant select,insert,update,delete on Linux.* to goushi@"%" identified with grant option;
需要with grant option;才能把权限传递下去

没有权限,要用管理员登录才有这个权限的,一般都是root,或是你没输入密码,基本上在打命令的时候带 -p参数来输入密码