How to allow all hosts to access mysql

How to allow all hosts to access mysql

1. Change the Host field value of a record in the user table in the MySQL database to %. The strange thing is that you must use the following statement to set the password

2. update user set Password=PASSWORD("123456") WHERE Host="%";

3. Execute the flush privileges command to make it take effect immediately

The above method of allowing all hosts to access 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:
  • How to quickly modify the host attribute of a MySQL user
  • Does the % in the newly created MySQL user include localhost?
  • Perfect solution to the problem that MySQL cannot connect to the database through localhost
  • Solution to the problem that MySQL can connect using localhost but cannot connect using IP
  • A brief discussion on the matching rules of host and user when Mysql connects to the database

<<:  Mini Program Recording Function Implementation

>>:  How to handle forgotten passwords in Windows Server 2008 R2

Recommend

Summary of common MySQL commands

Set change mysqlroot password Enter the MySQL dat...

How to create Apache image using Dockerfile

Table of contents 1. Docker Image 2. Create an in...

How to choose the right MySQL datetime type to store your time

When building a database and writing a program, i...

Each time Docker starts a container, the IP and hosts specified operations

Preface Every time you use Docker to start a Hado...

The whole process of developing a Google plug-in with vue+element

Simple function: Click the plug-in icon in the up...

Summary of MySQL lock related knowledge

Locks in MySQL Locks are a means to resolve resou...

MySQL8 Installer version graphic tutorial

Installation The required documents are provided ...

Centos7 install mysql5.6.29 shell script

This article shares the shell script of mysql5.6....

Solution to forgetting the root password of MySQL 5.7 and 8.0 database

Note: To crack the root password in MySQL5.7, you...

JavaScript parseInt() and Number() difference case study

Learning objectives: The two functions parseInt()...

Calculation of percentage value when the css position property is absolute

When position is absolute, the percentage of its ...

Vue implements small search function

This article example shares the specific code of ...

How to make React components full screen

introduce This article is based on React + antd t...

Ubuntu 20.04 CUDA & cuDNN Installation Method (Graphical Tutorial)

CUDA installation download cuda Enter the nvidia-...