MySQL in Ubuntu is configured as Internet access _ MySQL

Source: Internet
Author: User
After Ububtu is installed with MySQL, it cannot be connected to the Internet by default, but many times we want to facilitate management over the Internet. Here, I will briefly describe my operations in the configuration process. The steps are as follows: log on to mysqlmysql-uroot-p as the root to create a user CREATEUS Ububtu that can log on to the Internet to install MySQL. by default, the Internet cannot be connected, however, many times we want to facilitate management of Internet access. Here, we will briefly describe your operations in the configuration process as follows:

Log on to mysql as root

Mysql-u root-p

Create an Internet-accessible user

Create user 'custom' @ '% .example.com' identified by 'user _ password ';

Authorize a user

Grant select, INSERT, UPDATE, DELETE, CREATE, drop on customer. * TO 'custom' @ '% ';

Check/etc/mysql/my. cnf and remove the bound ip address.

Restart service

Sudo service mysql restart

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.