Description:
SET PERSISTS does not work as described IMHO and behaves a bit random...
How to repeat:
mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| innodb_buffer_pool_size | 134217728 |
+-------------------------+-----------+
mysql> set persist innodb_buffer_pool_size=256*1024*1024;
mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| innodb_buffer_pool_size | 268435456 |
+-------------------------+-----------+
shell> cat mysqld-auto.cnf ; echo ""
{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }
shell> restart
mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| innodb_buffer_pool_size | 134217728 |
+-------------------------+-----------+
mysql> set persist innodb_buffer_pool_size=256*1024*1024;
mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name | Value |
+-------------------------+-----------+
| innodb_buffer_pool_size | 268435456 |
+-------------------------+-----------+
shell> cat mysqld-auto.cnf
{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }
Suggested fix:
I expect that the NEW value is persisted and survives a restart.
The values from mysqld-auto.cnf was:
{ "mysql_server": {"innodb_buffer_pool_size": "134217728" } }
{ "mysql_server": {"innodb_buffer_pool_size": "268435456" } }
{ "mysql_server": { } }
[21 Sep 2016 9:21]
MySQL Verification Team
Hello Oli,
Thank you for the report.
This is most likely duplicate of Bug #82905.
Thanks,
Umesh
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders. It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: SET PERSISTS does not work as described IMHO and behaves a bit random... How to repeat: mysql> show global variables like 'innodb_buffer_pool_size'; +-------------------------+-----------+ | Variable_name | Value | +-------------------------+-----------+ | innodb_buffer_pool_size | 134217728 | +-------------------------+-----------+ mysql> set persist innodb_buffer_pool_size=256*1024*1024; mysql> show global variables like 'innodb_buffer_pool_size'; +-------------------------+-----------+ | Variable_name | Value | +-------------------------+-----------+ | innodb_buffer_pool_size | 268435456 | +-------------------------+-----------+ shell> cat mysqld-auto.cnf ; echo "" { "mysql_server": {"innodb_buffer_pool_size": "134217728" } } shell> restart mysql> show global variables like 'innodb_buffer_pool_size'; +-------------------------+-----------+ | Variable_name | Value | +-------------------------+-----------+ | innodb_buffer_pool_size | 134217728 | +-------------------------+-----------+ mysql> set persist innodb_buffer_pool_size=256*1024*1024; mysql> show global variables like 'innodb_buffer_pool_size'; +-------------------------+-----------+ | Variable_name | Value | +-------------------------+-----------+ | innodb_buffer_pool_size | 268435456 | +-------------------------+-----------+ shell> cat mysqld-auto.cnf { "mysql_server": {"innodb_buffer_pool_size": "134217728" } } Suggested fix: I expect that the NEW value is persisted and survives a restart. The values from mysqld-auto.cnf was: { "mysql_server": {"innodb_buffer_pool_size": "134217728" } } { "mysql_server": {"innodb_buffer_pool_size": "268435456" } } { "mysql_server": { } }