MySQL multi-instance forgot password temporary login

Source: Internet
Author: User

Ss-antlup | GREP 330//Description There are 3306 ports running the database running


TCP LISTEN 0 *:3306 *:* Users: (("mysqld", 7557,12))


Mysql-uroot-p-s/data/3306/mysql.sock//Login not database, password input error


Killall mysqld//Kill msyqld process, can try a few more times


Mysqld_safe--defaults-file=/data/3306/my.cnf--skip-grant-table &//Skip the authorization form directly after a few more carriage returns


Ss-antlup | grep 330
TCP LISTEN 0 *:3306 *:* Users: (("mysqld", 7557,12))


Mysql-uroot-s/data/3306/mysql.sock//Login database, no need to enter the password directly can login


mysql> show databases;

Mysql> select User,host,password from Mysql.user;

Mysql> \q or exit exit the database


This article is from the "12252646" blog, please be sure to keep this source http://12262646.blog.51cto.com/12252646/1947543

MySQL multi-instance forgot password temporary login

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.