pip更新mysql

编程入门 行业动态 更新时间:2024-10-08 01:28:42

<a href=https://www.elefans.com/category/jswz/34/1768863.html style=pip更新mysql"/>

pip更新mysql

错误:

#warning This file should not be included by clients, include only

^

In file included from _mysql.c:46:0:

/usr/include/mysql/mysql.h:440:3: warning: function declaration isn’t a prototype [-Wstrict-prototypes]

MYSQL_CLIENT_PLUGIN_HEADER

^

_mysql.c: In function ‘_mysql_ConnectionObject_ping’:

_mysql.c:2005:41: error: ‘MYSQL’ has no member named ‘reconnect’

if ( reconnect != -1 ) self->connection.reconnect = reconnect;

^

error: command 'gcc' failed with exit status 1

错误原因是 MariaDB 10.2 、10.3 的 MySQL 版本时没有 reconnect

解决:

vim /usr/include/mysql/mysql.h​

搜索 st_mysql 定义结构,添加 reconnect 声明如下:

unsigned int reconnect; /matt hacking mysql by mimvp/

my_bool reconnect; /set to 1 if automatic reconnect by mimvp/

更多推荐

pip更新mysql

本文发布于:2024-03-12 13:28:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1731621.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:pip   mysql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!