There may be problems with the MySQL that just installed successfully

Source: Internet
Author: User
  • 1.ERROR 1045 (28000): Access denied for user ‘mysql‘@‘localhost‘ (using password: NO)
   //先关闭mysqld服务   service mysqld stop   //修改mysql配置文件   vi /etc/my.cnf   //写入:skip-grant-tables(用来跳过密码登录,必须在root用户下修改这个文件)   //然后进入mysql命令行模式   use mysql(转到mysql表)   //更新root密码   SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘MyNewPassword‘);   flush privileges;   //再次修改配置文件,注释掉skip-grant-tables
  • 2, ERROR 1819 (HY000): Your password does NOT satisfy the CURRENT policy requirements (usually appears in MySQL 5.7.6 later version)
    //把authentication_string 里写入的值记一下(因为password()函数已废弃)    ALTER USER USER() IDENTIFIED BY ‘news_password‘;

You can do it.

There may be problems with the MySQL that just installed successfully

Related Article

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.