How to find out the mysql root password
One thing that tripped me up on a new install of MySQL and wondering why I couldn't get the default password to work and why even the reset methods where not working. Well turns out that on Ubuntu 18 the most recent version of MySQL server does not use password auth at all for the root user by default. So this means it doesn't matter what you set it to, it won't let you use it. It's expecting you to login from a privileged socket.
mysql -u root -pThis will not work, even if you are using the correct password.
Instead, you need to use:
sudo mysqlthat will work with out any password. then once you in you need type in
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Password you want to use';Bacaan terkait
Ventoy : Membuat USB Bootable Lebih Mudah dan Beda
Biasanya ketika kita ingin membuat USB bootable maka USB/drive yang akan kita gunakan perlu di format dan image yang digunakan perlu di extract ke dalam USB/drive te...
4MLinux : Distro Linux Ringan dengan Konsep 4M
4MLinux merupakan salah satu dari sekian distro linux ringan menggunakan desktop JWM. Dikembangkan berasal dari polandia dan saat ini versi major rilis nya sudah men...
Melakukan Benchmark Pada Website Menggunakan Apache
Apache lebih banyak dikenal sebagai web server. Namun sebenarnya apache juga memiliki tool yang tersedia untuk melakukan benchmark request pada website. Benchmark in...
Komentar (0)
Belum ada komentar. Jadilah yang pertama.
Tulis komentar
Komentar akan dimoderasi sebelum tampil.