How to set up remote login to Mysql database _ MySQL

Source: Internet
Author: User
The database installed on the local machine can be accessed by a local program, but the machine of the colleague cannot be connected. it is found that remote access is not enabled for the mysql database. So how do we set it? this is the content discussed in this article. you can access MySQL from another machine on one machine, but some settings are required.

After entering MySQL, enter the following command:

Grant all privileges on *. * TO 'tigase '@' % 'identified by '000000' with grant option;

Allow any host to use tigase as the user name (root users cannot log on remotely, but only local users can log on), and 123456 as the password to access MySQL.

Flush privileges;

Let MySQL reload the permission so that the granted permission can take effect immediately.

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.