windows 下安装xampp 相关过程即错误处理。

xampp的安装和相关设置:

参考文献如下:
https://blog.csdn.net/weixin_42449422/article/details/113280976
上述文章讲述了顺利的安装xampp以及一下相关的设置非常有参考价值。

可能出现的错误

1.安装后访问phpMyAdmin时出现如下现象:

windows 下安装xampp 相关过程即错误处理。

解决方法:

第一,找到xampp/phpMyAdmin/config.inc.php文件;

windows 下安装xampp 相关过程即错误处理。
第二,打开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时出现如下情况:

windows 下安装xampp 相关过程即错误处理。
windows 下安装xampp 相关过程即错误处理。

解决方法:

与上面相同的找到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

Original: https://www.cnblogs.com/Akiyama-tsuki/p/16365623.html
Author: Akiyama_tsuki
Title: windows 下安装xampp 相关过程即错误处理。

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/602817/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球