Home > Database > phpMyAdmin > body text

Linux reset phpmyadmin root password through command

藏色散人
Release: 2019-11-26 14:55:43
forward
2469 people have browsed it

The following column phpmyadmin Getting Started Tutorial will introduce to you how to reset the phpmyadmin root password in Linux through commands. I hope it will be helpful to friends in need!

Linux reset phpmyadmin root password through command

phpmyadmin Forgot your password, use the following code to modify it:

1. Stop the mysql service:

/etc/init.d/mysql stop
Copy after login

2. Skip verification and start MySQL

/usr/local/mysql/bin/mysqld_safe –-skip-grant-tables >/dev/null 2>&1 &
Copy after login

3. Prepare to reset the new password

/usr/local/mysql/bin/mysql -u root mysql
Copy after login

4. Reset the new password

update user set authentication_string = Password('新密码') where User = 'root';
Copy after login

5. Update Permissions

flush privileges;
Copy after login

6.Exit

exit;
Copy after login

7.Restart MYSQL

killall mysqld
/etc/init.d/mysql start
end
Copy after login

The above is the detailed content of Linux reset phpmyadmin root password through command. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template