Perl MYSQL Error : libmysql.dll

蓝咒 提交于 2019-12-23 05:08:08

问题


Have you ever met this error when code Perl to access db MYSQL : The procedure entry point mysql_get_parameters could not be located in libmysql_.dll ?

I already copied libmysql.dll from D:\xampp\mysql\lib\ to many places and renamed it to libmysql_.dll: - D:\xampp\perl\vendor\lib\auto\DBD\mysql\ - C:\WINDOWS\System32\ But still Entry Point Not Found -.-'

Please help ...

Regards, Christine


回答1:


  1. Download Strawberry Perl from http://strawberryperl.com/
  2. Install it on your PC
  3. Find libmysql_.dll file from C:\strawberry\c\bin
  4. Copy it onto D:\xampp\perl\vendor\lib\auto\DBD\mysql



回答2:


I know this is an OLD problem, but current strawberry perl (5.24.1.1) will not work as downloaded/installed unless you use the answer above to fix it.

Copy the dll located at [DRIVELETTER]:\Strawberry\c\bin\LIBMYSQL_.dll

TO: [DRIVELETTER]:\Strawberry\perl\vendor\lib\auto\DBD\mysql

And your legacy mysql scripts will work again :-) (well, mine did)




回答3:


Copying C:\strawberry\c\bin\libmysql_.dll to c:\strawberry\perl\vendor\lib\auto\mysql does not work in Release Strawberry 5.28.2.

My solution is rather unusual - but works (until now): I took the libmysql_.dll from Release Perl 5.12 from ActiveState (yes, sorry, but I was in despair)!!! Copying this file (from 28th Sept 2016) to c:\strawberry\perl\vendor\lib\auto\mysql did it for me.



来源:https://stackoverflow.com/questions/20990786/perl-mysql-error-libmysql-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!