Direct interface to MySQL database.
class MySQL( connect )
Direct interface to MySQL database.
connect | String containing connection parameters. |
The string is in the following format:
<host>,<user>,<passwd>,<db>,<port>,<unixSocket>,<clientFlags>
All the parameters are optional except for port or user. To pass an empty parameter, just use two commas one beside anoter. In example, to connect to a database "mydb" at localhost as "root" user without password, use:
localost,root,,mydb