[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:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user