[Note] [Entrypoint]: Creating database short_url_db
[Note] [Entrypoint]: Creating user dbuser
[Note] [Entrypoint]: Giving user dbuser access to schema short_url_db
[Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/0_init.sql
[Note] [Entrypoint]: Entrypoint script for MySQL Server 8.2.0-1.el8 started.
because their is no IF NOT EXISTS Clause why creating database in the SQL script file. An error raised because the short_url_db database is already created first hence the tables are not created.
Error Problem CREATE DATABASE short_url_db;
Error solved: CREATE DATABASE IF NOT EXISTS short_url_db;