Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_mysql.c:1915:41: error: ‘MYSQL’ has no member named ‘reconnect’ (centos 7 python 2/3 mariadb 10.x compilation) #278

Closed
kseltar opened this issue Oct 31, 2018 · 1 comment

Comments

@kseltar
Copy link

kseltar commented Oct 31, 2018

  • OS: centos 7.(5/x)
    *devenvs: MariaDB 10.x + python 2.x/3.x

  • default output:
    _mysql.c: En la función ‘_mysql_ConnectionObject_ping’:
    _mysql.c:1915:41: error: ‘MYSQL’ no tiene un miembro llamado ‘reconnect’
    if ( reconnect != -1 ) self->connection.reconnect = reconnect;
    ^
    error: command 'gcc' failed with exit status 1

  • how to fix

sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp

source: DefectDojo/django-DefectDojo#407

@methane
Copy link
Member

methane commented Nov 1, 2018

You use MySQL-python, not this project.
MySQL-python is not maintained for several years. That's why I maintain this fork project.

@methane methane closed this as completed Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants