Warning: mysqli_connect(): (HY000/2002): проблема
Добавлено: Вс дек 16, 2018 1:27 am
Из-за старого UPS при сбое питания не стартует MySQl: (Мажорка на Win7)
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it. in C:\_majordomo\htdocs\lib\mysqli.class.php on line 134 Can't connect to database (2002: No connection could be made because the target machine actively refused it. )
Таблицы восстанавливал но с таким еще не сталкивался. В базу войдти не могу. Как починить? Есть бекапы но не уверен что там все... Дайте совет как поправить. Вот лог запуска:
C:\_majordomo>set MIBDIRS=C:\_majordomo\server\php\Extras\mibs
C:\_majordomo>rem Timesync on startup
C:\_majordomo>rem start .\apps\neutron\neutron.exe
C:\_majordomo>rem Web-server start
C:\_majordomo>start server2go.exe
C:\_majordomo>TIMEOUT /T 10
Waiting for 0 seconds, press a key to continue ...
C:\_majordomo>rem USB devices monitor start
C:\_majordomo>rem start .\apps\usbdeview\USBDeview.exe
C:\_majordomo>rem Battery run monitor start
C:\_majordomo>rem start .\apps\batteryrun\batteryrun.exe "C:\_majordomo\htdocs\o
bj.bat ThisComputer.powerConnected" "C:\_majordomo\htdocs\obj.bat ThisComputer.p
owerDisconnected"
C:\_majordomo>rem Main system cycle start
C:\_majordomo>rem Database auto repair
C:\_majordomo>.\server\mysql\bin\mysqlcheck.exe -u root --auto-repair --check --
optimize --all-databases
db_terminal.admin_users Table is already up to date
db_terminal.apiai_actions Table is already up to date
db_terminal.apiai_entities Table is already up to date
db_terminal.app_alarmclock Table is already up to date
db_terminal.app_nut_devices Table is already up to date
db_terminal.app_nut_params Table is already up to date
db_terminal.app_quotes Table is already up to date
db_terminal.app_radio Table is already up to date
db_terminal.blockly_code Table is already up to date
db_terminal.cached_values
note : The storage engine for the table doesn't support optimize
db_terminal.cached_ws
note : The storage engine for the table doesn't support optimize
db_terminal.calendar_categories Table is already up to date
db_terminal.calendar_events Table is already up to date
db_terminal.charts Table is already up to date
db_terminal.charts_data Table is already up to date
db_terminal.classes Table is already up to date
db_terminal.collections Table is already up to date
db_terminal.commands Table is already up to date
db_terminal.country Table is already up to date
db_terminal.devices Table is already up to date
db_terminal.devices_groups Table is already up to date
db_terminal.devices_linked Table is already up to date
db_terminal.elements Table is already up to date
db_terminal.elm_states Table is already up to date
db_terminal.espdevices Table is already up to date
db_terminal.espdevices_data Table is already up to date
db_terminal.events Table is already up to date
db_terminal.events_params Table is already up to date
db_terminal.gpsactions Table is already up to date
db_terminal.gpsdevices Table is already up to date
db_terminal.gpslocations Table is already up to date
db_terminal.gpslog Table is already up to date
db_terminal.history Table is already up to date
db_terminal.ignore_updates Table is already up to date
db_terminal.jobs Table is already up to date
db_terminal.knxdevices Table is already up to date
db_terminal.knxproperties Table is already up to date
db_terminal.layouts Table is already up to date
db_terminal.lgwebostv_commands Table is already up to date
db_terminal.lgwebostv_devices Table is already up to date
db_terminal.locations Table is already up to date
db_terminal.log4php_log Table is already up to date
db_terminal.media_favorites Table is already up to date
db_terminal.media_history Table is already up to date
db_terminal.mediaservers_playlist
Error : Incorrect information in file: '.\db_terminal\mediaservers_playlist.f
rm'
error : Corrupt
.\server\mysql\bin\mysqlcheck.exe: Got error: 2013: Lost connection to MySQL ser
ver during query when executing 'OPTIMIZE TABLE ... '
C:\_majordomo>cd .\htdocs
C:\_majordomo\htdocs>..\server\php\php.exe cycle.php
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the
target machine actively refused it.
in C:\_majordomo\htdocs\lib\mysqli.class.php on line 134
Can't connect to database (2002: No connection could be made because the target
machine actively refused it.
)
C:\_majordomo\htdocs>cd ..
C:\_majordomo>rem call reboot.bat
C:\_majordomo>goto 1
C:\_majordomo>rem Database auto repair
C:\_majordomo>.\server\mysql\bin\mysqlcheck.exe -u root --auto-repair --check --
optimize --all-databases
.\server\mysql\bin\mysqlcheck.exe: Got error: 2003: Can't connect to MySQL serve
r on 'localhost' (10061) when trying to connect
C:\_majordomo>cd .\htdocs
C:\_majordomo\htdocs>..\server\php\php.exe cycle.php
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the
target machine actively refused it.
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it. in C:\_majordomo\htdocs\lib\mysqli.class.php on line 134 Can't connect to database (2002: No connection could be made because the target machine actively refused it. )
Таблицы восстанавливал но с таким еще не сталкивался. В базу войдти не могу. Как починить? Есть бекапы но не уверен что там все... Дайте совет как поправить. Вот лог запуска:
C:\_majordomo>set MIBDIRS=C:\_majordomo\server\php\Extras\mibs
C:\_majordomo>rem Timesync on startup
C:\_majordomo>rem start .\apps\neutron\neutron.exe
C:\_majordomo>rem Web-server start
C:\_majordomo>start server2go.exe
C:\_majordomo>TIMEOUT /T 10
Waiting for 0 seconds, press a key to continue ...
C:\_majordomo>rem USB devices monitor start
C:\_majordomo>rem start .\apps\usbdeview\USBDeview.exe
C:\_majordomo>rem Battery run monitor start
C:\_majordomo>rem start .\apps\batteryrun\batteryrun.exe "C:\_majordomo\htdocs\o
bj.bat ThisComputer.powerConnected" "C:\_majordomo\htdocs\obj.bat ThisComputer.p
owerDisconnected"
C:\_majordomo>rem Main system cycle start
C:\_majordomo>rem Database auto repair
C:\_majordomo>.\server\mysql\bin\mysqlcheck.exe -u root --auto-repair --check --
optimize --all-databases
db_terminal.admin_users Table is already up to date
db_terminal.apiai_actions Table is already up to date
db_terminal.apiai_entities Table is already up to date
db_terminal.app_alarmclock Table is already up to date
db_terminal.app_nut_devices Table is already up to date
db_terminal.app_nut_params Table is already up to date
db_terminal.app_quotes Table is already up to date
db_terminal.app_radio Table is already up to date
db_terminal.blockly_code Table is already up to date
db_terminal.cached_values
note : The storage engine for the table doesn't support optimize
db_terminal.cached_ws
note : The storage engine for the table doesn't support optimize
db_terminal.calendar_categories Table is already up to date
db_terminal.calendar_events Table is already up to date
db_terminal.charts Table is already up to date
db_terminal.charts_data Table is already up to date
db_terminal.classes Table is already up to date
db_terminal.collections Table is already up to date
db_terminal.commands Table is already up to date
db_terminal.country Table is already up to date
db_terminal.devices Table is already up to date
db_terminal.devices_groups Table is already up to date
db_terminal.devices_linked Table is already up to date
db_terminal.elements Table is already up to date
db_terminal.elm_states Table is already up to date
db_terminal.espdevices Table is already up to date
db_terminal.espdevices_data Table is already up to date
db_terminal.events Table is already up to date
db_terminal.events_params Table is already up to date
db_terminal.gpsactions Table is already up to date
db_terminal.gpsdevices Table is already up to date
db_terminal.gpslocations Table is already up to date
db_terminal.gpslog Table is already up to date
db_terminal.history Table is already up to date
db_terminal.ignore_updates Table is already up to date
db_terminal.jobs Table is already up to date
db_terminal.knxdevices Table is already up to date
db_terminal.knxproperties Table is already up to date
db_terminal.layouts Table is already up to date
db_terminal.lgwebostv_commands Table is already up to date
db_terminal.lgwebostv_devices Table is already up to date
db_terminal.locations Table is already up to date
db_terminal.log4php_log Table is already up to date
db_terminal.media_favorites Table is already up to date
db_terminal.media_history Table is already up to date
db_terminal.mediaservers_playlist
Error : Incorrect information in file: '.\db_terminal\mediaservers_playlist.f
rm'
error : Corrupt
.\server\mysql\bin\mysqlcheck.exe: Got error: 2013: Lost connection to MySQL ser
ver during query when executing 'OPTIMIZE TABLE ... '
C:\_majordomo>cd .\htdocs
C:\_majordomo\htdocs>..\server\php\php.exe cycle.php
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the
target machine actively refused it.
in C:\_majordomo\htdocs\lib\mysqli.class.php on line 134
Can't connect to database (2002: No connection could be made because the target
machine actively refused it.
)
C:\_majordomo\htdocs>cd ..
C:\_majordomo>rem call reboot.bat
C:\_majordomo>goto 1
C:\_majordomo>rem Database auto repair
C:\_majordomo>.\server\mysql\bin\mysqlcheck.exe -u root --auto-repair --check --
optimize --all-databases
.\server\mysql\bin\mysqlcheck.exe: Got error: 2003: Can't connect to MySQL serve
r on 'localhost' (10061) when trying to connect
C:\_majordomo>cd .\htdocs
C:\_majordomo\htdocs>..\server\php\php.exe cycle.php
Warning: mysqli_connect(): (HY000/2002): No connection could be made because the
target machine actively refused it.