03.06.2014, 15:15
This is a client crash not a server crash. The MySQL plugin doesn't crash clients, so your problem is not related to this plugin.
This is a client crash not a server crash. The MySQL plugin doesn't crash clients, so your problem is not related to this plugin.
|
Originally Posted by Tidzii
alright this what gives
in server log. Quote:
|
This is really hard to debug.
[21:27:06] [DEBUG] CMySQLQuery::Execute[] - starting query execution [21:27:09] [ERROR] CMySQLQuery::Execute[] - (error #1136) Column count doesn't match value count at row 1 Using LOG_ALL |
Hey madd could you explain this a bit more please?
https://github.com/pBlueG/SA-MP-MySQL/issues/18 |
Well here is a picture, it doesn't seem to show for some reason, even though I refresh the browser, or close the tab and open again nothing is printed, the picture explains everything.
|
When I start my server I get this...
Started server on port: 7777, with maxplayers: 500 lanmode is OFF. terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::except ion_detail::error_info_injector<boost::thread_reso urce_error> >' what(): boost::thread_resource_error: Resource temporarily unavailable [3] Aborted ./samp03svr This happens when the mysql begins to load. Any clue why? |
public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
{
if(errorid == 2003*) return print("No reacho MySQLlo servo");
return printf("[MYSQL]: Error in query: (%s)\nError ID %d: %s.", query, errorid, error);
}
Yesterday I upgraded from R17 to R39-2 and I have a few questions about this new update.
1) I've decided to go with the rewritten multi-thread system, but how does the pool_size option work exactly? I understand that it regulates the amount of threads. Are there any consequences if you set this to a high number? Are pools and connection handles the same thing? [...] |
Why? Just use mysql_errno or the automatic reconnect feature (which is enabled by default anyway).
|
mysql_tquery(DBH, "SET NAMES cp1251;", "", ""); mysql_tquery(DBH, "SET SESSION character_set_server='utf8';", "", "");
1) These pools are only for mysql_pquery as far as I know. Just leave it the default setting.
2) Check if mysql_errno returns 0 after mysql_connect, if yes connection was successful. 3) Yes, the entire R39 plugin is save to use. |
Mellnik already summed it up pretty well. However, I want to give you a more detailed answer on 1):
The multi-thread system holds a pool of several direct connections to the MySQL server. Usually, there are only two direct connections: the threaded one (mysql_tquery) and the unthreaded one (mysql_query). However, there is also mysql_pquery, which concurrently sends queries over several direct connections, which are in the pool mentioned earlier. You can adjust that number of connections via the pool_size parameter in mysql_connect. The MySQL server limits the number of direct connections (I think 10 by default), so settings the pool size to a high number is very bad and will possibly prevent other programs from accessing the MySQL server. |
inline FetchAccountData(inline_playerid)
{
#pragma unused inline_playerid
printf("inline function called ply_id: %i", playerid);
}
mysql_tquery_inline(dbHandle, "SELECT Username FROM Accounts WHERE Username = 'pds2k12'", using inline FetchAccountData, "i", playerid);