Ubuntu cannot remotely access after installing MySQL method

Source: Internet
Author: User

Ubuntu cannot remotely access after installing MySQL method
1.mysql>grant All privileges on * * to ' myuser ' @ '% ' identified by ' MyPassword ' with GRANT OPTION;


2.FLUSH rivileges;


3. See if the following record exists in the MySQL Library users table, and the presence of the representative setting is successful.

It should be ok under normal circumstances, but I still can't,


4. suspected network problem, run command test: Telnet IP address port
Return: Could not connect to ' xxx.xxx.xxx.xxx ' (Port 3306): Connection failed. Failure is a network problem.


5. go to Server Run command: NETSTAT-TPLN
There is a record: TCP 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1601/mysqld in the middle of the 127.0.0.1:3306 description is local Listen, you need to change to 0.0.0.0:3306.


6. Modify the value of bind-address in the MySQL configuration file to 0.0.0.0
Configuration file location:/etc/mysql/my.cnf or/ETC/MYSQL/MYSQL.CONF.D/MYSQLD.CNF

Ubuntu cannot remotely access after installing MySQL method

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.