How to modify mysql to allow remote connections

How to modify mysql to allow remote connections

Regarding the issue of MySQL remote connection, we often encounter MySQL database stored on someone's computer when working in the company. If we want to connect to the MySQL service, the computer with the MySQL service installed must enable remote connection

The first step is to connect to your database using DOS (I am talking about Win here)

Then select the system library, mysql

Command: use mysql , of course you can also see which libraries have been created in your mysql

Then select mysql

Then execute the command to modify permissions: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;

This is a very crucial sentence.

After execution, clear the cache

ok basically

Don't worry, you can check it out.

Now the database in mysql on your machine can be accessed by others if it is in the local area network.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to install MySQL and enable remote connection on cloud server Ubuntu_Server_16.04.1
  • How to enable MySQL remote connection in Linux server
  • How to configure MySQL on Ubuntu 16.04 server and enable remote connection
  • How to enable remote connection (multiple backups) for MySQL database
  • mysql opens remote connection (mysql opens remote access)
  • How to enable remote connection to MySQL database
  • Detailed explanation of MySQL remote connection permission

<<:  Detailed explanation of FTP environment configuration solution (vsftpd)

>>:  How to quickly build a static website on Alibaba Cloud

Recommend

Add a floating prompt for the header icon in the ElementUI table

This article mainly introduces how to add floatin...

Introduction to the use and disabling of transparent huge pages in Linux

introduction As computing needs continue to grow,...

Web development tutorial cross-domain solution detailed explanation

Preface This article mainly introduces the cross-...

js uses FileReader to read local files or blobs

Table of contents FileReader reads local files or...

How to change the website accessed by http to https in nginx

Table of contents 1. Background 2. Prerequisites ...

IIS configuration of win server 2019 server and simple publishing of website

1. First remotely connect to the server 2. Open S...

How to use nginx as a load balancer for mysql

Note: The nginx version must be 1.9 or above. Whe...

How to design MySQL statistical data tables

Table of contents Is real-time update required? M...

Summarize the commonly used nth-child selectors

Preface In front-end programming, we often use th...

Which loop is the fastest in JavaScript?

Knowing which for loop or iterator is right for o...

MySQL Innodb key features insert buffer

Table of contents What is insert buffer? What are...

Vue implements setting multiple countdowns at the same time

This article example shares the specific code of ...