Ubuntu Configuration MySQL Remote connection

Source: Internet
Author: User

First install MySQL, mysqlclient

sudo Install mysql-server mysql-client
sudo apt-get install Libmysqlclient-dev
Install mysqlclient

Modifying bind-address in a configuration file

File path:

/etc/mysql/mysql.conf.d/mysqld.cnf

Modify bind-address = 127.0.0.1 to bind-address = 0.0.0.0

Restart and login to MySQL

1 sudo Service MySQL Restart 2 mysql-uroot-p

Modify Permissions:

1  ' Root '@'%'yourpassword' with GRANT OPTION; 2 3 FLUSH privileges;

Restart MySQL

sudo service mysql restart

Note: Sometimes MySQL does not start after restarting the server causing the remote to not connect just start MySQL

sudo service MySQL start

Summary: This is my Ubuntu configuration method, pro-test available, there may be other configuration methods, for reference only, thank you.

Ubuntu Configuration MySQL Remote connection

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.