Linux下MysqL的默认字符集的修改

MySQL的字符集支持(Character Set Support)有两个方面:
字符集(Character set)和排序方式(Collation)。
对于字符集的支持细化到四个层次:
服务器(server),数据库(database),数据表(table)和连接(connection)。
1.MySQL默认字符集
MySQL对于字符集的指定可以细化到一个数据库,一张表,一列,应该用什么字符集。
但是,传统的 程序在创建数据库和数据表时并没有使用那么复杂的配置,它们用的是默认的配置,那么,默认的配置从何而来呢?
(1)编译MySQL 时,指定了一个默认的字符集,这个字符集是 latin1;
(2)安装MySQL 时,可以在配置文件 (my.ini或my.cnf) 中指定一个默认的的字符集,如果没指定,这个值继承自编译时指定的;
(3)启动mysqld 时,可以在命令行参数中指定一个默认的的字符集,如果没指定,这个值继承自配置文件中的配置,此时 character_set_server 被设定为这个默认的字符集; Read more >>>

Install Backtrack Applications On Your Ubuntu

Backtrack is one of the most top rated Live Linux Distributions (meaning you can run straight from the CD). Backtrack is focused on penetration testing, and comes pre-packed with many applications to analyse and test your LAN, Wifi, Bluetooth… the list continues.
Read more >>>

Linux查看系统安装时间有意思

mefree@ubuntu:~$  ls -lct /etc/ | tail -1 | awk '{print $6, $7, $8}'
2011-03-06 20:48 rcS.d

Windows和Linux下生成以当前时间命名的文件

windows bat:

@echo off
set time_hh=%time:~0,2%
if /i %time_hh% LSS 10 (set time_hh=0%time:~1,1%)
set filename=%date:~,4%%date:~5,2%%date:~8,2%_%time_hh%%time:~3,2%%time:~6,2%
echo mefree >> %filename%.txt

linux shell:

#!/bin/sh
echo test >> $(date -d "today" +"%Y%m%d_%H%M%S").txt

http://blog.s135.com/post/459/

mksquashfs:找不到命令

apt-get install squashfs-tools