mysql 创建用户数据库及授权

663 阅读1分钟

mysql 创建用户数据库及授权

create user 'pharmacy'@'%' identified by 'pharmacy123';

create database pharmacy;

grant all privileges on pharmacy.* to pharmacy;