csqlds not working

Developers
KDG
2014-08-14
2014-08-14
  • KDG

    KDG - 2014-08-14

    Hi, I am using the csqlds tool like this:

    csqlds kamal rebaca myodbc mysql -a

    I am getting usage error:

    Usage: csqlds [-U username] [-P passwd] [-D dsnname] [-N tdbname]
    [-a] [-r]
    username -> Username of TDB .
    passwd -> Password of TDB.
    dsnname -> DSN to connect to tdb.
    tdbname -> Name of Target database
    -a -> Add entry to csqlds.conf
    -r -> Remove entry from csqlds.conf

    My odbc.ini looks like this:

    [ODBC Data Sources]
    myodbc = MyODBC 3.51 Driver DSN

    [myodbc]
    Driver = /usr/lib/i386-linux-gnu/odbc/libmyodbc.so
    Description = Connector/ODBC 3.51 Driver DSN
    SERVER = localhost
    PORT = 3306
    USER = kamal
    Password =
    Database = test
    OPTION = 16
    SOCKET = /run/mysqld/mysqld.sock

    I am new to csql. Please suggest if any thing looks amiss.

     
  • Bijaya kumar Sahu

    Hi,
    As mentioned in Usage message, try as below
    csqlds [-U username] [-P passwd] [-D dsnname] [-N tdbname] -a
    Example:
    csqlds -U kamal -P rebaca -D myodbc -N test -a

     
  • KDG

    KDG - 2014-08-14

    Thanks a lot. It worked. :)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks