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

Solutions to the Problem of Creating XHTML and CSS Web Pages

The solutions to the problems encountered during x...

Detailed explanation of the use of various MySQL indexes

1. Slow query log 1.1 MySQL log types Logs are us...

Tomcat class loader implementation method and example code

Tomcat defines multiple ClassLoaders internally s...

Example of creating table statements for user Scott in MySQL version of Oracle

Overview: Oracle scott user has four tables, whic...

MySQL not null constraint case explanation

Table of contents Set a not null constraint when ...

13 JavaScript one-liners that will make you look like an expert

Table of contents 1. Get a random Boolean value (...

Vue2/vue3 routing permission management method example

1. There are generally two methods for Vue routin...

Vue implements student management function

This article example shares the specific code of ...

Method to detect whether ip and port are connectable

Windows cmd telnet format: telnet ip port case: t...

JavaScript dynamically generates a table with row deletion function

This article example shares the specific code of ...

Using group by in MySQL always results in error 1055 (recommended)

Because using group by in MySQL always results in...

Solution to the problem that the mysql8.0.11 client cannot log in

This article shares with you the solution to the ...

Docker deploys net5 program to achieve cross-platform functions

Deployment environment: docker container, liunx s...

Building a KVM virtualization platform on CentOS7 (three ways)

KVM stands for Kernel-based Virtual Machine, whic...