1sudo apt update
2sudo apt install mysql-server
3sudo service mysql start
4sudo mysql_secure_installation
5sudo mysql -u root
6
7In mysql console:
8DROP USER 'root'@'localhost';
9CREATE USER 'root'@'%' IDENTIFIED BY 'YOURPASSWORD';
10GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
11FLUSH PRIVILEGES;
1sudo apt update
2sudo apt install mysql-server
3sudo mysql_secure_installation