[Fix]Fix the extension mysql_to_doris bug (#13723)

* Fix the extension mysql_to_doris  BUG

e_mysql_to_doris.sh: command error,This error causes script execution errors.  :ERROR 1103 (42000) at line 1: Incorrect table name ''.
 ` ` symbol position error

* Update extension/mysql_to_doris/bin/e_mysql_to_doris.sh


Co-authored-by: Adonis Ling <adonis0147@gmail.com>
This commit is contained in:
TsubameKoyasu
2022-10-31 08:45:34 +08:00
committed by GitHub
parent 711dad28fb
commit f5761c658f

View File

@ -31,8 +31,8 @@ rm -f $path
#get create table sql for mysql
for table in $(cat ../conf/mysql_tables |grep -v '#' | awk -F '\n' '{print $1}')
do
d_d=`echo $table` |awk -F '.' '{print $1}'
d_t=`echo $table` |awk -F '.' '{print $2}'
d_d=$(echo $table |awk -F '.' '{print $1}')
d_t=$(echo $table |awk -F '.' '{print $2}')
echo "show create table \`$d_d\`.\`$d_t\`;" |mysql -h$mysql_host -uroot -p$mysql_password >> $path
done