mysql创建数据库和用户

create database sonar character set utf8 collate utf8_general_ci;

flush privileges;

grant all privileges on sonar.* to 'sonar'@'%'identified by 'sonar' with grant option;

flush privileges;

posted @ 2017-06-15 11:27  竹 影 清 风  阅读(...)  评论(...编辑  收藏