1. install unixODBC - yum install unixODBC
2. install mariadb ODBC
[root@unicaapdemo bin]# yum install mariadb-connector-odbc
Last metadata expiration check: 16:31:52 ago on Fri 19 Nov 2021 10:00:09 PM +08.
Dependencies resolved.
=============================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================
Installing:
mariadb-connector-odbc x86_64 3.0.7-1.el8 LocalRepo_AppStream 113 k
Transaction Summary
=============================================================================================================================================================================
Install 1 Package
Total size: 113 k
Installed size: 351 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : mariadb-connector-odbc-3.0.7-1.el8.x86_64 1/1
Running scriptlet: mariadb-connector-odbc-3.0.7-1.el8.x86_64 1/1
Verifying : mariadb-connector-odbc-3.0.7-1.el8.x86_64 1/1
Installed products updated.
Installed:
mariadb-connector-odbc-3.0.7-1.el8.x86_64
Complete!
3. Add entry in /etc/odbcinst.ini
[MariaDB]
Description=ODBC for MariaDB
Driver=/usr/lib64/libmaodbc.so
Driver64=/usr/lib64/libmaodbc.so
FileUsage=1
No comments:
Post a Comment