You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source: MS Access (ACE12)
Target: MySQL (tested on MariaDB 10.5-10.8)
Before upgrading to Ubuntu 22.04 (from Ubuntu 20.04, mdbtools 0.7.1), I had noticed the varchar length of the fields exported by mdb-schema were double the length of what it was set in MS Access. This got "fixed" in the mdbtools version included in Ubuntu 22.04 (v1.0.0).
However, this change of behavior broke our import process for a few columns:
ERROR 1406 (22001) at line 313: Data too long for column 'MODISME' at row 412.
The commands used are standard:
mdb-schema --no-indexes --no-relations -T 00_PAREMIOTIPUS ../database.accdb mysql mdb-export -I mysql -D '%Y-%m-%d %H:%M:%S' ../database.accdb "00_PAREMIOTIPUS"
I imagine this had to do with special characters or encoding issues. I temporarily "fixed" it with:
sed -i 's/varchar (255)/varchar (512)/g' ../install/db/db.sql
Does anyone know if something changed between mdbtools v1.0.0 and 0.7.1 that could have caused this issue? (or in libmdb2 / libmdbsql libraries)
We are using mdbtools in a non-profit website made by volunteers (https://pccd.dites.cat/). I am happy to share the MS Access file privately if useful (it is the biggest online repository of Catalan sayings and proverbs, so it is quite big).
The text was updated successfully, but these errors were encountered:
So I think this may be related to my setup, or even a non-issue (expected behaviour). Sorry for the noise, I somehow forgot that I was running uconv here.
Source: MS Access (ACE12)
Target: MySQL (tested on MariaDB 10.5-10.8)
Before upgrading to Ubuntu 22.04 (from Ubuntu 20.04, mdbtools 0.7.1), I had noticed the varchar length of the fields exported by mdb-schema were double the length of what it was set in MS Access. This got "fixed" in the mdbtools version included in Ubuntu 22.04 (v1.0.0).
However, this change of behavior broke our import process for a few columns:
ERROR 1406 (22001) at line 313: Data too long for column 'MODISME' at row 412
.The commands used are standard:
mdb-schema --no-indexes --no-relations -T 00_PAREMIOTIPUS ../database.accdb mysql
mdb-export -I mysql -D '%Y-%m-%d %H:%M:%S' ../database.accdb "00_PAREMIOTIPUS"
I imagine this had to do with special characters or encoding issues. I temporarily "fixed" it with:
sed -i 's/varchar (255)/varchar (512)/g' ../install/db/db.sql
Does anyone know if something changed between mdbtools v1.0.0 and 0.7.1 that could have caused this issue? (or in libmdb2 / libmdbsql libraries)
We are using mdbtools in a non-profit website made by volunteers (https://pccd.dites.cat/). I am happy to share the MS Access file privately if useful (it is the biggest online repository of Catalan sayings and proverbs, so it is quite big).
The text was updated successfully, but these errors were encountered: