16.01.2018, 06:06
Today i learn'd
this - here code and logs....
using the latest MySQL version i was checking when the MySQL was connected or failed to make connection
R41-4
log when failed to connect to mysql phpmyadmin
logs that successfully connected to mysql phpmyadmin
this - here code and logs....
Код:
if(mysql_errno(g_handle) != 0) // either connected or failed to connect { print("[MySQL] Failed the connection to \"phpMyAdmin\".\n"); SendRconCommand("exit"); } else { print("[MySQL] Successfully made a connection to \"phpMyAdmin\".\n"); }
R41-4
log when failed to connect to mysql phpmyadmin
Код HTML:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [07:58:30] filterscripts = "" (string) [07:58:30] [07:58:30] Server Plugins [07:58:30] -------------- [07:58:30] Loading plugin: mysql [07:58:30] >> plugin.mysql: R41-4 successfully loaded. [07:58:30] Loaded. [07:58:30] Loaded 1 plugins. [07:58:31] [07:58:31] Filterscripts [07:58:31] --------------- [07:58:31] Loaded 0 filterscripts. [07:58:35] [MySQL] Failed the connection to "phpMyAdmin". [07:58:35] Number of vehicle models: 0 [07:58:35] --- Server Shutting Down. [07:58:35] plugin.mysql: Unloading plugin... [07:58:35] plugin.mysql: Plugin unloaded.
Код HTML:
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [07:59:05] filterscripts = "" (string) [07:59:05] [07:59:05] Server Plugins [07:59:05] -------------- [07:59:05] Loading plugin: mysql [07:59:06] >> plugin.mysql: R41-4 successfully loaded. [07:59:06] Loaded. [07:59:06] Loaded 1 plugins. [07:59:06] [07:59:06] Filterscripts [07:59:06] --------------- [07:59:06] Loaded 0 filterscripts. [07:59:06] [MySQL] Successfully made a connection to "phpMyAdmin". [07:59:06] Number of vehicle models: 0