on how to implement remote connection of MySQL database on cenos7.0

Source: Internet
Author: User
  1. Set the permissions that MySQL allows other clients to control

Mysql-uroot-p     #此处为本地linux帐号密码

Select User,host from Mysql.user; #查看mysql表对应username的host

Grant Usage on * * to [e-mail protected] identified by ' 111111 '; #设置root允许ip192. Permissions for 168.1.200IP control

2. Temporarily shut down the firewall test to see if the connection is successful

In this note, many of the internet is using the service iptables Stop command to shut down the firewall, in fact, CentOS 7.0 by default is used by the firewall as a firewall, so

We're shutting down FIREWALLD, not iptables.

Close command


This is managed only with database connections, which successfully

on how to implement remote connection of MySQL database on cenos7.0

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.