ติดต่อ mySQL บน Fedora ผ่าน VB ไม่ได้

ทำให้ดู ดูแล้วจำ จำแล้วนำไปใช้ ..5 5 5 คำพูดของผู้กองสมาท

ทำแล้วชอบลืมวิธีการแ้ก้ปัญหา…takes note เก็บไว้ใช้ยามเรียกหา

ใช้ Windows XP SP3 จะติดต่อ mySQL ที่ได้ติดตั้งบน Fedora 10 โดยที่ได้ติดตั้ง mysql-connector-odbc-5.1.6-win32.msi แล้ว ตรวจสอบจาก Control Panel

ปัญหา คือ

เมื่อ Connect ผ่านโปรแกรม ได้ข้อความ Connection Failed: [HY000][MySQL][ODBC 5.1 Driver]Can’t connect to MySQL server on ’10.211.x.x’ (10065)


การแก้ไข

1.) ตรวจสอบที่ Fedora โดยพิมพ์คำส่ง hostname#setup (ใช้ root user)  เพื่อดูว่า มีการติดตั้งระบบ FireWall Configuration ให้เป็น enable หรือไม่ ถ้ามีให้เพิ่ม Port = 3306 ที่ เริ่มจาก Customize ==> Forward ==> Add

โดยเพิ่ม port:3306 ทั้ง tcp และ udp

2. จากนั้น ทดสอบโดยใช้ ODBC พิมพ์ พารามิเตอร์ ดังรูป กดปุ่ม Test



This entry was posted in Application, Information Technology and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>