navicate connection mysql8.0, personal problems to step on pit summary

navicate connection mysql8.0, personal problems to step on pit summary
article directories:
1: Install mysql8.0 add new authentication methods, if the installation does not modify the mysql not connect
2: mysql start command issue
3: navicate fortune connected MySQL8 need to modify the root host localhost is%

Details are as follows:
1: Installation mysql8.0 add new authentication, if the installation does not modify the connection mysql 

When we install MySql8.0 + MySql version will be asked if we choose a new authentication method, as shown below

⒈ first recommendation is MySql strong password encryption mode we use for authentication

  MySql8 improved support for SHA256 stronger password-based authentication methods. Later it recommended that all newly installed MySql Server uses this method.

  Note: The new identity of the server-side validation requires a new version of the plug connector and the client, and the client connectors added to the new default identity verification MySql8.0 support (caching_sha2_password password authentication)

  Currently, the community-driven program MySql 8.0 connector and use this new method libmysqlclient8.0 support.

  If you can not update the client and applications to support this new authentication method, MySql8.0 MySql server can be configured to use the old authentication method.

use the old authentication method (reserved MySql5.x compatibility)

  It should only be considered under the following conditions using the old MySql 5.x old authentication methods:

    If you can not update the application to use MySQL8 and enable new connections and drivers

    Unable to recompile existing applications

    Yet provide updated language-specific connector or drivers

  Safety guidelines: If possible, we strongly recommend to take the necessary steps to upgrade applications, libraries and database servers to a new, more powerful way to verify the identity of this new, because it will greatly improve your security.

2: mysql start command issues
    a) cmd command window, enter the mysql command prompt is not an internal

    resolve: no added bin path to the mysql system variables path

    Cause: The configuration environment variable

    Solution: mysql installation directory under the bin directory, added to the system variable
   b) net stop / start mysql prompt service name is invalid
    Resolution: cmd -> services.msc find the service to start named: mysql80
    That net start mysql80 effective,

 

3: Source below: HTTPS: //www.cnblogs.com/weixuqin/p/9530605.html
Navicat remote connection MySQL8 problem Summary:

I believe we have carried it on a remote server development, which MySQL usage should also pricey, if you are using Navicat and other visual tools to operate the remote database after all, a good choice to avoid the command line to write SQL statements operating. Following a brief Navicat connection to operate the remote database.

1

First, we need to change the 3306 port to see if port 3306 open, MySQL default is not open to outside access functions. Statement is as follows:

netstat -an | grep 3306

If the query results are as follows, we need to change the MySQL configuration file.

As can be seen, mysql port 3306 is only listening on a local connection, thus impeding the external IP access to the database, modify the MySQL configuration file my.conf:

vim /etc/mysql/my.cnf

turn up

# Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 

The bind-address = 127.0.0.1line commented out or changed to the client host ip you want to use.

At this point MySQL Remote Access Port successfully opened.

2

We enter the MySQL command interface, run the following SQL statement to see if the user has access to:

use mysql;
select user, host from user;

Returned the following results:

We use the wildcard% to change the root corresponding host field, the authority has access to all ip addresses:

update user set host = '%' where user = 'root';

If you throw the following exception:

Duplicate entry '%-root' for key 'PRIMARY'

Description multiple users ROOT USER record in the table, and we re-run:

select host from user where user = 'root';

% Value of the field will be able to see the host.

We execute:

flush privileges;

Refresh the system privileges of MySQL related tables.

Finally, restart the MySQL service:

sudo restart mysql

3

Server set up, we set about the connection Navicat client:

Open Navicat, click on the top left of the "Connect", set about the database user name, address, password, etc., will be able to operate on a remote MySQL server in Navicat friends.

Category: Database

When we install MySql8.0 + MySql version will be asked if we choose a new authentication method, as shown below

⒈ first recommendation is MySql strong password encryption mode we use for authentication

  MySql8 improved support for SHA256 stronger password-based authentication methods. Later it recommended that all newly installed MySql Server uses this method.

  Note: The new identity of the server-side validation requires a new version of the plug connector and the client, and the client connectors added to the new default identity verification MySql8.0 support (caching_sha2_password password authentication)

  Currently, the community-driven program MySql 8.0 connector and use this new method libmysqlclient8.0 support.

  If you can not update the client and applications to support this new authentication method, MySql8.0 MySql server can be configured to use the old authentication method.

use the old authentication method (reserved MySql5.x compatibility)

  It should only be considered under the following conditions using the old MySql 5.x old authentication methods:

    If you can not update the application to use MySQL8 and enable new connections and drivers

    Unable to recompile existing applications

    Yet provide updated language-specific connector or drivers

  安全指南:如果可能,我们强烈建议采取必要步骤将应用程序、库和数据库服务器升级到新的更强大的身份验证这种新方法,因为它将大大提高您的安全性。

Guess you like

Origin www.cnblogs.com/asplover/p/11718443.html