MySQL remote connection only shows some database issues

Source: Internet
Author: User
Tags database issues

The project changed the environment, the database for the environment, so connected to the database with Navicat, the results can only see some of the database

Is it strange that my IP is forbidden to go to the server to see the connection user right

1. First look at the database that the server can see first

mysql> show databases;

2. Look at this database user and the corresponding IP situation

Select  from Mysql.user;

3. View Current User

Select current_user ();

4. View Current user permissions

 from Current_User ();

5. Create a new user

' haha '@'%'password';

6. Granting Permissions

' haha '@'%'password' with GRANT option;

7. Log in to the new user and check the permissions.

Well, there is the introduction of the company's predecessors, Navicat and other remote tools can be SSH and then local connection MySQL, suddenly feel good low ah, exposing themselves is a rookie, also recorded it

Connect the remote server via the SSH tab first

Then you can connect to MySQL like a local, how about, magical!!!

MySQL remote connection only shows some database issues

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.