首页 > 数据库技术 > 详细

XAMPP mysql远程连接

时间:2015-04-17 13:19:58      阅读:1071      评论:0      收藏:0      [点我收藏+]

①.修改%xampp%\phpMyAdmin\config.inc.php文件

 

[php] view plaincopy
/* Authentication type and info */
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘;
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
$cfg[‘Servers‘][$i][‘password‘] = ‘‘;
$cfg[‘Servers‘][$i][‘extension‘] = ‘mysql‘;
$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = true;

 

改为

/* Authentication type and info */
$cfg[‘Servers‘][$i][‘auth_type‘] = ‘cookie‘;
$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
$cfg[‘Servers‘][$i][‘password‘] = ‘root‘;
$cfg[‘Servers‘][$i][‘extension‘] = ‘mysql‘;
$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = true;

 

②.重新登录

http://localhost:88/phpmyadmin/index.php?server=1&target=main.php&token=b9d67a234c38d63cb3702f3addc16f96#PMAURL:server=1&target=main.php&token=b9d67a234c38d63cb3702f3addc16f96

启动mysql、apache,登录phpMyAdmin。在“权限”部分添加一个root@%用户,内容参照 root@localhost 的设置;两者的区别就是主机字段,一个写%,一个写localhost;

 

参考网址:http://blog.csdn.net/wb96a1007/article/details/40800899

XAMPP mysql远程连接

原文:http://www.cnblogs.com/ming7755/p/4434235.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!