ข้ามไปที่เนื้อหาหลัก

The setup routines for the mysql odbc 5.1 driver odbc driver could not be found please reinstall the driver

เครื่องที่เจอปัญหาใช้งาน ODBC ของ MySQL 5.1 ไม่ได้ นั้นใช้ระบบปฏิบัติการ

Windows 7 Professional 32bit

หลังจากดาวน์โหลด และติดตั้ง Connector/ODBC 5.1.13 ดาวน์โหลดจากหน้าเว็บ https://dev.mysql.com/downloads/connector/odbc/

และเมื่อเข้าไปสร้างตัวเชื่อมต่อที่ ODBC Data Source Administrator กลับต้องเจอกับข้อความนี้

The setup routines for the mysql odbc 5.1 driver odbc driver could not be found please reinstall the driver

หลังจากพยายามหาวิธีแก้ไขอยู่ 2 วัน สุดท้ายก็ได้คำตอบจากเว็บนี้

https://www.landfx.com/kb/item/1032-the-setup-routines-for-the-mysql-odbc-driver-could-not-be-loaded-due-to-system-error-code-193.html


ซึ่งได้แนะนำวิธีแก้ไขไว้ดังนี้

The Setup Routines for the MySQL ODBC Driver Could Not be Loaded Due to System Error Code 193

Issue

When trying to either access or remove the ODBC driver, you see either of the following error messages:
  • The setup routines for the mysql odbc driver could not be loaded due to system error code 193
  • Error 1918: Error installing odbc driver ... 


Solution

1. Download the zip file installers from the MySQL site:
We are using the 5.1 version so click on 'looking for previous versions?' and download the zip archive.
2. Uninstall existing odbc driver using the Add & Remove Programs from the control panel 
3. Run the Uninstall.bat file from the download
4. Now run the Install.bat file from the download
This should do the trick!


 ซึ่งเมื่อทำตามขั้นตอนนี้ปรากฏว่าใช้งานได้จริง 

แปลได้ดังนี้
1. ให้ดาวน์โหลดตัว connector มาใหม่ โดยเลือกเป็นแบบ Zip ไฟล์
2. ถอนตัวติดตั้งเดิมออก
3. เข้าไปรันไฟล์ Uninstall.bat ในโฟลเดอร์ที่ดาวน์โหลดมาใหม่
4. เข้าไปรันไฟล์ Install.bat ในโฟลเดอร์ที่ดาวน์โหลดมาใหม่

เพียงเท่านี้ก็เข้าไปสร้างตัวเชื่อมต่อได้แล้วครับ

ความคิดเห็น

PHP CI MANIA