LAMP MYsql configuration-1045

Source: Internet
Author: User

LAMPConfigurationFor MYsql 1045Problem:

When installing a mysql database in a windows operating system and encountering an Error of Error 1045 (28000) Access Denied for user 'root' @ 'localhost' (Using password: NO), you need to reset the password.

The specific method for LAMP to configure MYsql-1045 is as follows:

1. Find the my. ini configuration file in the installation directory and open the configuration file.

2. Locate the [mysqld] line, add skip-grant-tables below, save the file, and restart the mysql dynamic service;

Mysql5.1 and error1045 are installed in Windows 7. After the instance is deleted, the service cannot be started. After trying many methods, it cannot be solved. Finally, a 6.0 beta version is reinstalled, the initial error 5.1 is displayed when 1045 is installed. The final error is resolved:

1. mysql-u root

2. use mysql

3. update user set password = old_password ('scf ') where user = 'root' and host = 'localhost ';

4. flush privileges;

In this way, Error 1045 (28000) Access Denied for user 'root' @ 'localhost' (Using password: NO) Error 1045 can be solved!

MySQL cannot be remotely connected under LAMP in Ubuntu Server 1130

MySQL cannot be remotely connected under LAMP in Ubuntu Server 10061

Five Simple Methods for optimizing the LAMP application: optimizing the database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.