KavehSadeghiGarmaroudi
7/20/2019 - 9:16 AM

install and uninstall mysql (set root password)

sudo apt-get remove --purge mysql-server mysql-client mysql-common mysql-shell -y
sudo apt-get autoremove -y
sudo apt-get autoclean

rm -rf /etc/mysql

sudo find / -iname 'mysql*' -exec rm -rf {} \;

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'sys';