Once the installation is complete, you will then initialize data directory and create the system tables using the following command

sudo mysql_install_db

The next step is to run a security script and modify default settings

sudo mysql_secure_installation

It will first ask you to enter the password you entered above and then it will ask you if you want to change that password. If you’re happy with the password, just type n and then hit enter on the keyboard.