You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2020. It is now read-only.
Further options can be found under https://github.com/mysqljs/mysql#connection-options for the mysql.js connection string
36
+
Further options can be found under https://github.com/mysqljs/mysql#connection-options for the mysql.js connection string, they can be added on both: the semicolon seperated string or the url-like string.
37
+
38
+
### keepAlive
39
+
40
+
For people, having issues with the connection being interrupted for usually a bad network configuration, but have no way of figuring out what is wrong, there is an option to enable keep alive queries. This will execute a query on the given interval. To enable those keep alive queries, append e.g. `keepAlive=60` to your connection string, seperated with a semicolon, to ensure that a keep alive query is fired every 60s.
41
+
42
+
### ConVars
43
+
44
+
The following ConVars are available in the `server.cfg` which you execute. These have also to be set before `start mysql-async`
45
+
*`set mysql_debug 1`: Prints out the actual consumed query.
46
+
*`set mysql_debug_output "console"`: Select where to output the log, accepts `console`, `file`, and `both`. In case of `both` and `file` a file named `mysql-async.log` in your main server folder will be created.
47
+
*`set mysql_slow_query_warning 200`: Sets a limit in ms, queries slower than this limit will be displayed with a warning at the specified location of `mysql_debug_output`, see above.
48
+
49
+
## GUI
50
+
51
+
Since the newest version, anyone with ace admin rights can open the GUI by typing `mysql` in the F8 console. This opens a profiling view of the data collected by this middleware, that might help you optimize resources and queries. You can disable the viewing of certain data by clicking on the respective entry in the legends, and can browse a table of the 21 slowest performing queries.
36
52
37
53
## Usage
38
54
@@ -115,7 +131,7 @@ local countPlayer = MySQL.Sync.fetchScalar("SELECT COUNT(1) FROM players")
115
131
116
132
## Features
117
133
118
-
* Async / Sync
134
+
* Async / Sync.
119
135
* It uses the https://github.com/mysqljs/mysql library to provide a connection to your mysql server.
120
136
* Create and close a connection for each query, the underlying library use a connection pool so only the
121
-
mysql auth is done each time, old tcp connections are keeped in memory for performance reasons
137
+
mysql auth is done each time, old tcp connections are keeped in memory for performance reasons.
0 commit comments