MySQL 8.0 Password Rotation

MySQL 8.0 supports password rotation using dual password support. Dual password support As of MySQL 8.0.14, user accounts are permitted to have dual passwords, designated as primary and secondary passwords. Dual-password capability makes it possible to seamlessly perform credential changes in scenarios like this: A system has a large number of MySQL servers, possibly involving... Continue Reading →

Measuring Slave Lag with Parallel Replication

The struggle to measure slave lag correctly is real. MySQL provides an estimate of the slave lag using the show slave status \G command, in the form of Seconds_Behind_Master mysql> show slave status \G .. Slave_IO_State: Waiting for master to send event Master_Log_File: mysql_binary_log.000061 Read_Master_Log_Pos: 26823921 Relay_Log_File: mysql_relay_log.000175 Relay_Log_Pos: 26811053 Relay_Master_Log_File: mysql_binary_log.000061 Slave_IO_Running: Yes Slave_SQL_Running:... Continue Reading →

MySQL: Storing Time

Storing time in databases seems like a daunting task to many. The general principle with storing time in databases is - ALWAYS STORE TIME IN UTC. However for a lot of people this raises questions.. but my application expects time to be in US/Pacific, or my database server's time zone in PDT or most of... Continue Reading →

LDAP Authentication for MySQL

Why LDAP? LDAP stands for Lightweight Directory Access Protocol. It is based on a client server model. A client queries LDAP server, which responds with an answer or with a pointer to where client can get more information. Most organizations have LDAP set up and configured for managing users and their credentials for internal applications.... Continue Reading →

How Crash Recovery Works? : Part 2

Continuing where we left off in the last post, we saw why database systems use logs for recovery. Besides logs there are other supporting data structures that are needed for recovery. Broadly speaking there are three data structures that are part of a recovery mechanism (We’ll discuss the ARIES mechanism here) LogTransaction TableDirty Page Table... Continue Reading →

Blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started