Difference between revisions of "Instalasi MySQL"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
Instalasi [[MySQL]] di [[Ubuntu]] relatif sederhana hanya menggunakan perintah, | Instalasi [[MySQL]] di [[Ubuntu]] relatif sederhana hanya menggunakan perintah, | ||
− | apt-get install mysql-server | + | apt-get update |
+ | apt-get install mysql-server mysql-client | ||
+ | |||
+ | Biasanya akan di tanya root password. | ||
+ | Jika kita masih belajar dapat memasukan root password | ||
+ | |||
+ | 123456 | ||
Untuk menjalankan [[MySQL Server]] cukup menggunakan perintah | Untuk menjalankan [[MySQL Server]] cukup menggunakan perintah | ||
Line 7: | Line 13: | ||
/etc/init.d/mysql restart | /etc/init.d/mysql restart | ||
− | + | Setup database | |
− | + | mysql -u root -p | |
− | + | Enter password: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
mysql> create database databasekita; | mysql> create database databasekita; | ||
mysql> grant INSERT,SELECT on root.* to user@localhost; | mysql> grant INSERT,SELECT on root.* to user@localhost; |
Revision as of 17:41, 7 June 2015
Instalasi MySQL di Ubuntu relatif sederhana hanya menggunakan perintah,
apt-get update apt-get install mysql-server mysql-client
Biasanya akan di tanya root password. Jika kita masih belajar dapat memasukan root password
123456
Untuk menjalankan MySQL Server cukup menggunakan perintah
/etc/init.d/mysql restart
Setup database
mysql -u root -p Enter password:
mysql> create database databasekita; mysql> grant INSERT,SELECT on root.* to user@localhost; mysql> SET PASSWORD FOR user@localhost=PASSWORD('passworduser'); mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on databasekita.* to user@localhost; mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on databasekita.* to user; mysql> exit
Referensi
- http://www.mysqltutorial.org/
- http://dev.mysql.com/
- http://ubuntu.flowconsult.at/en/mysql-set-change-reset-root-password/ - Reset Password MySQL