What are some best practices for storing data in MySQL databases to avoid excessive growth in size?

To avoid excessive growth in size when storing data in MySQL databases, it is important to normalize the database structure, use appropriate data types for columns, and regularly clean up old or unnecessary data.

// Example of normalizing the database structure
CREATE TABLE users (
    id INT PRIMARY KEY,
    name VARCHAR(50),
    email VARCHAR(100)
);

CREATE TABLE orders (
    id INT PRIMARY KEY,
    user_id INT,
    total_amount DECIMAL(10, 2),
    FOREIGN KEY (user_id) REFERENCES users(id)
);