-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
soci+mariadbclient 3.3.8-1 failed to connect to a mysql database, while it works with 3.1.13(replace the libmariadb.dll with old one works) #19861
Comments
Could you provide steps to compile the program? |
OK, since I'm using Code::Blocks IDE, here is the build log:
Thanks. |
i think this can fix the mysql error: |
In my case, the program shows the following error.
I think there is some info missing about reproducing the error in original post. |
What extra information should I post? I'm running MySQL 8.0.33 in Win10 64bit, and the export TCP port is 3306(default). |
Thanks for the info. I can reproduce the issue and get the same error message in original post. From a quick look, the issue is about path relocation. |
I have added a pull request to fix this issue. Would you like to test the packages from GitHub Actions artifacts of that pull request? I got the following error with the fix. I guess this error is expected because I am not running any db, right?
|
OK, I can test it. Can you show me the package file, so that I can install that package locally in my PC. |
Please follow these steps for testing package in CI artifacts.
|
Thanks, I just tested this new package, and it solves my reported issue. Great! |
Description / Steps to reproduce the issue
I have c++ code to connect to mysql through the mariadbclient library , it used to work with the mariadbclient version 3.1.3, but after I upgraded yesterday, I see it can't connect to the mysql now.
I just replace the libmariadb.dll file with the old libmariadb.dll(version 3.1.13), my code works, so I believe the interface may changes?
This is the test code:
Note I also use the soci library, it looks like the libmariadb library has some interface changes, so soci library just failed to use it.
The above program will report some error like:
The text "找不到指定的模块。" means it can't find the specified module.
Expected behavior
It should connect to the mysql correctly
Actual behavior
failed to connect to the mysql database
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: