So I've recently upgraded to mysql 5.7 from 5.6 on Ubuntu 14.04, and I can't connect to mysql if I use a port other than 0 or 3306. So mysql -u root -h 127.0.0.1
and mysql -u root -h 127.0.0.1 -P 3306
work, but if I try mysql -u root -h 127.0.0.1 -P 19300
I get
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
I suspect I started the mysql server wrong, but I'm not sure what I should do differently.
Any help is greatly appreciated. Thanks!