
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
MySQL Server Port Number
If you will install MySQL on your system, then you will get the default MySQL server port number i.e. 3306.
To know the MySQL server port number, you can use the following query. Here, we have used the SHOW VARIABLES command. The query is as follows −
mysql> SHOW VARIABLES WHERE Variable_Name = 'port';
The following is the output −
+---------------+-------+ | Variable_Name | Value | +---------------+-------+ | port | 3306 | +---------------+-------+ 1 row in set (0.04 sec)
Advertisements