chmod 700 -R /var/www/html/jitong/
chown apache.apache -R /var/www/html/jitong/
restorecon -R /var/www/html/jitong/
chmod 700 -R /var/www/html/jitong/; chown apache.apache -R /var/www/html/jitong/; restorecon -R /var/www/html/jitong/
sed -i "s/aaa/bbb/g" `grep "aaa" -rl temp/`;
sed -i "s/select_db(\"cangku/select_db(\"jitongerp_bj/g" `grep select_db\(\"cangku -rl ./jitongerp_bj`;
+++++++++++++++++++++++++++++++++++++++
mysqldump -uroot -p jitong >jitong.sql
mysql -uroot -p < jitong.sql
-------------------------------------
下面只导出 表结构
# mysqldump --default-character-set=latin1 --set-charset=false -uroot -p -d jitong >jitong.sql
下面解决字符集的问题
# mysqldump --default-character-set=latin1 --create-options=false --set-charset=false -u root -p xinfeidls_xxmtz >xinfeidls_xxmtz.sql
mysql> CREATE DATABASE xinfeidls_xxmtz CHARACTER SET utf8 COLLATE utf8_general_ci;
# mysql -u root -p --default-character-set=utf8 xinfeidls_xxmtz < xinfeidls_xxmtz.sql
+++++++++++++++++++++++++++++++++++++++
阅读(1747) | 评论(0) | 转发(2) |