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

Back to MySQL Verbs

mysql.init

Initializes the MySQL library.

Syntax

mysql.init()

Params

None

Returns

0 if successful, otherwise a scriptError.

Examples

on init () {
	bundle { // initialize the MySQL library
		try {
			mysql.init()}
		else {
			dialog.alert(tryError)}};
	mysql.end()}

Notes

You should call inside a try statement. Also, this should be called as soon as you start Frontier or before any other MySQL-related calls.

See Also


Personal Tools