在 项目中配置mysql 测试连接正常 但在浏览器中查看数据库数据时出错 说找不到teching db
提升以下出错信息
ProgrammingError at /basic/demo/
(1146, "Table 'teching.teching' doesn't exist")
Request Method: GET
Request URL: http://127.0.0.1:8000/basic/demo/
Django Version: 3.2
Exception Type: ProgrammingError
Exception Value:
(1146, "Table 'teching.teching' doesn't exist")
试过在pycharm 配置和测试连接及执行sql 可查出数据
怎样解决这个问题, 可以远程或另外给money 谢谢
程序中表名字写错了,select * from teaching 改成 select * from spm_order
sql语句写错了
提示数据库中对应的表teching.teching不存在。
teching数据库中有teching这张表嘛