Category: MySQL Architecture
-
innodb_change_buffer_max_size
With MySQL 5.6.2, you can set the maximum size of the change buffer as a percentage of the total size of the buffer pool using the innodb change buffer max size configuration option. The default value for innodb change buffer max size is 25. The maximum number of characters is 50. On a MySQL server…
//
-
Slow query log purge in MySQL
There are manly 3 steps… 1. Rename existing log file with _old. 2. Connect mysqladmin using socket and use flush-logs. 3. Delete _old file created in first step. Get the show query log location: mysql> show variables like slow_query_log %’; Get the socket file location: mysql> show variables like ‘socket%’; In my case I got…
//
-
Enable Data Load Local InFile
We were getting below error at the time of loading data into MySQL. Error: Programming Error: 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides. Solution: Check the status of local_infile variable in MySQL… > show variables like ‘%local%’; +—————+——-+ | Variable_name | Value | +—————+——-+ |…
//
-
MySQL master – slave replication setup
Hi guys, I hope you are doing great. Today here I am going to explain about MySQL master – slave replication setup. For the setup I have two servers clota-labl01 and clota-labl02. Here on clota-labl01 I am going to setup master and clota-labl02 as slave DB. Connect master server… ++++++++++++++++++++ clota-labl01 ++++++++++++++++++++ my.cnf configuration… =================…
//
-
Out of Memory Killer in Linux OS
In Linux systems, MySQL generally has a concept called Out of Memory killer OOM controlled by the kernel. This is to prevent the possible runaway process in OS to avoid race conditions and a server crash. Since MySQL and its optimized memory buffers are memory hogs, the OS may often kill the mysqld process to…
//
-
DBA Worries Continued DBMS Concepts L1 DBA My SQL MySQL Architecture MySQL Basics MySQL L1 SQL Server
Deterministic and Nondeterministic Functions
Deterministic functions: Deterministic functions always result in the same output every time they are called with a fixed set of input values and given the same condition of the database. For example, AVG() function always results the same result given the qualifications stated above. Nondeterministic functions: Nondeterministic functions result in different output each time they…
//
-
My SQL Innodb Cluster Setup
Server List clota-dbl05 @@version 8.0.32-commercial 192.168.0.156 My SQL root password Secure@123 ——————————————————————- ota-dbl06 <cota-dbl06> @@version 8.0.33 192.168.0.197 My SQL root password Secure@123 ——————————————————————- clota-dbl07 192.168.0.195 @@version @@version 8.0.33 My SQL root password Secure@321 ——————————————————————- Step 1: Modify /etc/hosts with IP and server_name on all the nodes… Like below vim /etc/hosts 192.168.0.156 clota-dbl05 192.168.0.197 ota-dbl06 192.168.0.195 clota-dbl07…
//
