mysql Workbench table data import wizard decoding issue - mysql

I have saved my file to csv using:
pd.to_csv('path.csv', encoding='utf-8', index=False)
And then try to use table data import wizard to import data to mysql talbe. I have aligned every column, but got the decoding error.
Attached is the pic, my question is:
Is there a way to specify mysql workbench's encoding setting? My workbench version is: 5.7
Solutions I have tried, but it doesn't work:
Open and save the file as .csv using mac numbers, ensure the encoding is utf-8

Related

secure_file_priv= NULL in mySQL workbench MAC

I am new to mySql workbench and need help importing a large file for analysis. I read here
MySQL workbench table data import wizard extremely slow that the data import wizard shouldn't be used so i used LOAD DATA INFILE as suggested but I had issues importing due to secure_file_priv=NULL.
I found a solution here How should I tackle --secure-file-priv in MySQL? but I don't know how to reset the value of secure_file_priv.
I found some sources that use command line to do so but I don't know how to use mySql workbench from command line.
Any help on how to disable this or change it would be appreciated
don't touch it, it is basicakky a security feature.
use the data import under server in workbench,
If you want do it by sql, ecery thng os written already in How should I tackle --secure-file-priv in MySQL? which you linked
simple
copy your file in the folder, that you get as value, when you do a SHOW VARIABLES LIKE "secure_file_priv";
Now you can make a LOAD DAT ideally from the console, because then you have no timeout.
Read also Bulk insert in the namual so that you can optimize a big data import
If you really want to use any folder which is not recommended, you have to edit the my.ini file for that and restart to server (both can be done in Workbench as well, you see in the picture options file and Start/shutdown.) There are some other ways do restart the service.
Here are the basics good described of importing csv

Uploading large csv (5GB) to MySql Workbench

So I have been trying to upload this csv into mysql workbench by first creating a schema then right clicking the schema and using table import wizard. This however has taken such a long time to import I have left my computer running for hours and it is still not close to being uploaded. Wondering if anyone has any tips? I tried the LOAD DATA statement but am getting a "mysql is running with a secure-file-priv option" error. Thanks!

Exported all MySQL databases to a single file

Accidentally I exported all my mySQL databases to a single .sql file. I want to create those databases again in my development environment. When I try to import the file via PHPMyAdmin I get the following error message:
What should I do? Could you please help me?
If you look at the error, it says no Database selected.
You need to create an identical Database and import it from their.
You cannot just import a whole database, as it does not work.
Let me know if this solves,
Bryce
*also, make sure the files are speared by database, as this could make the error also, as the import can only import one in one file

MySQL Workbench Import CSV File Restrition

I'm trying to import a csv file into MySQL 5.7 using the MySQL Workbench import module.
It's everything ok, the data are correctly readed by the module.
But I have 11.000 rows.
The module are just importing 29.
Is there any configuration restricting my full import?
I had the same problems as yours. I got around it by the following steps:
after the MySQL Workbench import clear all the table rows by truncate(but reserve the table itself)
Using MySQL command line
LOAD DATA LOCAL INFILE '/data.csv' INTO TABLE my_table FIELDS TERMINATED BY ','
Hope it helps.

drupal database import/export issue

Am trying to change server of drupal site (drupal-7) . The first phase was to port the database. drupal simply mentions to take a dump and import where needed.
Am using Toad for MYSQL but when exporting to sql file, it misses the value for some blobs datatypes (replaces that data with a string System.byte[]).
when exported as csv file, it seems to give some other errors while importing.
kindly assist (step by step if possible). to export and import data via Toad for MYSQL.
have used Heidis SQL and it seemed to work.