2条语句添加mysql用户

1.创建数据库

create database 数据库名;

2.添加用户并授予所有权限

grant all privileges on 数据库名.* to 新用户名@localhost identified by '新用户密码';