这是我想要做的事情:
CREATE TABLE first_filter (
quote_datetime DATETIME,
expiration DATETIME,
strike FLOAT,
option_type VARCHAR(50),
bid FLOAT,
ask FLOAT,
underlying_ask FLOAT
);
INSERT INTO first_filter
SELECT *
FROM optionsdata
WHERE TIMESTAMPDIFF(DAY, quote_datetime, expiration) < 7
AND strike > 250
AND strike < 290
AND underlying_ask - strike < 16
AND underlying_ask - strike > -16
;
WHERE
语句的最终结果大约是400万行,我确信所有列都正确对应。
我收到的错误是:
错误代码:1206。锁的总数超过了锁表大小
我试图将innodb_buffer_pool_size
增加到10M,150M和250M而没有运气。然后在300M我想我打破了配置。
我现在无法使用这些错误启动服务器:
FROM W239.err:
2018-03-11T05:00:43 0 Warning option 'read_buffer_size': unsigned value 0 adjusted to 8192 2018-03-11T05:00:43 0 Warning option 'read_rnd_buffer_size': unsigned value 0 adjusted to 1 2018-03-11T05:00:43 0 Warning TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-03-11T05:00:43 0 Warning 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2018-03-11T05:00:43 0 Note C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.21-log) starting as process 12868 .. 2018-03-11T05:00:43 0 ERROR C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: option '--innodb-buffer-pool-dump-now' requires an argument 2018-03-11T05:00:43 0 ERROR Parsing options for plugin 'InnoDB' failed. 2018-03-11T05:00:43 0 ERROR Failed to initialize builtin plugins. 2018-03-11T05:00:43 0 ERROR Aborting 2018-03-11T05:00:43 0 Note Binlog end 2018-03-11T05:00:43 0 Note Shutting down plugin 'CSV' 2018-03-11T05:00:43 0 Note C:\Program Files\MySQL\MySQL Server
5.7 \ bin \ mysqld.exe:关闭完成
2018-03-11 00:00:49 - Checking server status... 2018-03-11 00:00:49 - Trying to connect to MySQL... 2018-03-11 00:00:49 - Can't connect to MySQL server on 'localhost' (10061) (2003) 2018-03-11 00:00:49 - Assuming server is not running
所有的帮助都表示赞赏,此时此刻我已经失去了很多。感谢。
答案 0 :(得分:0)
对my.cnf-ini [mysqld]部分的建议
#read_buffer_size=0 # lead with # or REMOVE for DEFAULT RAM needed
#read_rnd_buffer_size=0 # lead with # or REMOVE for DEFAULT RAM needed
只是第一步。
在关机/重启后发布更新的错误日志,以便我们看到您的最新错误消息。