云乐国鑫

MySQL创建数据库及用户

create database ${db_name} default charset utf8 COLLATE utf8_general_ci;
grant all on ${db_name}.* to '${user_name}'@'localhost' IDENTIFIED BY '${password}';
flush privileges;

posted @ 2018-01-08 11:10  国鑫  阅读(213)  评论(0编辑  收藏  举报
版权所有@snzigod