Mysql添加用户使用可以对mysql数据库用户表有操作权限的用户名登陆mysqlinsert into user(Host,User,Password) values('%','name','password');如果work用户没有登陆权限,则killall mysqldshare/mysql/mysql.server startgrant all on *.* to work@'%' identified by "password"; MySQL赋予用户权限的命令的简单格式为gr…
1.本地环境 CentOS Linux release 7.5.1804 (Core) mysql Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using EditLine wrapper 2.以root用户登录Mysql mysql -uroot -proot 3.切换到mysql数据库 use mysql 4.添加用户 //只允许指定ip连接 create user '新用户名'@'localhost' identified by '密码'; /…