Example method to view the IP address connected to MySQL

Example method to view the IP address connected to MySQL

Specific method:

First open the command prompt;

Then execute the [ mysql -u root -p ] command to enter mysql;

180d13956c70d25e4e65f7a12d0944d.png

Finally, execute the following command:

select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;

This is the end of this article about the example method of checking the IP address of MySQL. For more information about how to check the IP address of MySQL, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to access MySql through IP address
  • How to store IP addresses in MySQL
  • MySQL cross-database table replication example (in the same IP address)

<<:  Tomcat CentOS installation process diagram

>>:  The difference and usage of Vue2 and Vue3 brother component communication bus

Recommend

Example of MySQL slow query

Introduction By enabling the slow query log, MySQ...

How to obtain root permissions in a docker container

First, your container must be running You can vie...

iframe src assignment problem (server side)

I encountered this problem today. I reassigned the...

What does href=# mean in a link?

Links to the current page. ------------------- Com...

MySQL query optimization: a table optimization solution for 1 million data

1. Query speed of two query engines (myIsam engin...

Web developers are concerned about the coexistence of IE7 and IE8

I installed IE8 today. When I went to the Microso...

Record of the actual process of packaging and deployment of Vue project

Table of contents Preface 1. Preparation - Server...

Detailed explanation of Java calling ffmpeg to convert video format to flv

Detailed explanation of Java calling ffmpeg to co...

Tutorial on using portainer to connect to remote docker

Portainer is a lightweight docker environment man...

Detailed explanation of the use of HTML header tags

HTML consists of two parts: head and body ** The ...

Introduction to the use of em in elastic layout in CSS3: How many pixels is 1em?

I have been using CSS for a long time, but I have...

Solve the splicing problem of deleting conditions in myBatis

I just learned mybatis today and did some simple ...