#67 MySQL4.1 DSN and different port

closed-fixed
nobody
MySQL (29)
5
2005-03-29
2005-03-26
No

How to connect to mysql4.1 on different port? I would
like to use DSN syntax. E.g.
"mysql://user:passs@localhost:3308/mydb" does *not*
work :( Examples I found in documentation for SQLite
does not say anythong about conection to the specific
port. (I _can_ connect from my Python v2.4.1 and
MySQLdb v1.2 using MySQLdb.connect(...) but not using
dsn syntax)

Discussion

  • Oleg Broytman
    Oleg Broytman
    2005-03-29

    Logged In: YES
    user_id=4799

    mysql://user:passs@localhost:3308/mydb is the correct
    syntax. You have to use more recent SQLObject from
    Subversion to use it.

    Examples found in documentation for SQLite does not say
    anythong about conection to the specific port because SQLIte
    is not a server - it's an embedded DB.

     
  • Oleg Broytman
    Oleg Broytman
    2005-03-29

    • status: open --> closed-fixed