内核问题
由于使用了ppoll所以需要内核版本>=4.10
CREATE USER 'zc'@'%'; -- 创建用户
drop user '#userName'@'#host'; -- 删除用户
ALTER USER 'root'@'%' IDENTIFIED BY 'Mydb2019'; -- 设置用户密码
CREATE USER 'myus'@'%' IDENTIFIED BY 'MY.2021us';
-- 授权
-- select host, user, authentication_string, plugin from mysql.user;
GRANT all privileges on #databaseName.#table to '#userName'@'#host';
GRANT select,insert,update,delete,create,index on #databaseName.#table to '#userName'@'#host';
revoke #auth on #databaseName.#table from '#userName'@'#host'; -- 撤销权限
SHOW GRANTS for '#userName'@'#host'; -- 查看授权
FLUSH PRIVILEGES; -- 刷新修改
USAGE -- 为默认权限,不可撤销
GRANT Event ON *.* TO 'zc'@'%';
GRANT Show databases ON *.* TO 'zc'@'%';
-- Public Key Retrieval is not allowed
allowPublicKeyRetrieval=true&useSSL=false