jdbc鏈接錯誤信息:mysql
解決方案:sql
一、我直接把/etc、/usr/local/etc目錄下的my.conf文件刪除就行了。spa
二、最終變成下面這個樣子就能夠了.net
show global variables like 'port'; show variables like 'skip_networking';
網上參考資料:3d
https://blog.csdn.net/lixingqiao01/article/details/50956849 無效code
https://serverfault.com/questions/171655/mysql-allow-both-remote-and-local-connections server
第二個連接給了我思路,因此我直接把my.conf刪除了就行了blog