CREATE USER 'test'@'%' IDENTIFIED BY '15ht46389012t'; #'%' - 全部狀況都能訪問;‘localhost’ - 本機才能訪問;’192.168.1.2‘ - 指定 ip 才能訪問
grant all privileges on 想受權的數據庫.* to 'test'@'%'; flush privileges;
all 能夠替換爲 select,delete,update,create,drop。數據庫