添加数据库配置文档
This commit is contained in:
parent
e82d20cdac
commit
9bc6176b9c
|
@ -12,11 +12,11 @@ int main()
|
|||
HGUInt count;
|
||||
HGPdtToolDb_GetUserList(userMgr, name, 256, &count);
|
||||
|
||||
HGPdtToolDb_DestroyUser(userMgr, "huago");
|
||||
//HGPdtToolDb_DestroyUser(userMgr, "huago");
|
||||
|
||||
HGPdtToolDb_CreateUser(userMgr, "huago", "123456");
|
||||
//HGPdtToolDb_ModifyPassword(userMgr, "123456", "huago");
|
||||
//HGPdtToolDb_SetPassword(userMgr, "huago", "qqq");
|
||||
//HGPdtToolDb_CreateUser(userMgr, "huago", "123456");
|
||||
//HGPdtToolDb_ModifyPassword(userMgr, "1234", "123456");
|
||||
//HGPdtToolDb_SetPassword(userMgr, "huago", "654321");
|
||||
|
||||
HGPdtToolDbDevice device = NULL;
|
||||
HGPdtToolDb_OpenDevice(userMgr, "G123456", &device);
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
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'));
|
Loading…
Reference in New Issue