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

linux下mysql5安装日志

step 1)下载源代码包到本地Linux主机,然后解压缩,进入该目录,进行配置,编译和安装
下载mysql5源码mysql-5.0.18.tar.gz到目录/usr/local
cd /usr/local
tar xzvf mysql-5.0.18.tar.gz
cd mysql-5.0.18
./configure --prefix=/usr/local/mysql
make && make install
make过程花的时间比较长
step 2)配置
cp support-files/my-medium.cnf /etc/my.cnf
vi /etc/my.cnf 加入以下两行并保存
  log-error=/var/lib/mysql/data/x.err
  datadir= /var/lib/mysql/data
cd /usr/local/mysql
bin/mysql(可能会抱错Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) )
然后
 scripts/mysql_install_db --user=mysql
bin/mysqld_safe

 /usr/local/mysql/bin/mysql就ok了
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'


相关文档:

[基础]常用linux命令 备查

=================文件操作==================
不使用find直接使用通配符对文件操作:
cp ./*/*attch* /testout_attch/
 
文件内容显示
head/tail:
  ## (1) displays the first 6 lines of a file
  head -6 readme.txt
  ## (2) displays the last 25 lines of a file
  tail -25 mail.txt
  # ......

Linux系统信息查看命令大全

系统
# uname -a # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue # 查看操作系统版本
# cat /proc/cpuinfo # 查看CPU信息
# hostname # 查看计算机名
# lspci -tv # 列出所有PCI设备
# lsusb -tv # 列出所有USB设备
# lsmod # 列出加载的内核模块
# env # 查看环境变量
资源
# free -m # 查看内存使用量和 ......

Linux I2C Input设备驱动代码的几点理解

最近在做一个I2C键盘的Linux驱动,参考了其他芯片的一些代码,其中陆续发现有些让人迷惑的东西,把我的迷惑及理解在这里加以记录:
1. i2c_driver结构体的probe成员的原型:
     int (*probe)(struct i2c_client *, const struct i2c_device_id *);
即:probe函数被调用时会从上边传两个个参 ......

本人常用的基础 linux命令

  一 基本的文件操作及系统操作
新建目录                              mkdir –目录名
将工作目录改变到Dir        ......

Linux下常见文件格式的压缩、解压小结

  
大致总结了一下linux下各种格式的压缩包的压缩、解压方法。但是部分方法我没有用到,也就不全,希望大家帮我补充,我们将随时修改完善,谢谢!
  .tar
  解包: tar xvf FileName.tar
  打包:tar cvf FileName.tar DirName
  (注:tar是打包,不是压缩!)
  ---------------------------- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号