MySQL Login exit

Source: Internet
Author: User

Single Instance login MySQL:

Mysql/mysql-uroot suitable for just after installation no password mysql-uroot-p Standard login method mysql-uroot-p ' password ' password plaintext will reveal the password, generally used in scripts, script permissions root 700

Multi-instance login MySQL:

Mysql-s/data/3307/mysql.sock  Suitable for no password mysql–uroot–p111–s/data/3306/mysql.sockmysql–uroot–p–h 127.0.0.1–p3306 suitable for FAR Cheng Login

How to modify the MySQL prompt:

Mysql>prompt \[email protected] \r:\m:\s->my.cnf configuration file [mysqld] module add prompt=\\[email protected] \\r:\\m:\\s->

Prevent history from leaking passwords:

History-c Clear All command history history-d [command number] Clearly specify the line number of the command with password information histcontrol=ignorespace the command with a password before adding a space, it will not be recorded in the history

Launch MySQL:

Quitexit

  

MySQL Login exit

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.