What's the Hostname & Port for MySQL?

If you want to connect directly to your MySQL database or connect another application to your database, you’ll need to know the MySQL port

The default MySQL port is: 3306

And the default MySQL hostname is: localhost

Even though you may find the MySQL port with SQL.

Step 01: 
Login into cPanel.

Step 02: Look for the Databases section, then click phpMyAdmin.

Step 03: Click on the SQL tab

Step 04: In the Run SQL query box, enter the following:

SHOW VARIABLES WHERE Variable_name = 'port';

Step 05: Then click go.

Or you may find the port from the top of the left corner of phpMyAdmin

OR If you will face any issues, please email us at support@adndiginet.com for more technical support.

  • Hostname for MySQL, Port for MySQL, Whats the hostname and port for MySQL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to create a subdomain?

Step 01: Log into your cPanel. Step 02: Go to the Domains section and click on Subdomains. Step...

PHP File upload size update?

Step 01: Log into cPanel. Step 02: Look for the SOFTWARE section and click on Select PHP...

PHP File upload size update?

Step 01: Log into cPanel. Step 02: Look for the SOFTWARE section and click on Select PHP...

How to Run auto SSL?

Step 01: Log into your cPanel account  Step 02: Navigate to SSL/TLS Status in the Security...

How do I auto-redirect my web pages?

Step 01: Login into your cPanel. Step 02: In the DOMAINS section of the cPanel home screen,...