创建用户:
CREATE USER 'ebemate'@'localhost' IDENTIFIED BY 'ebematepasswd';
赋予所有权限:
grant all on *.* to 'ebemate'@'localhost';
之前写: grant all on *.* to 'ebemate'@'localhost' identified by 'ebematepasswd' ;一直报错
其实不用写identified by 'ebematepasswd'的。
后面再刷新一下 权限表:
flush privileges;
至此完成。