It’s just that the rows are too long to import,
STH over and over again!Although Baidu master does not give force, but through unremitting efforts, or let me find a solution.
Here is a solution, but I changed a lot of parameters before I found this one.
Add in my.conf
[mysqld]
innodb_strict_mode = 0
The result is not wrong, the big guy’s explanation for this is
Note: The innodb_strict_mode setting affects the handling of syntax errors in the CREATE TABLE, ALTER TABLE, and CREATE INDEX statements. Innodb_strict_mode also enables record size checking, so INSERT or UPDATE never fails because the record is too large for the selected page size.
And then I looked up the differences between these operations
1, CREATE INDEX must provide the INDEX name, for ALTER TABLE, will be automatically created, if you do not provide;
2, CREATE INDEX can only CREATE one INDEX at a time, ALTER TABLE can CREATE more than one
3, only ALTER TABLE can CREATE the primary key,
In case there are more than one parameter to avoid error, I post my modified parameters
max_allowed_packet = 256M #修改前是 16M
innodb_buffer_pool_size = 512M #修改前 54
innodb_log_file_size = 30M
innodb_log_buffer_size = 32M
#添加的
innodb_file_per_table = 1
innodb_large_prefix=1
innodb_file_format = Barracuda
innodb_strict_mode = 0
Then restart Mariadb and you are done.
Read More:
- ERROR 1265 (01000): Data truncated for column ‘ENABLED’ at row 7
- [Solved] Mysql Error: [Err] 1136 – Column count doesn‘t match value count at row 1
- Mysql Script Error Code: 1136. Column count doesn’t match value count at row 1
- Solve ERROR 1136 (21S01) in Mysql: Column count doesn’t match value count at row 1
- Error running ‘Application‘: Command line is too long [How to Solve]
- Zabbix import MySQL database error ERROR 1046 (3D000) at line 1: No database selected
- [Solved] dbeaver import Error: Error 1840 (HY000) at line 24
- ERROR 1261 (01000): Row 1 doesn‘t contain data for all columns
- SQL Server Group sort de duplication row_ number() over ( PARTITION BY t1.col_ 2 ORDER BY 1 )
- [Solved] EOS7.6 Error: Init DB failed [Specified key was too long; max key length is 767 bytes…
- The attributes of Oracle batch modification sequence (such as cache)_size, increment_(by et al.)
- Error 1406 (22001) in MySQL: data too long for column (Fixed)
- SQL server converts multiple lines into one line, separated by characters
- [Solved] Worker 1 failed executing transaction ‘ANONYMOUS‘ at master log mall-mysql-bin.000001, end_log_pos
- MYSQL Index Key Length 1071 – Specified key was too long; max key length is 3072 bytes
- [Solved] mysqldump: Error: ‘Access denied; you need (at least one of) the PROCESS privilege(s) for this opera
- pymysql Error: File “/usr/local/lib/python2.7/site-packages/PyMySQL-1.0.2-py2.7.egg/pymysql/connections.py”, line 167 SyntaxError: invalid syntax
- [Solved] Error: read ECONNRESET at TCP.onStreamRead Cannot enqueue Query after fatal error
- MYSQL Slave is not configured or failed to initialize properly. You must at least set –server-id