Interested in improving this site? Please check the To Do page.

Back to MySQL Verbs

mysql.connect

Connect to a MySQL server.

Syntax

mysql.connect (host, user, password, database, port)

Params

The hostname, user id, password, existing database name, and port

Returns

A MySQL object handle (also called a database connection ID) or a scriptError