我在其他主机上有 sql 数据库,它工作正常。当我将数据库连接到我的 ythonanywhere 应用程序时。这个错误:
pyodbc.InterfaceError: ('IM002', '[IM002] [unixODBC][Driver Manager]Data source name not found and no default driver specified (0) (SQLDriverConnect)')
connection_string = 'DSN=sqlserverdatasource;DATABASE=ff;Uid=sa;Pwd=Lmg12@@;Encrypt=yes;Connection Timeout=30;'
将