解決方法:建立對象時傳入 time_zone="+8:00" self.mysqlDb = torndb.Connection( host=options.mysql_host, database=options.mysql_database, user=options.mysql_user, password=options.mysql_password, time_zone="+8:00" )mysql
self.mysqlDb = torndb.Connection( host=options.mysql_host, database=options.mysql_database, user=options.mysql_user, password=options.mysql_password, time_zone="+8:00" )
使用 conn.excute("use data_name")來切換數據源sql