标签:登录 ges plain sql general color har ant bsp
1.登录MySQL
mysql -u root -p
2.添加新用户(允许所有ip访问)
create user ‘test‘@‘*‘ identified by ‘123456‘;
#test:用户名,*:所有ip地址,123456:密码
CREATE DATABASE test_db DEFAULT CHARSET utf8mb4 COLLATE utf8mb4_general_ci;
grant all privileges on `test_db`.* to ‘test‘@‘%‘ identified by ‘123456‘;
flush privileges;
6. 修改用户的IP访问权限
use mysql;
update user set host = ‘%‘ where user =‘test‘;
标签:登录 ges plain sql general color har ant bsp
原文地址:https://www.cnblogs.com/faberbeta/p/mysql002.html