重启MySQL的正确方法
- font size decrease font size increase font size
- Print Email
如果你是从源码包安装的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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0011 | 403864 | {main}( ) | .../index.php:0 |
2 | 0.1791 | 1321616 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1791 | 1321616 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5411 | 2979928 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5420 | 3004448 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5441 | 3059776 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5446 | 3076832 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.5564 | 3220920 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.5564 | 3220920 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.5684 | 3490000 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.5684 | 3490000 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.5712 | 3508520 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.5759 | 3528936 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.6625 | 4076304 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.6625 | 4076304 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.6675 | 4250704 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in MYSQL
- Read 3300 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0011 | 403864 | {main}( ) | .../index.php:0 |
2 | 0.1791 | 1321616 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1791 | 1321616 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.5411 | 2979928 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.5420 | 3004448 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.5441 | 3059776 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.5446 | 3076832 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.5564 | 3220920 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.5564 | 3220920 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.5684 | 3490000 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.5684 | 3490000 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.5712 | 3508520 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.5759 | 3528936 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.6625 | 4076304 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.6625 | 4076304 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.6675 | 4250704 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |