grant all privileges on 数据库.* to '账号'@'作用域' identified by '密码'; 其中作用域,如果只开放本地使用填:localhost, 远程则填 % 例如: grant all privileges on test.* to 'abc'@'localhost' identified by 'abc123456';
flush privileges;
发布 问题
回到 顶部