发布时间:2013-01-07 18:23:11
#!/bin/bashyum install -y gcc gcc-c++ > /dev/nullrpm -qa | grep "mysql" if [ $? -eq 0 ] then tar zxf /root/mysql-5.1.62.tar.gz -C /usr/local/src cd /usr/local/src/mysql-5.1.62# chuang jian shu ju ku de cun chu lu jin if [ -d /data/mysql ] then &nbs......【阅读全文】
发布时间:2013-06-25 19:22:36
点击(此处)折叠或打开 #!/bin/bash FILE='20121224_Finaldatapm.csv' MYSQL='/usr/local/mysql/bin/mysql' USER='root' PASSWD='root' DB='ITIMS' while read i do eval $(echo $i|awk -F',' '{ printf("a=%s\nb=%d\nc=%d\nd=%d\ne=%d\nf=%s",$1,$2,$3,$4,$5,$6); }') &n......【阅读全文】
发布时间:2013-04-09 03:27:54
备份MySQL数据库的命令mysqldump -hhostname -uusername -ppassword databasename > backupfile.sql备份MySQL数据库为带删除表的格式备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手动删除原有数据库。mysqldump –add-drop-table -uusername -ppassword databasename > backupfile.sql.........【阅读全文】