Sign in to follow this  
Followers 0
Guest

[закрыто] Проблема с базой данных

Если Вы нашли ответ на вопрос, пожалуйста, пометьте необходимый ответ лучшим (галочка сбоку от сообщения) и поблагодарите автора этого ответа поднятием репутации (плюс в нижней правой части сообщения). Спасибо.
Подробнее:
FAQ по форуму
Как пометить ответ лучшим

Рекомендованные сообщения



Не найдено.

8 posts in this topic

Спойлер

[19:05:42] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting..
[19:05:42] [ERROR] CMySQLHandle::Connect - (error #2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

 

Спойлер

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[19:05:41] 
[19:05:41] Server Plugins
[19:05:41] --------------
[19:05:41]  Loading plugin: crashdetect.so
[19:05:41]   CrashDetect v4.17 is OK.
[19:05:41]   Loaded.
[19:05:41]  Loading plugin: streamer.so
[19:05:41] 

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[19:05:41]   Loaded.
[19:05:41]  Loading plugin: sscanf.so
[19:05:41] 

[19:05:41]  ===============================

[19:05:41]       sscanf plugin loaded.     

[19:05:41]          Version:  2.8.1        

[19:05:41]    (c) 2012 Alex "Y_Less" Cole  

[19:05:41]  ===============================

[19:05:41]   Loaded.
[19:05:41]  Loading plugin: mysql_static.so
[19:05:41]  >> plugin.mysql: running on 1 thread.
[19:05:41]  >> plugin.mysql: R31 successfully loaded.
[19:05:41]   Loaded.
[19:05:41]  Loading plugin: dc_cmd.so
[19:05:41]   Daniel's CMD plugin v2.8
[19:05:41]     (c) 2014 Daniel_Cortez
[19:05:41] 	www.pro-pawn.ru
[19:05:41]   Loaded.
[19:05:41]  Loaded 5 plugins.

[19:05:42] 
[19:05:42] Filterscripts
[19:05:42] ---------------
[19:05:42]   Loading filterscript 'keys.amx'...
[19:05:42]   Unable to load filterscript 'keys.amx'.
[19:05:42]   Loaded 0 filterscripts.

[19:05:42] DC_CMD -> RegisterAlt: Couldn't find function cmd_teleport
[19:05:42] MySQL server has gone away
[19:05:42] Number of vehicle models: 77

 

 

Share this post


Link to post
Share on other sites
1 минуту назад, Daniil Roslyakov сказал:

MySQL server has gone away

Походу, мускул от вас сбежал ;)

А вообще эта ошибка означает, что на локальном сервере (т.е. на сервере, на котором сейчас лежит сборка) нет сокета mysql, т.е. он не установлен. Значит, вы ввели неверные данные в строке host для подключения. 

@Daniil Roslyakov если не секрет, что у вас за хостинг? 

Share this post


Link to post
Share on other sites

@DEST gg-host, но прошлых 2-х модах все работала идеально и в ..._host прописана "localhost"

Edited by Daniil Roslyakov

Share this post


Link to post
Share on other sites

@DEST поставил на 127.0.0.1, теперь так:

Спойлер

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[05:56:17] 
[05:56:17] Server Plugins
[05:56:17] --------------
[05:56:17]  Loading plugin: crashdetect.so
[05:56:18]   CrashDetect v4.17 is OK.
[05:56:18]   Loaded.
[05:56:18]  Loading plugin: streamer.so
[05:56:18] 

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[05:56:18]   Loaded.
[05:56:18]  Loading plugin: sscanf.so
[05:56:18] 

[05:56:18]  ===============================

[05:56:18]       sscanf plugin loaded.     

[05:56:18]          Version:  2.8.1        

[05:56:18]    (c) 2012 Alex "Y_Less" Cole  

[05:56:18]  ===============================

[05:56:18]   Loaded.
[05:56:18]  Loading plugin: mysql_static.so
[05:56:18]  >> plugin.mysql: running on 1 thread.
[05:56:18]  >> plugin.mysql: R31 successfully loaded.
[05:56:18]   Loaded.
[05:56:18]  Loading plugin: dc_cmd.so
[05:56:18]   Daniel's CMD plugin v2.8
[05:56:18]     (c) 2014 Daniel_Cortez
[05:56:18] 	www.pro-pawn.ru
[05:56:18]   Loaded.
[05:56:18]  Loaded 5 plugins.

[05:56:18] 
[05:56:18] Filterscripts
[05:56:18] ---------------
[05:56:18]   Loading filterscript 'keys.amx'...
[05:56:18]   Unable to load filterscript 'keys.amx'.
[05:56:18]   Loaded 0 filterscripts.

[05:56:18] DC_CMD -> RegisterAlt: Couldn't find function cmd_teleport
[05:56:19] Uptime: 265612  Threads: 33  Questions: 3069403  Slow queries: 3  Opens: 19764  Flush tables: 1  Open tables: 381  Queries per second avg: 11.555
[05:56:19] Number of vehicle models: 77
[05:56:19] House: ( 299 )
[05:56:19] Bizz: (10)
[05:56:19] Workshop: ( 3 )
[05:56:19] Kvartiri: Not Data
[05:56:19] Podeezd: ( 20 )
[05:56:19] Casino: ( 2 )
[05:56:19] Others: Yes Loading
[05:56:19] ATM: (13)
[05:56:19] Farm: (5)
[05:56:19] Stall: Not Data
[05:56:19] Gangzone: (93)
[05:56:19] Banned: 4. UnBanned 3 accounts

 

Спойлер

[19:05:42] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting..
[19:05:42] [ERROR] CMySQLHandle::Connect - (error #2002) Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

 

 

Share this post


Link to post
Share on other sites

@Daniil Roslyakov 127.0.0.1 и localhost это одно и то же. Скорее всего проблема в том, что не установлен тайм-аут ответа и из-за этого, мускул сервер падает. Попробуйте добавить эти строки в OnGameModeInit после подключения к базе: 
 

mysql_function_query(dbHandle, "SET wait_timeout=28800", false, "", "");
mysql_function_query(dbHandle, "SET @@global.net_read_timeout=360;", false, "", "");

 

Share this post


Link to post
Share on other sites

@Daniil Roslyakov Вы в строках, которые я дал, под свой мод подогнали? 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content