Extracted from Pike v7.3 release 16 at 2002-03-05.
pike.roxen.com
[Top]
Mysql
Mysql.mysql

Method Mysql.mysql()->create()


Method create

void Mysql.mysql()->create()
void Mysql.mysql()->create(string host)
void Mysql.mysql()->create(string host, string database)
void Mysql.mysql()->create(string host, string database, string user)
void Mysql.mysql()->create(string host, string database, string user, string password)

Description

Connect to a Mysql database.

To access the Mysql database, you must first connect to it. This is done with this function.

If you give no argument, or give "" as hostname it will connect with a UNIX-domain socket, which can be a big performance gain.