I find it hard to establish a link between jdbc and mysql. I think one of the reasons is the mysql port. I checked the port with the statement: "show variables like 'port';" in mysql.And the answer is
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| port | 0 |
+---------------+-------+
1 row in set (0.07 sec)
My operating system is archlinux. How can I change mysql port from 0 to 3306?
I have changed the port number in both /etc/my.cnf and /etc/mysql/my.cnf. But it didn't work.