Mysql often sets character set encoding, automatically completes (automatically prompts), and listens to the Internet ip_MySQL

Source: Internet
Author: User
Tags rehash
Mysql sets character set encoding, automatic completion (automatic prompt), and monitoring internet ip address bitsCN.com to set the mysql monitoring internet ip address.

Sudo vi/etc/my. cnf
Bind-address = 127.0.0.1

Set mysql character set charset

Sudo vi/etc/my. cnf
Add a line under [mysqld]
Character_set_server = utf8
Add a line under [mysql]
Default-character-set = utf8
Sudo/usr/local/mysql/support-files/mysql. server restart
Mysql-uroot-p1
Mysql> status
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
Mysql> show variables like 'character _ set % ';
+ -------------------------- + ------------------------------------ +
| Variable_name | Value |
+ -------------------------- + ------------------------------------ +
| Character_set_client | utf8 |
| Character_set_connection | utf8 |
| Character_set_database | utf8 |
| Character_set_filesystem | binary |
| Character_set_results | utf8 |
| Character_set_server | utf8 |
| Character_set_system | utf8 |
| Character_sets_dir |/usr/local/mysql/share/charsets/|
+ -------------------------- + ------------------------------------ +
8 rows in set (0.00 sec)

Mysql automatic prompt, command automatic completion, syntax prompt

Sudo vi/etc/my. cnf
Find [mysql]
[Mysql]
# No-auto-rehash
Auto-rehash
Sudo/usr/local/mysql/support-files/mysql. server restart
Mysql-uroot-p1
Use mysql
You must first use a library and press the tab key to automatically prompt.

Note: the previous articles are too long, repeated, and against DRY. now we can sort them out. BitsCN.com

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.