uce/site/doc/pages/mysql_connect.txt
2026-06-16 12:21:31 +00:00

20 lines
596 B
Plaintext

:sig
MySQL* mysql_connect(String host = "localhost", String username = "root", String password = "")
:params
host : host name of the MySQL server
username : user name
password : password
return value : pointer to the MySQL connection struct
:see
>mysql
:content
Establishes a connection to a MySQL server and returns a pointer to the connection struct.
This connection handle is then used with helpers such as `mysql_query()`, `mysql_error()`, and `mysql_disconnect()`.
:example
print("mysql_connect is resource-bound; configure the service or connection, then call it in request code.\n");