( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0018413808{main}( ).../index.php:0
20.08004272648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.498315797608Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.498515797664Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.498615798040Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.498615798040Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.498815798136Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.499215835768require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.503116126032GKTemplate->__construct( ).../component.php:31
100.517916279912GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.518716324176require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0018413808{main}( ).../index.php:0
20.08004272648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.498315797608Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.498515797664Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.498615798040Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.498615798040Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.498815798136Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.499215835768require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.503116126032GKTemplate->__construct( ).../component.php:31
100.520416447304GKTemplateMenu->getMenuType( ).../gk.framework.php:85
重启MySQL的正确方法
Logo
Print this page

重启MySQL的正确方法

如果你是从源码包安装的Mysql,那么系统中是没有红帽常用的servcie这个脚本的,

所以只好手工重启

有人建议Killall mysql。这种野蛮的方法其实是不行的,强制终止的话,可能会造成表损坏,损失是巨大的。

这里推荐安全的重启方法

$mysql_dir/bin/mysqladmin -u root -p shutdown
$mysql_dir/bin/safe_mysqld & 

mysqladmin和mysqld_safe位于Mysql安装目录的bin目录下,很容易找到的。

/usr/bin/mysqladmin -u root -p shutdown

Last modified onSaturday, 05 January 2013 13:03

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0018413808{main}( ).../index.php:0
20.08004272648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08004272648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.398111394880Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.398711419064Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.399411474392Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.399711501360require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.407011897848K2ControllerItem->execute( ).../k2.php:64
90.407011897848K2ControllerItem->display( ).../BaseController.php:710
100.415712542256K2ControllerItem->display( ).../item.php:78
110.415712542256K2ControllerItem->display( ).../controller.php:19
120.419812909312Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.421212929680K2ViewItem->display( ).../ViewController.php:102
140.492115726720K2ViewItem->display( ).../view.html.php:742
150.492115726720K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.493715899024include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in MYSQL
  • Read 3301 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0018413808{main}( ).../index.php:0
20.08004272648Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08004272648Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.398111394880Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.398711419064Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.399411474392Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.399711501360require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.407011897848K2ControllerItem->execute( ).../k2.php:64
90.407011897848K2ControllerItem->display( ).../BaseController.php:710
100.415712542256K2ControllerItem->display( ).../item.php:78
110.415712542256K2ControllerItem->display( ).../controller.php:19
120.419812909312Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.421212929680K2ViewItem->display( ).../ViewController.php:102
140.492115726720K2ViewItem->display( ).../view.html.php:742
150.492115726720K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.493715899024include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.