I think you haven't read the article which I provided on second link. Read the "Where are ODBC drivers defined?"
section . If you have installed unixODBC you can use odbcinst -j
command and see the files where you want to set your details -
$ odbcinst -j
SYSTEM DATA SOURCES: /etc/odbc.ini
USER DATA SOURCES..: /home/auser/.odbc.ini
You need to read that article thoroughly, if you have understood that, then implement those steps according to your need... And if you face any problem then we are here to help you..