Skip to content

schema does not work for all character sets #56

Closed
donald opened this issue May 4, 2017 · 1 comment
Closed

schema does not work for all character sets #56

donald opened this issue May 4, 2017 · 1 comment

Comments

@donald
Copy link
Contributor

donald commented May 4, 2017

buczek@theinternet:/scratch/local$ mysql --defaults-group-suffix=mxqtest -f < ~/git/mxq/mysql/create_tables.sql 
ERROR 1067 (42000) at line 1: Invalid default value for 'group_date_end'
ERROR 1074 (42000) at line 66: Column length too big for column 'job_argv' (max = 16383); use BLOB or TEXT instead
ERROR 1067 (42000) at line 133: Invalid default value for 'daemon_start'
buczek@theinternet:/scratch/local$ mysql --defaults-group-suffix=mxqtest -e 'show variables like "version";'
+---------------+--------+
| Variable_name | Value  |
+---------------+--------+
| version       | 5.7.18 |
+---------------+--------+
@donald
Copy link
Contributor Author

donald commented May 5, 2017

Nope. The difference was the default character set of the server and so the character set of the database created without an explicit character set. The running database has "latin1" the new database had "utf8nb4" where the limit for VARCHAR is 16383 characters.

When the database is created with CREATE DATABASE mxq DEFAULT CHARSET=latin1; the limit is 65535

@donald donald changed the title schema invalid for mysql-7 schema does not work for all character sets Jan 1, 2024
@donald donald mentioned this issue Jan 1, 2024
@donald donald closed this as completed Feb 17, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant