ADVERTISEMENT
Google AdSense Slot (headerLeaderboard)

Set your Publisher ID in src/config/ads.ts to display live ads.

MySQL Relational Database Tutorial• 6 min read

Backups (mysqldump), User Grants & Security

Create crash-consistent backups with mysqldump, implement least-privilege user access, and harden server configurations.

The Principle of Least Privilege

Web applications should never connect using the root administrative account! Create a dedicated application user with access limited only to necessary tables.

Creating Restricted Application Database User
CREATE USER 'web_app'@'localhost' IDENTIFIED BY 'StrongPass#2026';

GRANT SELECT, INSERT, UPDATE, DELETE ON codexia_store.* TO 'web_app'@'localhost';
FLUSH PRIVILEGES;
ADVERTISEMENT
Google AdSense Slot (inContentBanner)

Set your Publisher ID in src/config/ads.ts to display live ads.

Test Yourself With Exercise

+15 XP

Which CLI tool is standard for creating complete SQL text dump backups of MySQL databases?