CentOS上的Plesk MySQL驱动程序配置错误

时间:2014-01-24 16:44:01

标签: mysql centos driver plesk

在我的Cent OS盒子上手动升级PHP和MySQL然后登录到我的Plesk管理面板后,我在尝试执行大量任务时收到以下错误。 PHP和MySQL本身就能正常运行。

New files of configuration for Apache web server were not built due to errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = [unixODBC][Driver Manager]Can't open lib '/usr/lib64/libmyodbc3.so' : /usr/lib64/libmyodbc3.so: cannot open shared object file: No such file or directory. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating broken configuration or click here to retry generating of all configurations.

我在以下文件中找到了ODBC配置详细信息:

/etc/odbcinst.ini

其内容如下:

# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]
Description = MySQL driver for Plesk
Driver      = /usr/lib64/libmyodbc3.so
Setup       =
FileUsage   = 1
Driver64    = /usr/lib64/libmyodbc3.so
Setup64     =
UsageCount  = 1

我希望驾驶员&必须更新Driver64参数以反映MySQL升级时发生的更改,但是我无法找到相应驱动程序的路径,现在已超出我的深度。任何建议都非常欢迎。

更新:'#locate libmyodbc3'没有结果。

1 个答案:

答案 0 :(得分:1)

原来缺少ODBC和mysql-connector-odbc软件包。

使用YUM安装它们如下:

 # yum install unixODBC 
 # yum mysql-connector-odbc packages