Home  >  Article  >  Database  >  What to do with mysql error 1248

What to do with mysql error 1248

coldplay.xixi
coldplay.xixiOriginal
2020-10-16 10:54:544290browse

Mysql error 1248 solution: first add [skip-grant-tables] to the mysql configuration file; then restart mysql, reset the password and refresh the permission table; then comment [skip- grant-tables]; finally restart mysql.

What to do with mysql error 1248

Related free learning recommendations: mysql database( Video)

Mysql error 1248 solution:

1. First, skip the permissions and configure the mysql configuration file (linux--> my.cnf) [mysqld] Add skip-grant-tables, you can log in without a password, as shown in the figure.

What to do with mysql error 1248

2. Then restart mysql.

What to do with mysql error 1248

#3. Then reset the password and refresh the permission table.

What to do with mysql error 1248

#4. Then comment skip-grant-tables in the mysql configuration file.

What to do with mysql error 1248

5. Finally, restart mysql and the problem will be solved.

What to do with mysql error 1248

The above is the detailed content of What to do with mysql error 1248. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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

Related articles

See more