Home > Database > Mysql Tutorial > body text

phpmyadmin cannot log in

Release: 2019-10-30 17:10:26
Original
3842 people have browsed it

phpmyadmin cannot log in

Stop mysql service

service mysql stop
Copy after login

phpmyadmin cannot log in

Set database permissions so that everyone can log in, that is, skip verification (with If you are interested, you can take a look at the skip -grant command, which I have little knowledge of)

mysqld –skip-grant-tables
Copy after login

After the command is executed, we are equivalent to logging in without verification. Then we set up verification and add users.

mysqld –skip-grant-tables –user=root(root为你想设置的用户名,–别错了)
Copy after login

Then open a remote link, and the current terminal does not need to be closed. At this time, we can log in directly without a password.

mysql -u root -p
Copy after login

After logging in, we can use the mysql command to set the username and password we want.

phpmyadmin cannot log in

The above is the detailed content of phpmyadmin cannot log in. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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