Advertisement

[UnixODBC] [Driver Manager] Data source name not found, and no default driver specified

Started by June 30, 2012 01:27 AM
4 comments, last by polyfrag 12 years, 5 months ago
[color=#000000][font=verdana, arial, sans-serif]

I have a game server running on Amazon EC2 (Amazon Linux)[/font][color=#000000][font=verdana, arial, sans-serif]


I have a MySQL database called pathogen[/font][color=#000000][font=verdana, arial, sans-serif]


I connect using MySQL Connector ODBC:[/font][color=#000000][font=verdana, arial, sans-serif]


DRIVER = {MySQL ODBC 5.1 Driver}; SERVER = localhost; PORT = 3306; DATABASE = pathogen; UID = root; PWD = ...;[/font][color=#000000][font=verdana, arial, sans-serif]


The error I get is:[/font][color=#000000][font=verdana, arial, sans-serif]


[UnixODBC] [Driver Manager] Data source name not found, and no default Driver Specified
IM002[/font][color=#000000][font=verdana, arial, sans-serif]


This worked fine on Windows. Do I have to change "MySQL ODBC 5.1 Driver"? Why can't it find the data source?[/font]

Is there a mailing list I can ask this? UnixODBC?
Advertisement
I have mysql-connector-odbc installed
What language are you using to connect to it with?
C/C++

Compiled with g++
Fixed

Needed to set up a datasource in /etc/odbc.ini and then call the datasource with DSN=...;UID=root;PWD=...;

This topic is closed to new replies.

Advertisement