F
firefoxchris
Guest
Hello all,
I encountered a problem after installing MySQL Connector/ODBC 5.1 on my Plesk 9.2 installation.
From ASP Scripts (and probably others run by the IIS user), I was receiving the following error when trying to connect to the database using the newer driver..
Specified driver could not be loaded due to system error 5 (MySQL ODBC 5.1 Driver)
After a bit of digging, I found that Error 5 is an "Access Denied" error, not to the database but to the driver DLL files. I installed Process Monitor, filtered to path containing "MySQL" and ran a script again.
I found entried for ACCESS DENIED to C:\Program Files (x86)\MySQL\Connector ODBC 5.1\myodbc5.dll. After including the colum for username, it appeared the script was running as the user iwam_plesk(default), however further investigation showed it was impersonating as the IUSR_PLESKSITEUSERNAME user.
I gave the Plesk group psacln read/execute access to the C:\Program Files (x86)\MySQL\Connector ODBC 5.1 folder and my site worked!
It took me ages to figure it our so thought it was worth posting to save time of anyone having a similar problem.
Hope this helps.
I encountered a problem after installing MySQL Connector/ODBC 5.1 on my Plesk 9.2 installation.
From ASP Scripts (and probably others run by the IIS user), I was receiving the following error when trying to connect to the database using the newer driver..
Specified driver could not be loaded due to system error 5 (MySQL ODBC 5.1 Driver)
After a bit of digging, I found that Error 5 is an "Access Denied" error, not to the database but to the driver DLL files. I installed Process Monitor, filtered to path containing "MySQL" and ran a script again.
I found entried for ACCESS DENIED to C:\Program Files (x86)\MySQL\Connector ODBC 5.1\myodbc5.dll. After including the colum for username, it appeared the script was running as the user iwam_plesk(default), however further investigation showed it was impersonating as the IUSR_PLESKSITEUSERNAME user.
I gave the Plesk group psacln read/execute access to the C:\Program Files (x86)\MySQL\Connector ODBC 5.1 folder and my site worked!
It took me ages to figure it our so thought it was worth posting to save time of anyone having a similar problem.
Hope this helps.