mysql创建账号,并授权库给他

1.create user webapi identified by 'webapi';
2.GRANT EXECUTE,INSERT,SELECT,UPDATE,DELETE ON webapi.* TO 'webapi'@'%';
3.FLUSH PRIVILEGES;
4.完成

你可能感兴趣的:(mysql创建账号,并授权库给他)