## 创建新用户并授权
~~~
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON databases_name.* TO 'username'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
~~~