Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Install the ODBC in Linux and connect that to your database

    • 0
    • 3
    • 1
    • 2
    • 0
    • 0
    • 0
    • 0
    • 436
    Comment on it

    To install the ODBC driver and then connect that to your Database follow the below steps:

    1- To install ODBC run the below command from terminal

    sudo apt-get install unixodbc-dev unixodbc-bin unixodbc
    

    2- To install ODBC driver run the below command from terminal

    sudo apt-get install libmyodbc
    

    3- To check ODBC is running or not run the below command:

    isql
    

    5- Now define the below lines in odbc.ini file:

    [mysql-db-source]
    
    Driver=/usr/lib/i386-linux-gnu/odbc/libmyodbc.so
    
    Server=localhost
    
    Port=3306
    
    User=root
    
    Password=
    
    Database=test
    

    5 - To check connection through ODBC to your database

    isql -v mysql-db-source
    

    Hope this will help you :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: