-- 创建用户 CREATE USER `jackie` @`127.0.0.1` IDENTIFIED BY "root"; -- 用户授权(授权操作所有库和表) GRANT ALL ON *.* TO `jackie` @`127.0.0.1` WITH GRANT OPTION; -- 用户授权(授权操作指定库和表) GRANT ALL ON 数据库名.* TO `用户名` @`127.0.0.1` WITH GRANT OPTION;