As shown below: Mainly execute authorization commands: Two ways 1. Allow any host to connect to the local server with user bd and password bdpw mysql> GRANT ALL PRIVILEGES ON *.* TO 'bd'@'%' IDENTIFIED Y 'bdpw' WITH GRANT OPTION; mysql> flush privileges; 2. Allow specific IP addresses to connect to the local server with user bd and password bdpw mysql> GRANT ALL PRIVILEGES ON *.* TO 'bd'@'172.16.4.198' DENTIFIED BY 'bdpw' WITH GRANT OPTION; mysql> flush privileges; Notice: 1. Enter the password in the Command Line Client or enter the Nivacat command line interface. 2. Input: use mysql; 3. Query host input: select user,host from user; If there is a host value of %, execute the authorization statement directly; if not, execute step 4 4. Create a host If there is no host value of "%", select an open user (bd) and execute mysql> update user set host='%' where user='bd'; mysql> flush privileges; 5. Authorized user *.* indicates authorization of all permissions mysql> GRANT ALL PRIVILEGES ON *.* TO 'bd'@'%' IDENTIFIED BY 'bdpw' WITH GRANT OPTION; mysql> flush privileges; The above method of opening external network access rights for MySQL is all I have to share with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: 5 Easy Ways to Free Up Space on Ubuntu
>>: How to delete a property of an object in JavaScript
Background Many website designs generally consist...
Preface This article summarizes some common MySQL...
Introduction: This article mainly introduces how ...
The machines in our LAN can access the external n...
This article is based on Linux centos8 to install...
The functions of the three attributes flex-grow, ...
Table of contents 1. Four concepts 1. JavaScript ...
About Event: MySQL 5.1 began to introduce the con...
Yes, CSS has regular expressions too (Amen) Two p...
I reinstalled the system some time ago, but I did...
Have you ever had the need to compute a very larg...
Preface This article mainly introduces the releva...
Table of contents Preface: accomplish: Summarize:...
Closures are one of the traditional features of p...
Rendering After looking up relevant information o...