Home  >  Article  >  Database  >  What to do with 1045 error in mysql database

What to do with 1045 error in mysql database

coldplay.xixi
coldplay.xixiOriginal
2020-09-03 15:13:488888browse

Solution to 1045 error in mysql database: First find the [my.ini] file in the MySQL installation path and open it with Notepad; then find the location of mysqld; then add the statement [skip] under [mysqld] -grant-tables]; just save it finally.

What to do with 1045 error in mysql database

【Related learning recommendations: mysql tutorial(Video)】

Solution to 1045 error in mysql database:

1. Find the my.ini file in the MySQL installation path and open it with Notepad;

What to do with 1045 error in mysql database

2. After opening, find the location of mysqld. There are multiple mysqlds in the content of this file. Pay attention to the location pointed by the arrow

What to do with 1045 error in mysql database

3. Add the statement under [mysqld]: skip-grant-tables, and save it after adding it.

What to do with 1045 error in mysql database

skip-grant-tables is used as a startup parameter: the MYSQL server does not load permission judgment, and any user can access the database. In other words, after enabling this parameter, the security of the database will be reduced.

If you want to know more about programming learning, please pay attention to the php training column!

The above is the detailed content of What to do with 1045 error in mysql database. 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