Use --port and --host when connecting to MySQL.