mysql创建与root一样权限用户
发表于:2023-03-22 16:21:49浏览:297次
# 使用root账户进入mysql
mysql -uroot -p密码
# 创建账号
create user 新用户名@'%' identified by '密码';
# 设置权限
grant usage on *.* to 新用户名@'%';
grant all privileges on mysql.* to 新用户名@'%';
grant all privileges on *.* to 新用户名@'%' with grant option;
栏目分类全部>