In case we need to install mysql server on ubuntu (18.04 LTS used as case), follow the instruction
- Install MySQL Server
- sudo apt-get update
- sudo apt-get install mysql-server
- Allow the remote access
- sudo ufw allow mysql
- Start MySQL Server
- sudo systemctl start mysql
- Set MySQL to launch at reboot
- sudo systemctl enable mysql
- Set MySQL password
- sudo /usr/bin/mysql -u root -p
- mysql> use mysql;
- mysql> UPDATE user SET authentication_string=PASSWORD('yourpassword') WHERE User='root';
- mysql> FLUSH PRIVILEGES;
Tidak ada komentar:
Posting Komentar