易截截图软件、单文件、免安装、纯绿色、仅160KB

linux下 mysql 忘记root用户密码解决办法

linux下忘记了mysql的root用户密码解决办法:
  一、以系统的root用户(什么,你的系统的root用户密码也忘了。那只好看我另外一篇linux下忘记root用户的解决办法了先解决这个问题)登陆系统,进入终端
  [root@localhost /]#
  二、杀掉mysql进程
  方法1、[root@localhost /]#killall mysqld
  方法2、[root@localhost /]#ps -aux  //查看所有进程,找到mysql进程的pid
  然后
  [root@localhost /]#kill pid   //pid是mysql的进程号
  三、用--skip-grant-tables参数启动mysqld
  [root@localhost /]#/usr/local/mysql/bin/mysqld_safe --skip-grant-tables& 
  // 其中/usr..../bin是我的mysql安装目录
  [root@localhost /]#/usr/local/mysql/bin/mysql  //进入mysql
  mysql> use mysql   //切换到mysql database
  mysql> UPDATE user SET password=password('123456') WHERE user='root';
  //将root密码该为123456了
  四、注意事项
  The full command to load MySQL like this is:
  mysqld_safe --skip-grant-tables --autoclose
  (Editor's Note: Our technical reviewer found that he had to launch the mysqld_safe command
  without the '--autoclose' flag, otherwise the daemon never started.)
  这是国外网站说的,我没用autoclosa也成功了
  但是我在执行/usr/local/mysql/bin/mysqld_safe --skip-grant-tables&即出现错误提示:
  ./mysqld_safe
  starting mysqld daemon with databases from /usr/local/var
  STOPPING server from pid file /usr/local/var/localhost.localdomain.pid
  mysqld  ended
  然后进入/usr/local/var/
  vi ./localhost.localdomain.err 内容如下:
  050410 04:02:59 mysqld started
  050410 4:03:00 InnoDB:Operating system error number 13 in a file operation.
  InnoDB:The error means mysqld does not have the access rights to
  InnoDB:the directory.
  InnoDB:File name ./ibdata1
  InnoDB:File operation call:'create'.
  InnoDB:Cannot continue operation.
  050410 04:03:00 mysqld ended
  怀疑是./var目录的访问权限,故如下操作:
  chmod 777 ./var


相关文档:

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

安装linux的gcc

本来想装aide的,发现在configure的时候卡住了。仔细一看
checking for gcc......no
原来这个linux没有装gcc。谁叫我懒,直接把linux拷过来用。找了半天安装镜像文件,找到gcc-3.22-5.i386.rpm
。那就开始装吧~
1、检查文件关联
   rpm -ivh *.rpm后,一堆关联出来了
   乖乖,一看,五个包呢~
......

Linux安全设置手册

本文是一篇比较早期的经典设置介绍,但是其关于linux安全的论述和观点还是值得参考,它讲述了如何通过基本的安全措施,使你的Linux系统变得更为安全可靠。linux安全
1、Bios Security
一定要给Bios设置密码,以防通过在Bios中改变启动顺序,而可以从软盘启动。这样可以阻止别人试图用特殊的启动盘启动你的系统,还可以阻 ......

Linux 安装 Mysql


日期:2007-01-23 作者:Linux时代 来自:linux.chinaunix.net


  一、引言
  想使用Linux已经很长时间了,由于没有硬性任务一直也没有系统学习,近日由于工作需要必须使用Linux下的MySQL。本以为有
Windows下使用SQL
Server的经验,觉得在Linux下安装MySql应该是易如反掌的事,可在真正安装和使用MySQL时 ......

linux ubuntu 系统启动服务设置

首先是安装
sudo apt-get install sysv-rc-conf
然后在终端 sudo sysv-rc-conf
在这个软件里,可以用键盘的方向键移动,用空格选取,也可以直接用鼠标选取,最后用q保存退出,一下列出服务的名称和基本的解释。
代码:
acpi-supp这个是关于电源支持的默认是1,2,3,4,5下启动,我认为你可以把它调整到s级别。
acpid acp ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号