unixODBC with mariadb: isql fails with SQLAllocHandle on SQL_HANDLE_HENV failed
This document (7024279) is provided subject to the disclaimer at the end of this document.
Environment
Situation
odbcinst -i -s -l -f MariaDB_odbc_data_source_template.ini
---content---
[MariaDB-server]
Description=MariaDB server
Driver=MariaDB ODBC
SERVER=localhost
USER=root
PASSWORD=linux
DATABASE=<password>
PORT=3306
---content-end---
odbcinst -i -d -f MariaDB_odbc_driver_template.ini
---content---
[MariaDB ODBC]
Description = MariaDB Connector/ODBC
Driver = /usr/lib64/libmariadb.so.3
---content-end---
sles12sp4:~ # isql -v "MariaDB-server"
[IM004][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
[ISQL]ERROR: Could not SQLConnect
Resolution
odbcinst -i -d -f MariaDB_odbc_driver_template.ini
---content---
[MariaDB ODBC]
Description = MariaDB Connector/ODBC
Driver = /usr/lib64/libmyodbc5.so
---content-end---
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7024279
- Creation Date: 21-Nov-2019
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com