How to fix dart 2 mysql not working and sqlkocky package? - mysql

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.

Related

How to exclude the org.json version in MULE 3.9.0 buildpath?

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.

Couldn't use the MySql.Data.MySqlClient due to version

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.

Differences between Couchbase 3.0.1 and 4.0

I have to write a library that works with Couchbase 3.0.1 and 4.0. I know that to know if my code will works with each one, I will have to test them.
Anyway, what are the key differences between both versions?
If you are using the Java SDK, Couchbase server 4.0 is backwards compatible with the Java SDK 1.4.x. So using this version of the SDK should work across both Couchbase 3.0.x and 4.0.x servers, although you won't be able to use any of the cool new features with 4.0.x.
Other SDKs that were intended for Couchbase server 3.0.x should similarly be compatible with Couchbase server 4.0.x.
However, there could be some hidden "gotchas" when using an older SDK with the newer server version, although I have yet to encounter one myself.
As far as migrating from an older SDK intended for Couchbase server 3.0.x to a newer SDK intended for Couchbase server 4.0.x, this migration requires a significant effort for the Java SDK since they did a lot of refactoring. Although, I'm not certain if the same is true for SDKs in other languages.

Justifying Non-Standard Python 3 MySQL Connector Use

I am creating a project using Django + Python 3.4. However, according to this question, the standard MySQL connector for Python does not support the language's third release (which I'm having a difficult time believing, but that's beside the point).
Ultimately, my question is whether or not it is justifiable to use a non-standard connector fork (such as that which is presented in the linked question above) over downgrading to Python 2.x. For example, are there any significant security issues with using the forked connector instead of waiting for an official release?
MySQL Connector/Python is not bundled with Django, but it is made by Oracle. So I'm not sure if it should be considered an unofficial fork.
I'm using it with an old mySQL database, python 3.4 and django 1.7. The only problem I've noticed is that sometimes the error messages are a bit wonky.
Installation is very easy:
pip install mysql-connector-python --allow-external mysql-connector-python
I have been using the mysql-connector-python connector for several months without issue. This is using Python 3.4.2 and Django-1.7.1.
It actually works much better than the git fork someone else did of the python 2 connector.
My opinion, don't downgrade to python 2 - This is a solid connector in my experience.

How do I find out what version of the mysql odbc driver isql is using

After finding a pretty nasty bug in the packaged 3.51.15 driver that came with ubuntu I downloaded and compiled the latest version from mysql's site.
Now im wondering how I can find out what version isql is actually using.
try
ldd /path/to/isql
That should tell you which dynamic libraries it's linked against. Find the mysql/odbc one and then plug that into google and that should give you an idea of what version it's using.