如何解决MySQL ODBC支持MySQL Cluster Server吗?
最近,我们在RStudio服务器上执行了MysqL群集版本升级,这需要删除以前的MysqL驱动程序-包括ODBC驱动程序。这破坏了我们执行MySQL查询的连接。我能够找到使用libMysqLclient代替libmyodbc驱动程序的解决方法,但是我想知道是否存在针对MysqL Cluster的当前MysqL ODBC支持的驱动程序?我似乎找不到任何好的文档。谢谢。
由于先前使用libMysqLclient.so.18安装了RMysqL软件包,因此该软件包已成功编译,但是在安装MysqL Cluster之后,所有旧文件均被删除。如果尝试使用DBI,RODBC或MysqL连接到MysqL,则会收到有关文件丢失的错误。如果我重新安装驱动程序,它将挂起或给出冲突的驱动程序错误消息。我最终在/ usr / lib64 / MysqL中找到了一个更新的MysqL驱动程序,并刚刚创建了一个符号链接:
ln -s /usr/lib64/MysqL/libMysqLclient.so.21.1.22 /usr/lib64/libMysqLclient.so.18
这允许RMysqL软件包相信丢失的文件再次可用,并且该软件包现在可以使用更新的libMysqLclient驱动程序工作。但是,我也希望ODBC驱动程序也能再次工作。。。在那里有人能在MysqL Cluster Server上运行MysqL ODBC驱动程序吗?
# broke libMysqLclient drivers:
> con <- dbConnect(odbc::odbc(),.connection_string = "Driver={MysqL};Server=X.X.X.X;Port=YYYY;Database=DB;Uid=USER;Pwd=PASS;",timeout = 10)
Error: nanodbc/nanodbc.cpp:983: 00000: [unixODBC][Driver Manager]Can't open lib 'MysqL' : file not found
# broke MysqL ODBC Drivers
> odbcListDrivers()
name attribute value
...
7 MysqL Description ODBC for MysqL
8 MysqL Driver /usr/lib/libmyodbc5.so
9 MysqL Setup /usr/lib/libodbcmyS.so
10 MysqL Driver64 /usr/lib64/libmyodbc5.so
11 MysqL Setup64 /usr/lib64/libodbcmyS.so
12 MysqL FileUsage 1
如果我尝试重新安装旧的驱动程序,则MysqL群集会出现冲突错误:
(base) [root@r-server lib64]# yum install mysql-connector-odbc.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.den01.meanservers.net
* centos-sclo-rh: reflector.westga.edu
* centos-sclo-sclo: mirrors.tummy.com
* epel: mirror.oss.ou.edu
* extras: linux-mirrors.fnal.gov
* updates: mirror.dal10.us.leaseweb.net
Resolving Dependencies
--> Running transaction check
---> Package mysql-connector-odbc.x86_64 0:5.2.5-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================
Installing:
mysql-connector-odbc x86_64 5.2.5-8.el7 base 142 k
Transaction Summary
================================================================================================================================================================================
Install 1 Package
Total download size: 142 k
Installed size: 419 k
Is this ok [y/d/N]: y
Downloading packages:
mysql-connector-odbc-5.2.5-8.el7.x86_64.rpm | 142 kB 00:00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : mysql-connector-odbc-5.2.5-8.el7.x86_64 1/1
Verifying : mysql-connector-odbc-5.2.5-8.el7.x86_64 1/1
Installed:
mysql-connector-odbc.x86_64 0:5.2.5-8.el7
Complete!
(base) [root@r-server lib64]# yum install MysqL++-devel.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.den01.meanservers.net
* centos-sclo-rh: reflector.westga.edu
* centos-sclo-sclo: mirrors.tummy.com
* epel: mirror.oss.ou.edu
* extras: linux-mirrors.fnal.gov
* updates: mirror.dal10.us.leaseweb.net
Resolving Dependencies
--> Running transaction check
---> Package MysqL++-devel.x86_64 0:3.1.0-12.el7 will be installed
--> Processing Dependency: MysqL++(x86-64) = 3.1.0-12.el7 for package: MysqL++-devel-3.1.0-12.el7.x86_64
--> Processing Dependency: MysqL-devel(x86-64) for package: MysqL++-devel-3.1.0-12.el7.x86_64
--> Processing Dependency: libMysqLpp.so.3()(64bit) for package: MysqL++-devel-3.1.0-12.el7.x86_64
--> Running transaction check
---> Package mariadb-devel.x86_64 1:5.5.65-1.el7 will be installed
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.65-1.el7 for package: 1:mariadb-devel-5.5.65-1.el7.x86_64
---> Package MysqL++.x86_64 0:3.1.0-12.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.65-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================
Installing:
MysqL++-devel x86_64 3.1.0-12.el7 epel 156 k
Installing for dependencies:
mariadb-devel x86_64 1:5.5.65-1.el7 base 756 k
mariadb-libs x86_64 1:5.5.65-1.el7 base 759 k
MysqL++ x86_64 3.1.0-12.el7 epel 163 k
Transaction Summary
================================================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 1.8 M
Installed size: 9.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): MysqL++-3.1.0-12.el7.x86_64.rpm | 163 kB 00:00:05
(2/4): MysqL++-devel-3.1.0-12.el7.x86_64.rpm | 156 kB 00:00:00
(3/4): mariadb-devel-5.5.65-1.el7.x86_64.rpm | 756 kB 00:00:05
(4/4): mariadb-libs-5.5.65-1.el7.x86_64.rpm | 759 kB 00:00:06
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 299 kB/s | 1.8 MB 00:00:06
Running transaction check
Running transaction test
Transaction check error:
file /usr/share/MysqL/charsets/README from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/Index.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/armscii8.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/ascii.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp1250.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp1251.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp1256.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp1257.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp850.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp852.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/cp866.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/dec8.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/geostd8.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/greek.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/hebrew.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/hp8.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/keybcs2.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/koi8r.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/koi8u.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/latin1.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/latin2.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/latin5.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/latin7.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/macce.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/macroman.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/charsets/swe7.xml from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/czech/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/danish/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/dutch/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/english/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/estonian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/french/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/german/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/greek/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/hungarian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/italian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/japanese/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/korean/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/norwegian-ny/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/norwegian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/polish/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/portuguese/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/romanian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/russian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/serbian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/slovak/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/spanish/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/swedish/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
file /usr/share/MysqL/ukrainian/errmsg.sys from install of mariadb-libs-1:5.5.65-1.el7.x86_64 conflicts with file from package MysqL-Cluster-server-gpl-7.4.10-1.el7.x86_64
(base) [root@r-server MysqL-odbc]# rpm -ivh MysqL-community-client-plugins-8.0.22-1.el7.x86_64.rpm
warning: MysqL-community-client-plugins-8.0.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
file /usr/lib64/MysqL/plugin/authentication_ldap_sasl_client.so from install of MysqL-community-client-plugins-8.0.22-1.el7.x86_64 conflicts with file from package MysqL-cluster-community-client-plugins-8.0.22-1.el7.x86_64
(base) [root@r-server MysqL-odbc]# rpm -ivh mysql-connector-odbc-setup-8.0.22-1.el7.x86_64.rpm
warning: mysql-connector-odbc-setup-8.0.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-connector-odbc = 8.0.22-1.el7 is needed by mysql-connector-odbc-setup-8.0.22-1.el7.x86_64
(base) [root@r-server MysqL-odbc]# rpm -ivh mysql-connector-odbc-8.0.22-1.el7.x86_64.rpm
warning: mysql-connector-odbc-8.0.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
error: Failed dependencies:
MysqL-community-client-plugins = 8.0.22 is needed by mysql-connector-odbc-8.0.22-1.el7.x86_64
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。