ปัญหา เชื่อม ต่อ Mysql ข้าม Server Lost connection to MySQL server at 'reading

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: ปัญหา เชื่อม ต่อ Mysql ข้าม Server Lost connection to MySQL server at 'reading

Re: ปัญหา เชื่อม ต่อ Mysql ข้าม Server Lost connection to MySQL server at 'reading

โดย konseo » 13/09/2013 2:35 am

ยังไม่เคยเจอปัญหานี้กับ sqlครับ
ส่วนมากจะเจอแต่ sql ล่มตลอดเลย อิอิ

ปัญหา เชื่อม ต่อ Mysql ข้าม Server Lost connection to MySQL server at 'reading

โดย mindphp » 10/09/2013 6:39 pm

เชื่อม ต่อ Mysql ข้าม Server
Lost connection to MySQL server at 'reading initial communication packet', system error: 113

เป็นเพราะ เครื่อง ปลายทาง เปิด Firewall iptables อยู่ ต้องเปิด ให้ เครื่อง อื่น ติดต่อเข้ามาที่ port 3306 (ของ Mysql )
ถ้าใช้ iptables เปิดคำสั่ง
เข้าระบบ ในฐานะ root กรณี Server เป็น CentOS

โค้ด: เลือกทั้งหมด

sudo iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT

โค้ด: เลือกทั้งหมด

/etc/init.d/iptables save

โค้ด: เลือกทั้งหมด

service iptables save
ถ้าเป็น windown ให้ add port 3306 ให้ภายนอกเข้ามาใช้งานได้

ข้างบน