Skip to content

Commit

Permalink
[fix](config)Update user_define_tables.sh apache#12542
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminWenqiYu authored Sep 16, 2022
1 parent d44ec74 commit f1811e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/mysql_to_doris/user_define_tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rm -rf ./user_files/tables1.sql
mv ./user_files/tables2.sql ./user_files/tables.sql
#start transform tables struct
sed -i '/ENGINE=/a) ENGINE=ODBC\n COMMENT "ODBC"\nPROPERTIES (\n"host" = "ApacheDorisHostIp",\n"port" = "3306",\n"user" = "root",\n"password" = "ApacheDorisHostPassword",\n"database" = "ApacheDorisDataBases",\n"table" = "ApacheDorisTables",\n"driver" = "MySQL",\n"odbc_type" = "mysql");' ./user_files/tables.sql
sed -i "s/\"driver\" = \"MySQL\"/\"driver\" = \"$doris_odbc_name\"/g" ./files/tables.sql
sed -i "s/\"driver\" = \"MySQL\"/\"driver\" = \"$doris_odbc_name\"/g" ./user_files/tables.sql
#delete match line
sed -i '/ENGINT=/d' ./user_files/tables.sql
sed -i '/PRIMARY KEY/d' ./user_files/tables.sql
Expand Down

0 comments on commit f1811e4

Please sign in to comment.