the given key was not present in the dictionary in excel - mysql

Im getting the error "the given key was not present in the dictionary excel" when trying to connect mysql in excel . can someone help me in this please
I tried and installed the latest version of mysql 8.0

Related

Can't run a SQL Script own MySQL Workbench

I just installed MySQL server and MySQL Workbench on Mac OS Monterey. I am trying to run a .sql file on Workbench, it gives me this error message:"ascii codec can't decode byte 0xe in position 2380: ordinal not in range(128)." Can anyone help?
There is a bug report related to the same error as yours here:-
bug report
But in your case since ordinal is not in range , you should try to covert your SQL file to any other encoding schemes like UTF8 . You can do that using these steps:-
see here
After this try to open the script in MySql Workbench , issue must be resolved .

MySQL for excel : Connection Attempt Failed. Getting this error in MS Excel

The error Message that I get when I double click my connection under local connections
I downloaded the MySQL for excel add-in for my excel. But whenever I double click on my connections in excel I get the following error: "Connection attempt failed. The given key was not present in the dictionary ". I tried uninstalling and reinstalling both my Microsoft office and MySQL but I am getting the same error no matter how often I try it. I'm completely new to programming and MySQL, and I am not able to find a solution to the problem that I am facing.
Which version are you currently using?
with 8.0.31 I've received the same error.
I've now installed 8.0.20 and now it's working.
Check my response from this Post for details.

Type not supported - The JSON data is not available before MySQL 5.7.8

I am running local MySQL instance version of 5.7.23 in Ubuntu-18-04. The DB is already having some tables having JSON fields to store JSON data. They working fine with insert, update and delete operations.
The issue comes when try to modify an existing table to have a new field to store JSON data. MySQL-Workbench is giving an error saying
Type not supported
The JSON data is not available before MySQL 5.7.8.
In order to use it, first set the version for your model to 5.7.8 or
higher
Following screen shots shows my local environment information.
The error:
MySQL server info:
MySQL Workbench info:
I was able to figure the issue. The default version set for Modeling MySQL was set as 5.6.30. Changed it to 5.7.8 and works the table schema modification.
Go to Edit -> Preferences... in MySQL Workbench
Refer the below screens:
Before:
After:
Preference doesn't work for me. I use osx with workbench version 8.0.11.
Model in top bar menu -> Model Options -> MySQL then change the version as Shantha's answer works for me.
Previous version of MySQLWorkbench (6.3.10) has better error message for this...

MySql to MSSQL migration

I have a database in mysql that I would like to migrate to mssql since I would like to use that database for an asp.net application.I have everything setup but anytime I try to convert the schema using SSMA(SQL Server Migration Assistant) I keep getting this error
An unexpected error occured.Please send the log file to the product support."For more information see getting SSMA assistant"
in the product documentation.
Error Message: Object reference not set to an instance of an object.
How do I get that out of the way and then migrate the data to MSSQL.
I also had the same issue. Once I installed the latest version of ssma for mysql, it resolves the issue you have mentioned above.
https://www.microsoft.com/en-us/download/details.aspx?id=51218

Why doesn't mySQL give an error for "{" when trying to rename a database?

I am working with mySQL in NetBeans and I am trying to rename a database. The updated syntax can be found here:http://dev.mysql.com/doc/refman/5.1/en/alter-database.html. This is the one I am using.
ALTER {DATABASE | NBUSER} DATABASE UPGRADE DATA DIRECTORY NAME;
I keep getting this error:
Error code -1, SQL state 42X01: Syntax error: Encountered "{" at line 1, column 7.
Any suggestions to why I am getting this error?
Thanks for any advice
The syntax provided is to tell you that you can use either of the 2 objects.
So try only
ALTER DATABASE UPGRADE DATA DIRECTORY NAME;
But from the documentation it seems that you also must specify the database name.
Have a look at their example
ALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;