Mysql1130 remote connection does not have permission solution, mysql1130 permission

Source: Internet
Author: User
Tags mysql host

Mysql1130 remote connection does not have permission solution, mysql1130 permission

There are two reasons why the remote connection has no permissions: mysql and firewall.

1. Solve firewall restrictions:

Shut down the firewall on the mysql service host or add inbound and outbound rules in the firewall advanced settings, and add the mysql port to allow access to the host through the mysql port.

2. Solve mysql restrictions and execute the following SQL statements on the mysql service host


-- Change the logon Host of the root User to any Host: update userset Host = '%' WHERE User = 'root'; -- change the permission (root is the account name, % is the host name (any host), 525099302 is the password) grant all privileges on *. * TO root @ '%' identified by "525099302"; -- refresh the permission, mysql takes effect directly BY flush privileges;

By breaking through the above two restrictions, you can access the mysql host smoothly and remotely.

I met this problem last year. I don't remember it very clearly this year. It seems that I overestimated my memory, but I still remember it.


MYSQL remote access problem, no permission

Add 192.168.0.250/phpmyadmin access settings like setting up a website.
Add permissions to the directory. For example, the visitor's access permission

Mysql is connected to the database. In 1130, I cannot connect to the database, so I cannot change the permission. In addition, I still report an error after the new installation.

Hi.
First, make sure that the error 1130 means that your database does not support remote connection. In other words, except for the default localhost and loopback addresses, you cannot use ip addresses to connect.
I see the description of your problem (
An error is reported after the new installation.
You should use your local database. Why do you need to use a remote address for connection? Log on directly using localhost, modify the permission table, and add the remote connection address you want to allow in the permission table. Remember to flush privileges.

You can.

You are welcome to ask.

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.