linux 新增mysql用户及设置全部权限


1.create user 'qdhl'@'%' identified by 'qdhl2019O#x'; //创建用户及设置密码

2.GRANT USAGE ON *.* TO 'qdhl'@'%' IDENTIFIED BY 'qdhl2019O#x' WITH GRANT OPTION; //设置权限

3.flush privileges; //刷新使其生效

参考学习文章:
https://blog.csdn.net/luohongtuCSDN/article/details/80623263
https://www.cnblogs.com/pxblog/p/10721939.html

你可能感兴趣的:(linux 新增mysql用户及设置全部权限)