xmapp mysql创建用户问题:

xmapp的mysql数据库中表如果出现文件损坏,可以替换
E:\xampp\mysql\中的data文件
xmapp的phpadmin登录的用户只和\phpMyAdmin\config.inc中的配置有关:

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

而设置远程用户连接mysql可以在xmapp的shell下面操作:
执行到 e:\xampp\mysql\bin

mysql -u root   //通过root用户登录
use mysql 
MariaDB [mysql]> grant all privileges on zglasses_prod.* to 'wlf'@'%' identified  by 'wlf'with grant option;  
MariaDB [mysql]> flush privileges;

如果 在mysql 创建用户以及密码不能登录:
但使用用户登陆失败:
root@controller:~# mysql -h localhost -ukeystone -ppassword
ERROR 1045 (28000): Access denied for user ‘keystone’@’localhost’ (using password: YES)
解决方法: 删除匿名用户
增加普通用户后,执行:
mysql> use mysql
mysql> delete from user where user=”;
mysql> flush privileges;

你可能感兴趣的:(mysql)