Thanks to visit codestin.com Credit goes to dev.mysql.com
This read-only property returns the TCP/IP port used for connecting to the MySQL server.
Returns an integer.