Home > Database > Mysql Tutorial > body text

What to do with 1045 error in mysql database

coldplay.xixi
Release: 2020-09-10 13:13:10
Original
8903 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!