mysql 4.1.22 common command 常用命令
来源:互联网 发布:淘宝知己知彼多少钱 编辑:程序博客网 时间:2024/06/05 19:49
1. 数据备份 ------ refer to http://www.newasp.net/tech/data/18173.html
1.1 backup everythings of database "test"
"C:/Program Files/MySQL/MySQL Server 4.1/bin/mysqldump.exe" -uuser -p test > c:/DBtest.txt
1.2 backup everythings of a table in database "test" named "igoogleuser"
"C:/Program Files/MySQL/MySQL Server 4.1/bin/mysqldump.exe" -uuser -p test igoogleuser > c:/igoogleuser.txt
backup database Meet_A_Geek's table Orders to a txt file:
bin/mysqldump –p Meet_A_Geek Orders >MeetAGeek_Orders.txt
backup records which meet some conditions in database's table:
bin/mysqldump –p –where="Order_ID > 2000" Meet_A_Geek Orders > Special_Dump.txt
2. datetime column default 值的解决方案 -----------利用两个timestamp字段只更新第一个的特性
CREATE TABLE `igoogleuser` (
`id` int(11) NOT NULL auto_increment,
`userName` char(20) NOT NULL default '',
`password` char(20) NOT NULL default '',
`updatetime` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`createtime` timestamp NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `userName` (`userName`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
3.
- mysql 4.1.22 common command 常用命令
- MySQL Command Line[mysql命令行常用命令]
- Common useful Linux command!
- Common Linux Command
- Vim Common Command
- common sql command
- Git Common Command
- Pig common command
- Common Command on linux
- linux system common command
- Kafka common command
- vue-common-command
- sereral common used sh command
- [Linux][Common command] zip operation
- windows常用命令CMD(command)
- DB2 COMMAND(DB2常用命令)
- mysql command
- MySQL Command
- 又是表决心贴
- 简单的排序
- Java编程规范
- 编程原则 - C 语言(持续更新...)
- iframe 1
- mysql 4.1.22 common command 常用命令
- IT管理人才必备的十大能力
- 第四届中文网志年会参会感想
- 一篇学习JAVA好文,写得比较幽默。
- 读写ini文件的类(转)
- C#MapX添加图元
- pb中的进制转换
- mysql 主从 Last_Errno: 1146错误
- 三四十年代中国的写真转帖