Skip to content

Support new installations of MySQL Connector C 6.1 #448

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

Closed
wants to merge 2 commits into from

Conversation

mddicicco
Copy link

New installations of MySQL Connector C 6.1 default to 'C:\Program Files.." not 'C:\Program Files (x86)..'.
This update also corrects the setup_windows.py client from 'mariadbclient' to 'mysqlclient'

change connector path to support amd64 installation of mysql connector c
swap client to mysql instead of mariadb
@codecov
Copy link

codecov bot commented Oct 14, 2020

Codecov Report

Merging #448 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #448   +/-   ##
=======================================
  Coverage   86.60%   86.60%           
=======================================
  Files          12       12           
  Lines        1530     1530           
=======================================
  Hits         1325     1325           
  Misses        205      205           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca630c0...796d0dc. Read the comment docs.

Comment on lines +15 to +16
client = "mysqlclient"
# client = "mariadbclient"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do that. MySQL Connector/C 6.1 is too old, and new libmysqlclient doesn't support static linking.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole reason I landed on 6.1 was because that is what the build was looking for. I aimed for making the minimum changes possible for it to work. Prior to these changes the build fails because it is searching for a 'mariadb' directory inside the 'MySQL Connector C 6.1' directory (that is caused by line 16), and the 'MySQL Connector C 6.1' directory if installed today lands in the x64 'Program Files' directory

Copy link
Member

@methane methane Oct 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MySQL Connector/C 6.1 is old product. It is not recommended/default option. So don't try make it success without modification. MariaDB Connector/C must be default option for Windows.

@methane methane closed this Dec 4, 2020
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

Successfully merging this pull request may close these issues.

2 participants