appserv phpmyadimin登陆mysql提示1045 access denied for user 'root'@'localhost' using password yes
来源:互联网 发布:苹果mac好用吗 编辑:程序博客网 时间:2024/04/30 08:26
最近在windows下配置appserv的时候,登MySQL的时候提示1045 access denied for user 'root'@'localhost' using password yes
在安装的时候,我已经输入了MySQL的密码,但是输入的时候提示那个错误,没办法,只能自己想办法,这里是我的办法,
首先我们需要用root账户空密码登陆进去,所以需要修改phpmyadmin的配置文件,找到根目录下的config.sample.inc.php
和libraries文件夹下的config.default.php把里面的所有allownopassword全部改为true,我一共找到了三个,修改完以后,重启
appache服务器,然后登陆phpmyadmin就可以进入mysql了,但是登陆进去以后提示:phpMyAdmin 高级功能尚未完全设置,部分功能未激活
然后接着百度,点击导入按钮,选择phpmadmin目录下sql文件夹下的create_tables.sql,然后执行就可以了,接着,打开config.sample.inc.php
文件,定位到: $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';把它所在的那一部分所对对应create_tables.sql的表格名称前面的注释全部取消,
这样就可以了。附上图片:
也就是把上面的那么多行的注释全部删掉,这样我们重新登陆phpmyadmin就不会再出现:phpMyAdmin 高级功能尚未完全设置,部分功能未激活,但是我登陆进去以后,发现它提示blowfish_secret is too short,这是因为我之前配置了短语密码,如果没有配置的话,会提示需要一个短语密码,所以我们需要打开根目录下的config.sample.inc.php
和libraries文件夹下的config.default.php了两个文件,然后用ctrl+F快捷键,找到blowfish_secret,然后添加一串字符,可以是数字,也可以是字母,但是我添加了一个电话号码以后,它提示blowfish_secret还是太短,后来,在blowfish_secret上面看到了一段注释:
/**
* This is needed for cookie based authentication to encrypt password in
* cookie. Needs to be 32 chars long.
*/
也就是说blowfish_secret需要32个字符,然后把它都改了以后,重新登陆,果然没有之前的提示来了。
l- appserv phpmyadimin登陆mysql提示1045 access denied for user 'root'@'localhost' using password yes
- wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题
- windows mysql提示:1045 access denied for user'root'@'localhost' using password yes
- MySQL提示:1045 access denied for user 'root'@'localhost' using password yes
- Mysql登录提示1045 error:access denied for user 'root'@'localhost <using password: yes>
- MYSQL 提示:1045 access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
- windows mysql提示:1045 access denied for user'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
- MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- FIFO管道写规则
- Fedora安装Hadoop
- 作业七-ID-1052-Problem D: Sequence Problem (III) : Array Practice
- 零基础PS----制作动态图片GIF
- HTTPS 互联网世界的安全基础
- appserv phpmyadimin登陆mysql提示1045 access denied for user 'root'@'localhost' using password yes
- Android遇到问题应该怎么解决
- 集合类总结笔记
- 以每行一个单词的形式打印其输入
- android View事件分发
- 常见对象_Arrays工具类的概述和使用
- UVA1492 LA5694 线段树扫描线(矩形面积合并)
- .gitignore中增加过滤规则不起作用的解决方法
- 浅谈 Observable和Observer 观察者模式