Commit 29de6529 authored by tong.li's avatar tong.li

up

parent 3b4808bd
...@@ -70,6 +70,8 @@ if [ $database_name = 'mall' ];then ...@@ -70,6 +70,8 @@ if [ $database_name = 'mall' ];then
echo "replace $re_replace_ip ip for $entry.sql" echo "replace $re_replace_ip ip for $entry.sql"
echo "sed -i "s#\.xyqb\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql" echo "sed -i "s#\.xyqb\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql"
sed -i "s#\.xyqb\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql sed -i "s#\.xyqb\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql
echo "sed -i "s#\.q-qg\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql"
sed -i "s#\.q-gp\.com#-${re_replace_ip}.liangkebang.com#g" $entry.sql
fi fi
done done
else else
......
...@@ -72,7 +72,7 @@ function db_schema_sync() ...@@ -72,7 +72,7 @@ function db_schema_sync()
fi fi
# echo "CREATE DATABASE IF NOT EXISTS \`${database_name}\` DEFAULT CHARSET utf8 COLLATE utf8_general_ci;" | mysql -h $mysql_host -P $target_db_port -uqa -pqatest # echo "CREATE DATABASE IF NOT EXISTS \`${database_name}\` DEFAULT CHARSET utf8 COLLATE utf8_general_ci;" | mysql -h $mysql_host -P $target_db_port -uqa -pqatest
echo "mysql -h $target_db_host -P $target_db_port -uqa -pqatest -e \"CREATE DATABASE IF NOT EXISTS ${database} DEFAULT CHARSET utf8 COLLATE utf8_general_ci;\"" echo "mysql -h $target_db_host -P $target_db_port -uqa -pqatest -e \"CREATE DATABASE IF NOT EXISTS ${database} DEFAULT CHARSET utf8 COLLATE utf8_general_ci;\""
mysql -h $target_db_host -P $target_db_port -uqa -pqatest -e "CREATE DATABASE IF NOT EXISTS ${database} DEFAULT CHARSET utf8 COLLATE utf8_general_ci;" mysql -h $target_db_host -P $target_db_port -u$target_db_user -pqatest -e "CREATE DATABASE IF NOT EXISTS ${database} DEFAULT CHARSET utf8 COLLATE utf8_general_ci;"
if [ $? != 0 ];then echo "mysql -h $target_db_host -P $target_db_port -uqa -pqatest -e \"CREATE DATABASE IF NOT EXISTS ${database}\" error";exit -1; fi if [ $? != 0 ];then echo "mysql -h $target_db_host -P $target_db_port -uqa -pqatest -e \"CREATE DATABASE IF NOT EXISTS ${database}\" error";exit -1; fi
echo "mkdir $db_backup_sub_folders" echo "mkdir $db_backup_sub_folders"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment