2022-12-12 10:36:05 +00:00
|
|
|
1.mysql -u root -p
|
|
|
|
2.create database huago_production_tool;
|
|
|
|
3.create user 'huago'@'%' identified by 'huago';
|
|
|
|
4.grant all privileges on huago_production_tool.* to 'huago'@'%';
|
|
|
|
5.use huago_production_tool;
|
|
|
|
6.create table user_list (user varchar(20) not null primary key, password text);
|
2022-12-13 02:27:22 +00:00
|
|
|
7.insert into user_list (user, password) values ('root', password('123456'));
|
|
|
|
8.create table root_config (config_key varchar(40) not null primary key, config_value text);
|