2019-07-28 10:31:56 +08:00
========================================================================
<20> <> <EFBFBD> <EFBFBD> ̨Ӧ<CCA8> ó<EFBFBD> <C3B3> <EFBFBD> : mysql <20> <> Ŀ<EFBFBD> ſ <EFBFBD>
2014-11-19 00:25:21 +08:00
========================================================================
2019-07-28 10:31:56 +08:00
Ӧ<EFBFBD> ó<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ϊ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> mysql Ӧ<> ó<EFBFBD> <C3B3> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> mysql Ӧ<> ó<EFBFBD> <C3B3> <EFBFBD>
<EFBFBD> <EFBFBD> ÿ<EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ժҪ<EFBFBD> <EFBFBD>
2014-11-19 00:25:21 +08:00
mysql.vcproj
2019-07-28 10:31:56 +08:00
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ӧ<EFBFBD> ó<EFBFBD> <C3B3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɵ<EFBFBD> VC++ <20> <> Ŀ<EFBFBD> <C4BF> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ŀ<EFBFBD> ļ<EFBFBD> <C4BC> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> й<EFBFBD> <D0B9> <EFBFBD> <EFBFBD> ɴ<EFBFBD> <C9B4> ļ<EFBFBD> <C4BC> <EFBFBD> Visual C++ <20> 汾<EFBFBD> <E6B1BE> <EFBFBD> <EFBFBD> Ϣ<EFBFBD> <CFA2> <EFBFBD> Լ<EFBFBD>
<20> й<EFBFBD> <D0B9> <EFBFBD> Ӧ<EFBFBD> ó<EFBFBD> <C3B3> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ѡ <EFBFBD> <D1A1> <EFBFBD> <EFBFBD>
ƽ ̨<C6BD> <CCA8> <EFBFBD> <EFBFBD> <EFBFBD> ú<EFBFBD> <C3BA> <EFBFBD> Ŀ<EFBFBD> <C4BF> <EFBFBD> ܵ<EFBFBD> <DCB5> <EFBFBD> Ϣ<EFBFBD> <CFA2>
2014-11-19 00:25:21 +08:00
mysql.cpp
2019-07-28 10:31:56 +08:00
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ӧ<EFBFBD> ó<EFBFBD> <C3B3> <EFBFBD> Դ<EFBFBD> ļ<EFBFBD> <C4BC> <EFBFBD>
2014-11-19 00:25:21 +08:00
/////////////////////////////////////////////////////////////////////////////
2019-07-28 10:31:56 +08:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD> :
2014-11-19 00:25:21 +08:00
2019-07-28 10:31:56 +08:00
StdAfx.h<> <68> StdAfx.cpp
<20> <> Щ<EFBFBD> ļ<EFBFBD> <C4BC> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ϊ mysql.pch
<20> <> Ԥ<EFBFBD> <D4A4> <EFBFBD> <EFBFBD> ͷ(PCH)<29> ļ<EFBFBD> <C4BC> Լ<EFBFBD> <D4BC> <EFBFBD> Ϊ StdAfx.obj <20> <> Ԥ<EFBFBD> <D4A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ļ<EFBFBD> <C4BC> <EFBFBD>
2014-11-19 00:25:21 +08:00
/////////////////////////////////////////////////////////////////////////////
2019-07-28 10:31:56 +08:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ע<EFBFBD> <EFBFBD> :
2014-11-19 00:25:21 +08:00
2019-07-28 10:31:56 +08:00
Ӧ<EFBFBD> ó<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ʹ <EFBFBD> <EFBFBD> "TODO:" ע<> <D7A2> ָʾ Ӧ<CABE> <D3A6> <EFBFBD> ӻ<EFBFBD> <D3BB> Զ<EFBFBD> <D4B6> <EFBFBD> <EFBFBD> <EFBFBD> Դ<EFBFBD> <D4B4> <EFBFBD> 벿<EFBFBD> ֡<EFBFBD>
2014-11-19 00:25:21 +08:00
/////////////////////////////////////////////////////////////////////////////
2022-09-27 18:02:45 +08:00
# For old Mysql
2014-11-19 00:25:21 +08:00
use mysql;
create database acl_test_db;
insert into user (User, Host, Password) values ('acl_user', 'localhost', PASSWORD('111111'));
insert into user (User, Host, Password) values ('acl_user', '192.168.1.%', PASSWORD('111111'));
2022-09-27 18:02:45 +08:00
2014-11-19 00:25:21 +08:00
grant CREATE,DROP,INSERT,DELETE,UPDATE,SELECT on acl_test_db.* to 'acl_user';
flush privileges;
2022-09-27 18:02:45 +08:00
# For new Mysql(version > 5.1)
use mysql
UPDATE User SET authentication_string=PASSWORD('1qazxsw2') WHERE user='root';
flush privileges;
exit;
use mysql
ALTER User user() identified by '111111';
create database acl_test_db;
use acl_test_db;
create user acl_user identified by '111111';
#INSERT INTO User (User, Host, authentication_string, ssl_cipher, x509_issuer, x509_subject) VALUES ('acl_user', '10.%', PASSWORD('111111'), '','','');
#INSERT INTO User (User, Host, authentication_string, ssl_cipher, x509_issuer, x509_subject) VALUES ('acl_user', 'localhost', PASSWORD('111111'), '', '', '');
grant CREATE,DROP,INSERT,DELETE,UPDATE,SELECT on acl_test_db.* to 'acl_user';
flush privileges;