[MDEV-26397] VBS to Import a CSV file Created: 2021-08-18 Updated: 2021-10-26 Resolved: 2021-10-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.6.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Paul | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | CSV, need_feedback | ||
| Attachments: |
|
| Description |
|
Hello. |
| Comments |
| Comment by Sergei Golubchik [ 2021-08-23 ] |
|
you can add some prints or replace mysqlimport with a wrapper to see the exact command that you're running. |
| Comment by Sergei Golubchik [ 2021-08-23 ] |
|
what mariadb version is it? |
| Comment by Paul [ 2021-08-23 ] |
|
Hi. I am using Server version: 10.6.4-MariaDB - mariadb.org binary distribution. |
| Comment by Sergei Golubchik [ 2021-10-25 ] |
|
How exactly does it fail? Do you get an error? What error is it? |
| Comment by Paul [ 2021-10-25 ] |
|
I dont know, the CSV just does not import when using the VBS script. |
| Comment by Sergei Golubchik [ 2021-10-25 ] |
|
Likely not security as such, but data conversion. Like inserting 5 characters into CHAR(4) or an invalid date, like, 2021-10-00 or an emoji into a utf8mb3 column. Depending on how strict the database is it could be a warning or an error. Strictness was changed over time in different MySQL and MariaDB versions. See also https://mariadb.com/kb/en/mariadb/sql_mode/ |
| Comment by Paul [ 2021-10-26 ] |
|
OK so what I do is export a full database from MySQL using PHPMyAdmin, and then I go into the MariaDB and make a database called new_db_2005. I then go to the command line and enter my password and use, source new_db_2005 and use C:\new_db_2005.sql |