Shell/Bash: setup mysql ubuntu Example

By

Shell/Bash Example: This is the "setup mysql ubuntu" Example. compiled from many sources on the internet by SimpleTutorials.org

install mysql ubuntu

sudo apt install mysql-server

start mysql server linux terminal

sudo /etc/init.d/mysql start
or 
systemctl start mysql.service

how to install mysql ubuntu

sudo apt update
sudo apt install mysql-server
sudo service mysql start
sudo mysql_secure_installation
sudo mysql -u root 

In mysql console:
DROP USER 'root'@'localhost';
CREATE USER 'root'@'%' IDENTIFIED BY 'YOURPASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

setup mysql ubuntu

sudo apt install mysql-server
sudo mysql_secure_installation utility

install mysql client ubuntu

apt-get install mysql-client

install mysql in ubuntu

systemctl status mysql.service



* Summary: This "setup mysql ubuntu" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others