-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update petunjuk untuk konfigurasi mariadb
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Lakukan ini setelah update atau install lampp webserver | ||
|
||
<ul> | ||
<li> | ||
Memulai database tanpa memuat tabel hibah atau mengaktifkan jaringan: | ||
|
||
$ mysqld_safe --skip-grant-tables --skip-networking & | ||
|
||
</li> | ||
<li> | ||
Sekarang Anda dapat terhubung ke database sebagai pengguna root, yang seharusnya tidak meminta kata sandi. | ||
|
||
$ mysql -u root | ||
|
||
</li> | ||
<li> | ||
Mengubah Kata Sandi Root | ||
|
||
$ mysql> FLUSH PRIVILEGES; | ||
|
||
</li> | ||
<li> | ||
Untuk MySQL 5.7.6 dan yang lebih baru serta MariaDB 10.1.20 dan yang lebih baru , gunakan perintah berikut: | ||
|
||
$ mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; | ||
|
||
</li> | ||
<li> | ||
Untuk MySQL 5.7.5 dan yang lebih lama serta MariaDB 10.1.20 dan yang lebih lama , gunakan: | ||
|
||
$ mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password'); | ||
|
||
</li> | ||
</ul> |