现在位置: 首页 > DB-API
+0°

Premature end of script headers 或 End of script output before headers

2022年06月21日 16:55:00 Python  ⁄ 共 1000字 暂无评论 ⁄ 被围观 1,739次
​在测试 Python DB-API 使用流程脚本时,访问出现如下错误: ​ 查看 Apache 日志,错误信息如下: Premature end of script headers: dblink.py或者End of script output before headers: dblink.py dblink.py 脚本内容如下: #!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb # 打开数据库连接 db = MySQLdb.connect("localhost", "数据库用户名", "数据库密码", "数据库", charset='utf8mb4') #...
阅读全文