MySQL adalah perangkat lunak open source untuk Relational Database Management System. MySQL merupakan salah satu dari paket aplikasi server untuk website yang sering disebut sebagai LAMP (Linux Apache MySQL PHP) server.
0.Pasang Repository
Secara default versi MySQL yang tersedia di Ubuntu 18.04 adalah MySQL 5.7.
Agar bisa menginstalasi MySQL 8 di Ubuntu 18.04 terlebih dahulu memasang repository MySQL.
Mengubah password root, jawab n jika tidak ingin mengubahnya.
1
2
Estimated strength of the password:0
Change the password forroot?((Pressy|YforYes,any other key forNo):n
Hapus user anonymous, jawab y.
1
2
3
By default,aMySQL installation has an anonymous user,allowing anyone tolog into MySQL without having tohaveauser account created forthem.Thisisintended only fortesting,andtomake the installation goabit smoother.You should remove them before moving intoaproduction environment.
Remove anonymous users?(Pressy|YforYes,any other key forNo):y
Tidak mengijinkan root untuk melakukan remote database, jawab y.
1
2
3
Normally,root should only be allowed toconnect from'localhost'.Thisensures that someone cannot guess at the root password from the network.
Disallow root login remotely?(Pressy|YforYes,any other key forNo):y
Hapus database test, jawab y.
1
2
3
By default,MySQL comes withadatabase named'test'that anyone can access.Thisisalso intended only fortesting,andshould be removed before moving intoaproduction environment.
Remove test database andaccess toit?(Pressy|YforYes,any other key forNo):y
Reload tabel privileges, jawab y.
1
2
3
Reloading the privilege tables will ensure that all changes made so far will take effect immediately.
Reload privilege tables now?(Pressy|YforYes,any other key forNo):y
Tidak ada komentar:
Posting Komentar