Home > Database > Mysql Tutorial > body text

How to query the port in mysql

WBOY
Release: 2022-01-20 16:05:17
Original
29141 people have browsed it

In mysql, you can use the show command to view the port. The function of this command is to view some MySQL parameters, databases, tables, columns, indexes and other information. The syntax is "show global variables like 'port'".

How to query the port in mysql

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.

How does mysql query the port

Enter the command line mysql -u root -p in the dos interface. If the version number and other contents in the picture appear, it means that the mysql service has been connected

How to query the port in mysql

At this time, enter show global variables like 'port'; to view the port number

How to query the port in mysql

Know the port number If you need to continue to enter other content later, you can ctrl c to exit the current state

How to query the port in mysql

Recommended learning: mysql video tutorial

The above is the detailed content of How to query the port in mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!