找到Mysql的配置文件路径/etc/my.cnfMysql下面添加以下参数：port = 3306 socket = /var/lib/mysql/mysql.sock skip-lockin...