1 举例子,建数据库,然后 赋予用户远程访问的所有权限,最后刷新权限
create database cmf DEFAULT CHARACTER SET utf8; grant all on cmf.* TO 'cmf'@'%' IDENTIFIED BY 'Zj314XXX!'; create database amon DEFAULT CHARACTER SET utf8; grant all on amon.* TO 'amon'@'%' IDENTIFIED BY 'Zj314XXX!'; flush privileges;