摘要:Mysql - add user
登入最高權限
mysql -u[user] -p[password]
add user
CREATE USER 'user_name'@'host_ip' IDENTIFIED BY 'password';
GRANT USAGE ON * . * TO 'user_name'@'host_ip' IDENTIFIED BY 'password' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
修改權限
GRANT ALL PRIVILEGES ON `database_name` . * TO 'user_name'@'host_ip' WITH GRANT OPTION ;