Tomcat/Hibernate connection to MySql fails with “Communications link failure” & “Permission denied”
问题 I'm trying to connect to MySql (=MariaDB) on the localhost (lets call it A) from a tomcat webapp using Hibernate, but keep getting Communication link failure (the full exception trace attached below). I have another replica of the DB on a different machine (lets call it B) and also using a 3rd computer for development (lets call it C). 1) I have no issues connecting from C to either of the DBs (A & B). 2) On "A" I have no problems connecting locally to the DB (running 'mysql -u' command). I