Home php教程 php手册 phpmyadmin修改MySQL密码与phpmyadmin无法登录解决方法

phpmyadmin修改MySQL密码与phpmyadmin无法登录解决方法

May 25, 2016 pm 04:37 PM

修改mysql密码方法有很多种,最常用的就是利用phpmyadmin修改密码了,如果像我们这种不会命令的还要在命令模式下去修改mysql密码感觉很吃力,下面我来介绍phpmyadmin修改mysql密码的方法介绍.

修改密码方法:

一、通过浏览器登入phpmyadmin控制台,点击“权限”.

二、勾选root用户,并单击后面的“编辑权限”.

三、在打开的页面的中间位置,找到“更改密码”一栏,输入两次新密码,并单击“执行”按钮.

注意事项,修改密码之后再用phpmyadmin登录时会提示,在phpMyAdmin里修Mysql密码后,phpMyAdmin就不能登陆了,错误提示为:

欢迎使用 phpMyAdmin 2.9.0

Probably reason of this is that you did not create configuration file. You might want to use setup script to create one.

错误

MySQL 返回:

#1045 - Access denied for user: 'root@localhost' (Using password: NO)

解决办法是:

进入xampp的安装目录,修改xampp/phpMyAdmin/config.inc.php文件,找到并设置开始修改的密码,例如$cfg['Servers'][$i]['password'] = '8888';

另外,我们点击“权限”后可以看到整个数据库的用户如下,可以点击“操作”再次修改用户密码,相应地修改config.inc.php.

文章链接:

随便收藏,请保留本文地址!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)