Jump to content
  • Advertisement
Sign in to follow this  
polyfrag

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

This topic is 2210 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[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]

Share this post


Link to post
Share on other sites
Advertisement
Fixed

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!