I load the reference MySql.Data and verify that this is loaded.
I place
using MySql.Data;
into my code, but it cannot find MySql.Data.
There are many versions of MySql.Data available and many solutions indicated for this in previous posts.
One possible cause is that the .NET Framework version is incompatible with the version of the MySql Connector/NET.
Check your version of the .NET Framework, since the Connector/NET only works up to .NET Framework 4.5.x and changing the version from 4.6 to 4.5.2 worked for me. (Project > Properties > Application > Target Framework).
REFERENCE: MySQL Versions
Related
How to exclude the org.json version in MULE 3.9.0 buildpath?
The version is json-20140107 I want to use the latest json version. I tried to exclude in mule-commons but it did not do any help.
The json-20140107.jar library is distributed with Mule 3.9.0. Because of how Mule implements classloading, at execution time classes loaded from that jar file will override a newer version in your application. You must not change the version provided because Mule was tested. Changing any provided library in the distribution can cause unexpected errors.
You could pack a new version of the library and try to use Fine Grain Classloader Control however that seems to be an Enterprise Edition feature not available in the community edition. If you have the Enterprise Edition it is highly recommended to use the last patch version (currently 3.9.4) instead of 3.9.0.
Another solution could be to migrate to Mule 4.x, which uses classloading isolation to avoid this kind of issues. You can use any version of libraries inside applications without conflicting with the provided libraries in the runtime. Again, using the last version available is the recommended way to go. Mule 3 applications are not compatible with Mule 4, so you will need to migrate existing applications.
I just started with Authentication and authorization for SPAs of Dotnet core 3.0 by using
dotnet new angular -o <output_directory_name> -au Individual
and it created a new project with Angular as a client side app and ASP.net core as a backend. Now I want to use MySQL with this template.
I have tried using two providers for this
MySql.Data.EntityFrameworkCore
Pomelo.EntityFrameworkCore.MySql
but both of them are not supported with Entityframework core 3.0 and asking me to downgrade to Entityframework core 2.2. When I downgraded to Entityframework core 2.2 another package named Microsoft.AspNetCore.ApiAuthorization.IdentityServer starts breaking as it requires Entityframework core version 3.0 and above.
Can somebody please tell me how to setup this template of Authentication and Authorization for SPAs for MySQL?
It turned out I had to wait some time for Pomelo Entity Framework Team to release the .NET Core 3.0 Supported version which is available now. All the other things are now working as expected.
I want to connect mysql database using dart sqljocky package but it's not compatible. dart analysis show error.
Resolving dependencies...
The current Dart SDK version is 2.0.0.
Because dartAuth depends on sqljocky >=0.1.3 which requires SDK version <2.0.0, version solving failed.
Because dartAuth depends on sqljocky >=0.1.3 which requires SDK version <2.0.0, version solving failed.
According to the error, the installed version of the Dart SDK is too new for the sqljocky version required by dartAuth.
You'll either need to downgrade to a pre-2.0.0 version of the Dart SDK or upgrade to a dartAuth version that doesn't require an outdated version of sqljocky (which hasn't been updated in three years).
It's not clear from your post, but it looks to me like you must be using a very old version of dartAuth if it's depending on sqljocky, so moving to a newer version of the former and replacing the latter with something that's actively maintained seem to be reasonable first steps.
I am using VS2013.5, I installed the MySql for visual studio that is in the MySql Site. When I compiled my project, this warning appeared which, in the process, disabled me to use the MySqlClient methods and functions:
Warning 1 The primary reference "MySql.Data, Version=8.0.12.0,
Culture=neutral, PublicKeyToken=c5687fc88969c44d,
processorArchitecture=MSIL" could not be resolved because it was built
against the ".NETFramework,Version=v4.5.2" framework. This is a higher
version than the currently targeted framework
".NETFramework,Version=v4.5".
how can I resolve this? Is there a way to download and install the older mysql version?
You have to use and install an older MySQL connector or a newer .NET version. That is a common problem. Try to install the Version 6.X. Then it could work. If you have downloaded the MySQL integration for the Visual-Studio you have to install an older version. Not all versions are compatible and some new version have bugs and you can't open some windows. I had the same problem.
So you have to try some versions and combinations to find the correct one.
Well, if you are using .NET Framework v4.5 or v4.5.2, you better use MySQL Connector version 6.9.8. It'll work, mine did.
.NET Framework v4.5.2 work against MySql.Data, Version=8.0.12.0. So you have to use lower version of connector that is compatible with your .NET
Uninstall current connector (8.0.12.0), then from your Project > Reference tab, remove MySql.Data that has a version of 8.0.12.0. Install 6.9.8, then from Reference > Add > Search and CHECK MySql.data 6.9.8.
I am trying to install MYSQL Workbench but shows the error that says
Mysql workbench require the .net framework 4.5.2 to be installed.
But then when I download .net framework in my windows 8.1 it says
Microsoft .net framework is already a part of your system. You don't need to install the .net framework 4.5 redistributable.
So now please help me.
There are several ways to fix the issue:
1) Go to: https://dev.mysql.com/downloads/file/?id=480542
and update the MySQL INTALLER
to add Workbench 8.0
if that doesn't work
2) go to: https://dev.mysql.com/doc/refman/8.0/en/source-configuration-options.html
and look at possible resources to fix the issue,
3) Go to : Visual Studio and Modify by selecting
Desktop development C++
this will allow you to update the required software.
if all of these methods fail completely uninstall Visual Studio and MySQL and continue to restart computer.
Reinstall: https://dev.mysql.com/downloads/file/?id=480542
good luck.
This issue MySQL workbench caused because of .Net Framework 3.5 on Windows 8. Please install .Net Framework 3.5 on Windows first and then try MySQL workbench or follow these references
Follow Reference 1 or Reference 2