I am trying to update MySQL "innodb_buffer_pool_size" in windows server. I have run "set global innodb_buffer_pool_size=25610241024".
After I restart the server it's set back to 8M again.
If I change my.ini file then MySQL57 service is not running.
I am using MySQL 5.7.36.
To save setting, you need to put them in a my.ini file that the mysql server reads on startup.
SET GLOBAL... only affect the current running instance.
Related
I am running an Xubuntu 16.04 machine, and have installed mysql version 5.6. I wanted to change the mysql settings buffer pool size among other things. I tried editing /etc/mysql/my.cnf, /etc/mysql/conf.d/mysql.cnf. Then restarted mysql server. After that, when I login to mysql console and try to print the variables, I still do not see the values I entered in the config files. What am I missing?
EDIT
I have put the settings under [mysqld] section. Below is the content of the above files:
[mysqld]
innodb_buffer_pool_size=4G
innodb_log_buffer_size=512M
innodb_log_file_size=2G
innodb_write_io_threads=16
innodb_flush_log_at_trx_commit=0
I am changing the value of group_concat_max_len to 15000 using
SET group_concat_max_len=15000;
I achieve what I what but when I restart mysql server, it is set to default 1024.
How can I make it static to 15000, I assume, I should be able to set this value in mysql config file. I added group_concat_max_len=15000 in my.cnf and restarted the server. The value remained same i.e 1024.
Can I set it in a way so that the value remains same when mysql server is restarted?
Yes. You need to put it in the config file :
LINUX: my.cnf file
WINDOWS: my.ini file
[mysqld]
group_concat_max_len=15000
Note: Add this line group_concat_max_len=15000 under mysqld section. You need to restart your MySQL server to see the effect.
I want to increase the max connection limit in mysql.
My current file /etc/my.cnf looks like this
[mysqld]
innodb_file_per_table=1
When I try to increase the connection limit by adding this variable then I cannot restart mysql service.
[mysqld]
innodb_file_per_table=1
set-variable=max_connections=10000
You can change the limit from your mysql config file which is located in where you have installed the mysql server database, .ini file
search for the max_connection variable and change the value as per your request
and you have restart your server after changing
I wrote this :
"#event_scheduler=on" under "mysqld" section
in MySQL Server Instance Configuration File : "my.ini" present in the directory :
ProgramData\MySQl\MySQL Server 5.6
But,when I restarted my Computer and started MySQL it shows "event_scheduler=off" and I have to set it againn by :"SET ##global.event_scheduler=on".
Can I permanently turn the event_scheduler "on".If yes,then what will be the steps.Give in detail
Lines starting with # are comments in my.ini. Try removing the # and restart the server
Write just like:
event_scheduler = 'on'
I have a MySQL Server version 5.5.25 installed on CentOS server.
I've increased *max_allowed_packet* size to 32M in /etc/my.cnf file in order to store it permanently (max_allowed_packet = 32M;), then I've restarted server with /etc/init.d/mysqld restart. The problem is that in PHPMyAdmin the value doesn't change. I tried to set variable from shell with SET GLOBAL max_allowed_packet = 33554432; (32 MB), but shell returns "0 rows affected".
Is it a bug of MySQL server? Or maybe I'm wrong?
Did you restart Apache?
service httpd restart