
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
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)
- Related Articles
- How to find out port of MySQL Server?
- What Is the Default MySQL Port Number?
- TCP/IP port in SAP HANA to access Index server
- TCP/IP port in SAP HANA to access Statistics server
- MySQL Server and Server-Startup Programs
- mysqld - The MySQL Server
- SAP connector failed, use of port number 3350
- Port number for SAP HANA Cockpit offline administration
- How to make a MySQL Connection in JAVA? What is the port number to set on locahost?
- How to copy tables or databases from one MySQL server to another MySQL server?
- How to restart MySQL server?
- Starting and Stopping MySQL Server
- mysqld_safe - MySQL Server Startup Script
- mysql.server - MySQL Server Startup Script
- mysql_plugin - Configure MySQL Server Plugins

Advertisements