MySQL client does not use the port parameter

It will happen if you use localhost as the server address. The client will then use the Unix sockets. Use 127.0.0.1 instead. This issue is common when using SSL tunnels.

Read More

Get the MySQL database schema using SQL

A complete database schema can be retrieved using the following MySQL statement from the information_schema database:

Read More