Pages

Tuesday, October 19, 2010

шпаргалка - ubuntu + unixodbc + postgresql

  1. sudo apt-get install unixODBC odbc-postgresql
  2. gksudo gedit /etc/odbcinst.ini

    [PostgreSQL]
    Description     = PostgreSQL driver for Linux & Windows
    Driver          = /usr/lib/odbc/psqlodbcw.so
    Setup           = /usr/lib/odbc/libodbcpsqlS.so
  3. gksudo gedit /etc/odbc.ini

    [asterisk]
    Driver = /usr/lib/odbc/psqlodbcw.so
    Database = your_dbname
    Servername = localhost
    Username = your_username
    Password = your_password
    Protocol = 8.2.5
    ReadOnly = 0
  4. isql asterisk -v

No comments: