code_production/db/database_cfg.txt

8 lines
455 B
Plaintext
Raw Normal View History

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);
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);