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

Simple implementation method of Linux process monitoring and automatic restart

Purpose: Under Linux, the server program may be d...

The easiest way to install MySQL 5.7.20 using yum in CentOS 7

The default database of CentOS7 is mariadb, but m...

Vue+thinkphp5.1+axios to realize file upload

This article shares with you how to use thinkphp5...

How to find and delete duplicate records in MySQL

Hello everyone, I am Tony, a teacher who only tal...

Build Maven projects faster in Docker

Table of contents I. Overview 2. Conventional mul...

Write a publish-subscribe model with JS

Table of contents 1. Scene introduction 2 Code Op...

Summarize the common application problems of XHTML code

Over a period of time, I found that many people d...

Implementation of React star rating component

The requirement is to pass in the rating data for...

MySQL foreign key setting method example

1. Foreign key setting method 1. In MySQL, in ord...

Practice of dynamically creating dialog according to file name in vue+el-element

Table of contents background accomplish 1. Encaps...

How to use jsonp in vue

Table of contents 1. Introduction 2. Installation...

Detailed steps to install python3.7 on CentOS6.5

1. Download Python 3 wget https://www.python.org/...

Detailed explanation of jQuery's core functions and event handling

Table of contents event Page Loading Event Delega...

MySQL 8.0.14 installation and configuration method graphic tutorial

This article records the installation and configu...

What is ZFS? Reasons to use ZFS and its features

History of ZFS The Z File System (ZFS) was develo...