DeveloperBreeze

Database Administration Development Tutorials, Guides & Insights

Unlock 5+ expert-curated database administration tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your database administration skills on DeveloperBreeze.

Tutorial
mysql

Understanding and Using MySQL Indexes

CREATE INDEX idx_name ON users(first_name, last_name);

To view existing indexes on a table, use the SHOW INDEX command:

Aug 12, 2024
Read More
Tutorial
mysql

Data Import and Export in MySQL

  • /path/to/export.csv: The file where the data will be exported.

MySQL Workbench provides a graphical interface for data import and export.

Aug 12, 2024
Read More
Tutorial
mysql

How to Monitor MySQL Database Performance

mysqldumpslow -s t /path/to/slow-query.log

This command sorts queries by time, helping you identify the slowest queries.

Aug 12, 2024
Read More
Tutorial
mysql

Managing Transactions and Concurrency in MySQL

SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;

You can set the isolation level for the current session or globally to affect all new connections.

Aug 12, 2024
Read More
Tutorial
mysql

Viewing the Database Size and Identifying the Largest Table in MySQL

This query will output the size of the specified database in megabytes (MB).

To identify the largest table in terms of size within a specific database, use a similar query but without the grouping. Instead, order by size and limit the result to find the largest table:

Aug 12, 2024
Read More