need help with mysql

View: New views
2 Messages — Rating Filter:   Alert me  

need help with mysql

by John Fan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have an issue with mysql on pike when clone Sql.Sql object.

string connection = "mysql://localhost/testdb";
Sql.Sql db = Sql.Sql(connection);

The error is

Failed to index module Sql.mysql or Sql.Provider.mysql.
/usr/local/pike/7.8.316/lib/modules/Sql.pmod/Sql.pike:281:
    Sql.Sql()->create("localhost","testdb",UNDEFINED,"CENSORED",UNDEFINED)

Pike version 7.8.316. OS -- Fedora 11

Same query on my windows machine works just fine with pike version v7.6.66

Any idea how can I get around the issue? Thanks in advance.

need help with mysql

by Mirar @ Pike importmöte för mailinglistan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sounds like MySQL support wasn't compiled in. A more canon way to
check is:

  # pike --features | grep -i mysql
  Mysql

If you install from system packages there is usually a pike-mysql
package to get what you want. If you compile from source make sure the
libmysql-dev package is installed before you configure/make.

If you still have your build tree you can look at build/*/config.info
to get an overview of which dependencies failed.