MySQL How to open remote connection (default is not turned on, even if the password is correct, still inaccessible)

Source: Internet
Author: User

MySQL How to open remote connection
    • |
    • Browse:1846
    • |
    • Updated: 2015-03-11 20:19
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
Step through ReadingBaidu Experience: jingyan.baidu.com

Everyone in the company's work, often encounter MySQL database stored in a person's computer, you want to connect to the MySQL service, the computer equipped with the MySQL service must open the remote connection.

Baidu Experience: jingyan.baidu.comTools/Materials
    • Mysql
    • Windows
Baidu Experience: jingyan.baidu.comMethod/Step
  1. 1

    Use the CTRL + R key combination to quickly open the cmd window and enter the cmd command to open the cmd window.

    Steps to read
  2. 2

    Use the "mysql-uroot-proot" command to connect to the local MySQL service.

    Steps to read
  3. 3

    Using the "Use MySQL" command, select the database you want to use, modify the basic information of the remote connection, save it in the MySQL database, and use the MySQL database.

    Steps to read
  4. 4

    Use "grant all privileges on * * to ' root ' @ '% ' identified by ' root ' with Grant OPTION;" command to change the settings for a remote connection.

    Steps to read
  5. 5

    Use "flush privileges;" command to refresh the permission that you just modified to take effect.

    Steps to read
  6. 6

    Use "select Host,user from User;" See if the changes were successful.

    steps to read END

MySQL How to open remote connection (default is not turned on, even if the password is correct, still inaccessible)

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.