09_ create a user mysql database

Create a mysql user

1. create user 'account' @ '%' identified by 'password';

2. Authorized Users

grant all on *.* to '账户'@'%';    # 授权全部数据库

grant all on privileges on cheng.* to '账户'@'%';        # 后面的%表示允许在所有主机上登录

3. Refresh: flush privileges;

4. At this point, you can use the user just created a log

Guess you like

Origin www.cnblogs.com/nichengshishaonian/p/11567466.html