标签:xampp windows cfg auth Servers 错误处理 config type
xampp的安装和相关设置:
参考文献如下:
https://blog.csdn.net/weixin_42449422/article/details/113280976
上述文章讲述了顺利的安装xampp以及一下相关的设置非常有参考价值。
可能出现的错误
1.安装后访问phpMyAdmin时出现如下现象:
解决方法:
第一,找到xampp/phpMyAdmin/config.inc.php文件;
第二,打开config.inc.php文件找到:
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
第三,把上面的代码修改成
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
就能够正常进入了。
参考文章:
https://blog.csdn.net/weixin_44546992/article/details/104914088
2.使用账户登陆phpMyAdmin时出现如下情况:
解决方法:
与上面相同的找到config.inc.php文件,然后在文件中加入一行
$cfg['Servers'][$i]['port']='你设置的mysql的端口号';
在这里我把端口号设定为了3316,所以有:
/* Authentication type and info */
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
$cfg['Servers'][$i]['port']='3316';
问题解决。
参考文章:
https://blog.csdn.net/weixin_44340959/article/details/124209912
标签:xampp,windows,cfg,auth,Servers,错误处理,config,type 来源: https://www.cnblogs.com/Akiyama-tsuki/p/16365623.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。