名词解释:
testuser(账号)
testuser!123(密码)
testdatabase(数据库)
mysql> CREATE USER 'testuser'@'%' IDENTIFIED BY 'testuser!123';
Query OK, 0 rows affected
mysql> grant all privileges on testdatabase.* to 'testuser'@'%';
Query OK, 0 rows affected
mysql> flush privileges;
Query OK, 0 rows affected