Configure MySQL to accept Telnet connections

Source: Internet
Author: User

An open MySQL

MySQL configuration file within the/etc/mysql/my.cnf file, there is a line bind-address = 127.0.0.1 means only local access, the line of comments can be

127.0. 0.1

Two create a new MySQL user

(1) The MySQL database is first accessed locally in MySQL library

Use MySQL;

(2) Create User:

Grant all privileges in (*). * to [e-mail protected] '% ' identified by ' password ';

Here (*) to allow access to all libraries, you can also write the library name here, you can only access the library, and all the tables of the database permissions to the user, allow the user through any IP address (also qualified IP address, '% ' to allow the ' IP '), using the specified password to connect, After configuration, use the command: flush privileges; Make the configuration effective, refresh the MySQL system permissions related table, otherwise you will receive access denied. Restarting the database can also achieve this effect

Flush privileges;

Three quit MySQL, restart the database

sudo service mysql restart

Configure MySQL to accept Telnet connections

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.