Navicat Connect to the pits in VMware under Ubuntu mysql5.7

Source: Internet
Author: User

1. There is a problem with the MySQL connection under the navicat virtual machine: 2003-can ' t connect MySQL Server on ' 192.168.*.* ' (10038).

Solution:

Method: Direct Authorization (recommended)

To use the root user from any host, password: youpassword (your root password) to connect to the MySQL server:
# mysql-u Root-proot
Mysql>grant all privileges on * * to ' root ' @ '% ' identified by ' Youpassword ' with GRANT OPTION;

2. Because of an operation error, the problem is logged in again: "Error 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:yes)".

Solution:

1. Skip Password to login

Modify the MySQL configuration file by Adding two sentences to the paragraph in [mysqld]:

Skip-name-resolve
Skip-grant-tables

2. Log in to MySQL and change the password

/usr/bin/mysql log in to MySQL

Use MySQL;
Update Mysql.user set Authentication_string=password (' root ') where user= ' root ';
Flush privileges;
Quit

3. Restart the MySQL service

Service MySQL Restart

Navicat Connect to the pits in VMware under Ubuntu mysql5.7

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.