停止mysql
mysqladmin -u root -p shutdown
关闭以后
root@AY12121812263288b7466:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
和apache
打包www目录
[root@linux ~]# tar -cvf /tmp/163trade20130907.tar /etc<==仅打包,不压缩!
[root@linux ~]# tar -zcvf /tmp/163trade20130907.tar.gz /etc<==打包后,以 gzip 压缩
[root@linux ~]# tar -jcvf /tmp/163trade20130907.tar.bz2 /etc<==打包后,以 bzip2 压缩
chgrp -R mysql trade 给trade目录mysql用户权限
chown -R mysql trade
tar -zxvf sql20140101.tar.gz -C /backup/2014
阅读(801) | 评论(0) | 转发(0) |