- drop database if exists jz;
- drop user if exists 'jz'@'%';
- -- 支持emoji:需要mysql数据库参数: character_set_server=utf8mb4
- create database jz default character set utf8mb4 collate utf8mb4_unicode_ci;
- use jz;
- create user 'jz'@'%' identified by 'jz123456';
- grant all privileges on jz.* to 'jz'@'%';
- flush privileges;
|