grant all privileges on 库名.* to 用户名@127.0.0.1 identified by '用户密码'; flush privileges 没了 转载于:https://www.cnblogs.com/wodetian/p/7085537.html