The user created a database called db_latihan_uts using MySQL. They then created a table called tb_user within that database to store user data, including a primary key field and fields for name, gender, address, and phone number. The user inserted a sample record into the tb_user table and verified it was added by selecting all records from the table.