Closed aitting closed 2 years ago
使用docker-compose创建了服务,数据库只是创建了数据库,没有自动创建表,如何创建表呢,
######################### begin run <function stat_all_lite_buy at 0x7f9309914050> 2022-02-15 15:51:10.989215 ######################### datetime_str: 2022-02-15 datetime_int: 20220215 insert sql: DELETE FROM `stock_data`.`guess_indicators_lite_buy_daily` WHERE `date`= '20220215' error : (1146, "Table 'stock_data.guess_indicators_lite_buy_daily' doesn't exist") error : (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host '#@192.168.3.250' (-3)") (Background on this error at: https://sqlalche.me/e/14/e3q8) ######################### finish 2022-02-15 15:51:10.989215 , use time: 40.05975651741028 #########################
使用docker-compose创建了服务,数据库只是创建了数据库,没有自动创建表,如何创建表呢,