MySQL ошибка - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Русский/Russian (
https://sampforum.blast.hk/forumdisplay.php?fid=32)
+---- Thread: MySQL ошибка (
/showthread.php?tid=386593)
MySQL ошибка -
dennes544 - 20.10.2012
у меня есть мод на mysql
работало все прекрасно до того дня как я перешел на vds...
уже какие только системы не пробовал...
ubuntu 10 и 8 centos 5 и 6 debian 5 и 6
на обычном самп сервере все работало
вот собственно сама ошибка
PHP код:
[03:51:51] ---------------------------
[03:51:51] MySQL Debugging activated (10/21/12)
[03:51:51] ---------------------------
[03:51:51]
[03:51:51] >> mysql_connect( )
[03:51:51] CMySQLHandler::CMySQLHandler() - constructor called.
[03:51:51] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "totalrpdb" | Username: "totalrpdb" ...
[03:51:51] CMySQLHandler::Connect() - Connection was successful.
[03:51:51] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
[03:52:24] >> mysql_query( Connection handle: 1 )
[03:52:24] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:52:24] >> mysql_store_result( Connection handle: 1 )
[03:52:24] CMySQLHandler::StoreResult() - There is nothing to store (Reason: Connection is dead)
[03:52:24] >> mysql_fetch_row_format( Connection handle: 1 )
[03:52:24] CMySQLHandler::FetchRow() - You cannot call this function now. (Reason: Connection is dead)
[03:52:24]
[03:52:24] ---------------------------
[03:52:24] MySQL Debugging activated (10/21/12)
[03:52:24] ---------------------------
[03:52:24]
[03:52:24] >> mysql_query( Connection handle: 1 )
[03:52:24] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:52:24] >> mysql_free_result( Connection handle: 1 )
[03:52:24] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)
[03:52:24] >> mysql_query( Connection handle: 1 )
[03:52:24] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:52:24] >> mysql_free_result( Connection handle: 1 )
[03:52:24] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)
[03:54:05] >> mysql_query( Connection handle: 1 )
[03:54:05] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:54:05] >> mysql_store_result( Connection handle: 1 )
[03:54:05] CMySQLHandler::StoreResult() - There is nothing to store (Reason: Connection is dead)
[03:54:05] >> mysql_fetch_row_format( Connection handle: 1 )
[03:54:05] CMySQLHandler::FetchRow() - You cannot call this function now. (Reason: Connection is dead)
[03:54:05]
[03:54:05] ---------------------------
[03:54:05] MySQL Debugging activated (10/21/12)
[03:54:05] ---------------------------
[03:54:05]
[03:54:05] >> mysql_query( Connection handle: 1 )
[03:54:05] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:54:05] >> mysql_free_result( Connection handle: 1 )
[03:54:05] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)
[03:54:05] >> mysql_query( Connection handle: 1 )
[03:54:05] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
[03:54:05] >> mysql_free_result( Connection handle: 1 )
[03:54:05] CMySQLHandler::FreeResult() - There is nothing to free (Reason: Connection is dead)
куда рыть что делать даже незнаю)
господа профискриптеры помогите мне горе скриптеру)
Re: MySQL ошибка -
eakwarp - 21.10.2012
Написано же, коннект отвалился. Случайно не фествдс?
Re: MySQL ошибка -
dennes544 - 21.10.2012
нет у меня ihc
а вот почему коннект отваливается?
Re: MySQL ошибка -
eakwarp - 21.10.2012
Quote:
Originally Posted by dennes544
нет у меня ihc
а вот почему коннект отваливается?
|
Покажите код коннекта к бд. Так же возможно, что юзер не превилигирован на доступ к вашей бд.
Так же, учитывая что это уже не винда, поздравляю, игрушки кончились, начинается хардкор, проверьте регистр. Если из под винды столбцы id и ID - один и тот же столбец, для линукса это два разных столбца.