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

error datasource MySQL connection for MariaDB #701

Open
anovsiradj opened this issue May 23, 2024 · 4 comments
Open

error datasource MySQL connection for MariaDB #701

anovsiradj opened this issue May 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@anovsiradj
Copy link

Describe the bug
i am trying to connect to MariaDB datasource using MySQL Connection using Designer.exe from FastReport.Community.2024.2.0.zip.

but i dont know why, i can connect to MariaDB using Designer.exe from FastReport.Community.2023.3.0.zip.

To Reproduce
Steps to reproduce the behavior:

  • Data
  • Add Data Source
  • New Connection
  • choose MySQL Connection
  • (fill host,user,pass,dbname)
  • click Ok or "Test Connection"

Expected behavior
A clear and concise description of what you expected to happen.

Stacktrace

  • ...
  • ...

Screenshots
image

Device (please complete the following information):

  • OS: Windows 11 Pro
  • Version: FastReport.Community.2024.2.0.zip
  • MariaDB: 11.3.1-MariaDB

Additional context
Add any other context about the problem here.

@anovsiradj anovsiradj added the bug Something isn't working label May 23, 2024
@netenken
Copy link

I got the same problem here..
Snipaste_2024-05-27_18-07-31

Device (please complete the following information):

OS: Windows 10 Pro
Version: FastReport.Community.2024.2.0.zip
DB: even no need to enter server address, just press test button , the error occured

@sifaqes
Copy link

sifaqes commented Jul 7, 2024

In fact, I have the same problem. I suspect that the program is unable to read the MySQL Data client

@luizppuhl
Copy link

Estou com o mesmo problema, alguém chegou a alguma concluisão

@alfredoo0329
Copy link

I had the same error when connecting to MySQL from FastReport 2025.1, but with another component "System.Diagnostics.DiagnosticSource". I solved it by following the next steps:

  1. Download the latest release of FastReport that works on your machine, in my case it was the 2023.3 version
  2. Once you uncompress the .zip file, search the .dll file of the package the error tells you FastReport doesn´t find a match for "System.Diagnostics.DiagnosticSource.dll" or "System.Runtime.CompilerServices.Unsafe.dll" in your case
  3. Copy that file to the FastReport version folder you are trying to run and replace it with the file you copied from the previous version (2023.3 -> 2025.1)
  4. Open FastReport Designer again (2025.1) and the error should appear no more

Also, you would want to check if the "PublicKeyToken" that the error throws you appears in the file "Designer.exe.config" so you can be sure it will work. Otherwise, you could look for the .dll file in NuGet. However, I didn´t have to do it so I wouldn´t be sure if that could work. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants