Evangelist @Oracle • I have been using MySQL since version 3.20 • devops believer • living in • h�ps://lefred.be Frédéric Descamps Copyright @ 2025 Oracle and/or its affiliates. 3
• Works closely with developers and IT teams • Must master management, monitoring, and optimization tools • Must be able to quickly resolve issues • Must stay up to date with the latest technologies and practices What is a MySQL DBA today? Copyright @ 2025 Oracle and/or its affiliates. 5
con�guration adjustments) • Optimize slow queries (analysis, indexing) • Capacity planning (data growth, resources) • System update planning (patches, new versions) Copyright @ 2025 Oracle and/or its affiliates. SELECT SELECT schema_name schema_name, , format_pico_time format_pico_time( (total_latency total_latency) ) tot_lat tot_lat, , exec_count exec_count, , format_pico_time format_pico_time( (total_latency total_latency/ /exec_count exec_count) ) latency_per_call latency_per_call, , query_sample_text query_sample_text FROM FROM sys sys. .x$statements_with_runtimes_in_95th_percentile x$statements_with_runtimes_in_95th_percentile AS AS t1 t1 JOIN JOIN performance_schema performance_schema. .events_statements_summary_by_digest events_statements_summary_by_digest AS AS t2 t2 ON ON t2 t2. .digest digest= =t1 t1. .digest digest WHERE WHERE schema_name schema_name NOT NOT in in ( ('performance_schema' 'performance_schema', , 'sys' 'sys') ) ORDER ORDER BY BY ( (total_latency total_latency/ /exec_count exec_count) ) desc desc LIMIT LIMIT 1 1\G \G * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * 1. 1. row row * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * schema_name: piday schema_name: piday tot_lat: tot_lat: 4.29 4.29 h h exec_count: exec_count: 5 5 latency_per_call: latency_per_call: 51.51 51.51 min min query_sample_text: query_sample_text: select select a a. .device_id device_id, , max max( (a a. .value value) ) as as ` `max temp max temp` `, , min min( (a a. .value value) ) as as ` `min temp min temp` `, , avg avg( (a a. .value value) ) as as ` `avg temp avg temp` `, , max max( (b b. .value value) ) as as ` `max humidity max humidity` `, , min min( (b b. .value value) ) as as ` `min humidity min humidity` `, , avg avg( (b b. .value value) ) as as ` `avg humidity avg humidity` ` from from temperature_history a temperature_history a join join humidity_history b humidity_history b on on b b. .device_id device_id= =a a. .device_id device_id where where date date( (a a. .time_stamp time_stamp) ) = = date date( (now now( () )) ) and and date date( (b b. .time_stamp time_stamp) )= =date date( (now now( () )) ) group group by by device_id device_id 11
the next day (priorities, urgencies) • Update documentation (changes, procedures) • Check cluster status (replication, integrity) • Check for any overnight changes (deployments, updates) Review and Planning Copyright @ 2025 Oracle and/or its affiliates. 20
optimizations ◦ Full backup restore testing ◦ Security audits Maintenance and Updates Overnight or on weekends, the DBA can schedule maintenance tasks that require minimal service interruption, such as: Copyright @ 2025 Oracle and/or its affiliates. 22
• Implementation of high availability (replication, clustering) • Development of a disaster recovery plan (RTO, RPO) • Adoption of best security practices (updates, audits) • Performance and scalability testing (stress tests, benchmarks) • Consideration and implementation of the cloud (migration, hybrid) • Continuous training (certi�cations, conferences) Copyright @ 2025 Oracle and/or its affiliates. 24