phpmyadmin不能登录解决方法总结

错误,MySQL 返回:#1045 – Access denied for user 'root'@'localhost' (using password: YES)

phpmyadmin目录中找到config.inc.php文件,修改如下位置即可

$cfg['Servers'][$i]['user'] = 'user';

$cfg['Servers'][$i]['password'] = 'password';

提示错误:Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly,通过提示能看出是PHP的问题,在网上一番搜索,找到解决方案,尝试成功:

1、在PHP的安装目录将php.ini中的session.auto_start的值改为1(启动),默认是0(禁用)

2、在php的目录建立个文件夹tmp(如C:/php/tmp),设置tmp属性为ervery one完全控制

3、在php.ini找到session.save_path 这一行,设成session.save_path = “C:/php/tmp”,并把前面的分号去掉(以上的C:/php/tmp根据你实际情况设定)

4、重启电脑,一切都OK了,两个版本的phpMyAdmin也都能登陆了

linux中会有一点不一样,错误如下:登录的时候会提示错误。错误提示内容都一样,不过可能代码不一样。因为不知道问题所在,检查测试的时候经常改改这里、改改那里。错误提示如下:

#2002 Cannot log in to the MySQL server 或者

#2003 Cannot log in to the MySQL server 或者

#1045 Cannot log in to the MySQL server

解决办法:昨天花了很多时间都没搞定,也没能从网上找到答案,今天出去玩了一圈,晚上刚回来就解决了这个问题,其实好简单。

直接 cp 复制 phpMyAdmin 安装目录中的配置文件样例 config.sample.inc.php 文件到配置文件目录(以下只用均为采用这里提供的安装方式时的默认目录)

cp /usr/share/phpMyAdmin/config.sample.inc.php /etc/phpMyAdmin/config.inc.php

然后在系统中直接使用 vim 编辑修改一点儿配置(同样在上面提到的安装方式中有记录)代码如下:vim /etc/phpMyAdmin/config.inc.php

注意:如果需要通过远程服务器调试使用phpMyAdmin,则需要添加blowfish_secret内容定义Cookie,寻找到代码行:

$cfg['blowfish_secret'] = ''; 设置内容为COOKIE

$cfg['blowfish_secret'] = 'leosn';

波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!

波比源码 » phpmyadmin不能登录解决方法总结

77 评论

  1. tadalis over the counter brand avana diclofenac 50mg drug

  2. order prograf generic requip 1mg drug ursodiol 300mg tablet

  3. buy tadalafil 20mg cialis 5mg ca buy amantadine 100mg sale

  4. order medroxyprogesterone 10mg without prescription praziquantel online buy periactin 4mg pill

  5. purchase dapoxetine online priligy online synthroid 150mcg uk

  6. tadalafil brand name cipro oral brand cipro 1000mg

  7. buy pioglitazone 30mg pill pioglitazone sale order generic sildenafil 50mg

  8. order altace 10mg without prescription order amaryl pill order etoricoxib pills

  9. Nice article inspiring thanks. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…

  10. Great post thank you. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…

  11. famotidine 20mg drug pepcid 40mg us buy remeron 15mg for sale

  12. tadacip 20mg ca plavix oral buy amoxicillin 500mg online

  13. metformin 1000mg uk oral nolvadex nolvadex over the counter

  14. buy generic prednisolone 5mg prednisolone price buy lasix 40mg without prescription

  15. thesis proposal template thesis? argumentative essay thesis statement

发表评论

Hi, 如果你对这款模板有疑问,可以跟我联系哦!

联系站长
赞助VIP 享更多特权,建议使用 QQ 登录
喜欢我嘛?喜欢就按“ctrl+D”收藏我吧!♡