MYSQL5忘记密码后重置root密码
- font size decrease font size increase font size
系统:DEBIAN etch 4.0
MYSQL数 据库版本:5.0.27
(1)以 系统root权限登陆
(2)停止MYSQL服务器:
/etc/init.d/mysql stop
(3)跳过授权表执行MYSQL服务器:
mysqld_safe --skip-grant-tables --skip-networking &
(注:参数--skip-grant-tables为跳过授权表;--skip-networking为不监听TCP/IP连接)
(4)执行MYSQL客户端:
mysql
(5)使用mysql数据库
use mysql;
(6)更新root密码
update user set password=password('新密码') where user='root';
(7)关闭mysql服务器,用正常方试起动
/etc/init.d/mysql restart
Last modified onSaturday, 05 January 2013 13:21
( ! ) 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.0010 | 415976 | {main}( ) | .../index.php:0 |
2 | 0.1064 | 4721344 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1064 | 4721344 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3505 | 12449672 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3515 | 12474256 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3524 | 12529584 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3526 | 12558408 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3620 | 12993816 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3620 | 12993816 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3748 | 13719016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3748 | 13719016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3801 | 14115384 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3824 | 14135752 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4837 | 17083520 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4837 | 17083520 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4863 | 17263720 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in 主机
- Read 3610 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.0010 | 415976 | {main}( ) | .../index.php:0 |
2 | 0.1064 | 4721344 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1064 | 4721344 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3505 | 12449672 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3515 | 12474256 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3524 | 12529584 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3526 | 12558408 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3620 | 12993816 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3620 | 12993816 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3748 | 13719016 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3748 | 13719016 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3801 | 14115384 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3824 | 14135752 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4837 | 17083520 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4837 | 17083520 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4863 | 17263720 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |