自定义API发布时,接口提示各种MYSQL错误的解决方法

1.数据库版本过低,检查weixin.php接口里的mysql写法,高本版的mysql不支持mysql命令,改mysqli  ,如,mysql_query() 改用mysqli_query()
2.接口内数据库配置信息填写不正确,”temp/自定义返回数据.html” 软件调试目录里的文件提示信息,会导致链接失败的数据库错误提示
3.sql命令不兼容写法。接口里删掉带数据库名的表名,INSERT INTO `weixin`.`article_list` VALUES (的写法,改成 INSERT INTO `article_list` VALUES,不带库名。

未经允许不得转载:www.gulangu.com孤狼工作室 » 自定义API发布时,接口提示各种MYSQL错误的解决方法

6 answers

任何人 2023年5月9日
公开

cialis pills for sale We collected data from hospital database using standardized format which included baseline demographic, risk factors occupation, alcohol abuse, diabetes mellitus, history of corticosteroid or other immunosuppressant medications, and other concurrent diseases, clinical feature, laboratory, imaging, and microbiological data

未经允许不得转载:www.gulangu.com孤狼工作室 » 回答给自定义API发布时,接口提示各种MYSQL错误的解决方法

回答这个问题