Kevin Duraj
2008-Feb-20 00:46 UTC
[Xapian-discuss] Hack for dbi2omega: missing multi-socket configuration...
dbi2omega hack for users with multiple MySQL instances using mysqlmanager on multiple sockets /etc/my.cnf [mysql.server] use-manager [manager] default-mysqld-path = /usr/libexec/mysqld socket = /tmp/manager.sock pid-file = /tmp/manager.pid password-file = /etc/mysqlmanager.passwd monitoring-interval = 7 port = 3305 [mysqld1] server_id = 1 socket = /var/lib/mysql/mysql.sock1 port = 3306 user = mysql mysqld-path = /usr/libexec/mysqld datadir = /var/lib/mysql [mysqld2] server_id = 2 socket = /var/lib/mysql/mysql.sock2 port = 3307 user = mysql mysqld-path = /usr/libexec/mysqld datadir = /var/lib/mysql /usr/libexec/mysqlmanager START INSTANCE xapian-omega-1.0.5/dbi2omega is missing socket configuration my $dbh = DBI->connect("DBI:$driver:$database", $username, $password) or die "Couldn't connect to database: " . DBI->errstr; Happy Hacking ... xapian-omega-1.0.5/dbi2omega -------------------------------------------------------------- $dbh = DBI->connect('DBI:mysql:mysql_socket=/var/lib/mysql/mysql.sock1;database=mydatabase' ,'user', 'password', { PrintError => 1, RaiseError => 1 } ) or die "Can't connect to the database: $DBI::errstr\n"; -- Kevin Duraj http://UncensoredWebSearch.com