MySQL password setup and hack

Source: Internet
Author: User

Windows platform:

Select User () to view the current login username

mysql-uroot-p123 switch to root account login

Mysqladmin-uroot-p password "123" to modify the root account password

Mysqld--install MySQL into a system service

Mysqld--remove removal from system service

NET Start/stop MySQL shutdown or turn on MySQL service

MYSQLD--skip-grant-tables Skip Authorization table binding MySQL Service

Update Mysql.user Set Password=password ("111") where user= "root" and host= "localhost" to the user table resets the root account password. Crack password

Flush privileges After changing the password, refresh the authorization form

tasklist |findstr MySQL to find MySQL process

taskkill/f/pid 8920 force kill MySQL Process

Linux platforms:

Systemctl stop/start MySQL kill MySQL Service

Mysqld_safe--skip-grant-tables Skip Authorization table binding MySQL Service

pkill-9 MySQL kill MySQL process

Mac Platform:

Mysqld_safe--skip-grant-tables Skip Authorization table binding MySQL Service

PS aux |grep mysql find MySQL process number

Kill-9 6334 forced Kill process

MySQL password setup and hack

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.