code_production/db/database_cfg.txt

7 lines
362 B
Plaintext

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