Lost connection to MySQL server at 'reading initial communication packet', system error: 113
เป็นเพราะ เครื่อง ปลายทาง เปิด Firewall iptables อยู่ ต้องเปิด ให้ เครื่อง อื่น ติดต่อเข้ามาที่ port 3306 (ของ Mysql )
ถ้าใช้ iptables เปิดคำสั่ง
เข้าระบบ ในฐานะ root กรณี Server เป็น CentOS
Code: Select all
sudo iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT
Code: Select all
/etc/init.d/iptables save
Code: Select all
service iptables save