Skip to main content

How to Fix ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

This Articels is about Fix Problem connecting Mysql.

Relate search : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Pertanyaan :  I've been install mysql in my linux operating system, but when I run, its going error. how can I fix it?

Mysql adalah salah satu DBMS yang paling banyak di gunakan, baik itu untuk lingkungan Desktop , mobile ataupun WEB, di lingkungan web database mysql adalah DBMS yang paling banyak di gunakan, Query-Query yang ada di mysql tidak semuanya berbeda, sebagian besar query yang di gunakan sama seperti DBMS yang lain. PHPmyadmin adalah aplication database yang di gunakan untuk mengatur mysql dengan GUI version.

Mysql bersifat multiplatform, jadi dapat di gunakan untuk banyak operating system dan bahasa pemrograman, pada tips and trick kali ini, saya akan membahas tentang problem yang terjadi saat kita menjalankan mysql via terminal di linux. berikut error yang muncul : 

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


sudah beberapa hari saya mendapatkan error ini, tapi saya hiraukan karna masih belom penting, tapi kemaren waktu praktikum database, akhirnya di butuhkan juga. dan saya terpaksa untuk mencoba memperbaikinya, dapet satu jam googling akhirnya dapet juga dari website stackoverflow, ada yang bertanya dan ada yang jawab juga, saya coba satu-satu akhirnya dapet satu yang berhasil :D  berikut saya praktekkan cara memperbaikinya :

1. Masuk ke user root : ketik $ sudo su 
2. setelah masuk user root, sekarang ketik # mysql -u root -p
  • apabila terdapat error > ERROR 2002 (HY000) : Can't connect to local Mysql server bla bla bla : itu berarti mysql anda masih belum berjalan. untuk menjalankan nya ketik : # service mysql start
  • apabila terdapat error > ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) : itu berarti error karna password atau user yang kita masukkan salah.
3. berikut adalah tampilan jejak beberapa langkah di atas : 

  • setelah itu ketik : # dpkg-reconfigure mysql-server-5.5


4. Setelah perintah di atas di jalankan, maka akan keluar tampilan seperti berikut di terminal anda. terdapat perintah untuk mengisikan password baru untuk user root , isikan password sesuai yang anda inginkan. setelah itu tekan arah bawah di keyboard untuk masuk ke tombol <ok>, lalu [enter].


5. ketikkan password yang sama seperti yang awal tadi, lalu pilih <ok>




6. tunggu proccess pemberhentian mysql service sampai selesai.



 7. jalankan mysql : ketik # service mysql start



8. dan akhirnya kita akan ke tahap untuk masuk mysql : ketik # mysql -u root -p  lalu enter > ketikkan password baru anda, lalu enter lagi. apabila berhasil maka anda akan masuk ke lingkungan mysql DBMS seperti gambar di bawah. Conratulation !!! :)



Mau pasang iklan di blog?. klik Disini

Sekian artikel saya, Semoga Bermanfaat. Wassalamualaikum Wr Wb

Stay fools to Stay Hungry
NB : Artikel ini di peruntukkan untuk pendidikan semata. hal-hal negatif yang di lakukan oleh pengguna tutorial , bukan tanggung jawab penulis.

Popular posts from this blog

The Advantage of Using HTTP Default Authorization Scheme #DigitalSecurity

pixabay.com Hello Everyone, This day I would like to introduce you to the default header for authorization in HTTP. HTTP auth scheme is a guide or standardization scheme for the authorization header in the HTTP protocol. this standard is using key Authorization in the header and followed by a value that usually filled by key or token. for example : Authorization : <type> <key/token> this standard is the solution of the key header for authorization that really random was provided by developers to build an authorization header for their application, in my experience, developers used to "token" for their key in the header that usually followed by the hash value. the random key makes developers using more time for writing code for getting header key and validating the value which is you could use the library and focus on writing the logic of your application. Depend on Mozilla site , HTTP auth scheme divided by 4 types, such as : Basic  (see  RF

Typer shark Deluxe free full crack

Typer shark Deluxe : software yang akan membantu kita untuk belajar mengetik keyboard dengan cara 10jari, untuk agan2 yang baru belajar komputer pasti teknik pertama yang dilakukan adalah dengan 11jari (kanan 1 + kiri 1 = 11)hahahaha, softaware ini sangat menarik, karna kita belajar 10jari dengan bermain game.. n gamenya interaktif,,, pkoqnya yang tadinya mengetik 11jari, dalam waktu seminggu pasti bisa lancar 10jari... syaratnya harus tekunn...  kalo agan mau ngunduh silahkan : Download screenshot:

Automatic API Documentation Swagger in Golang #GolangDev

pixabay.com In this article, I'll explain how to generate an API blueprint instantly using SwagGo in Golang. API blueprint is a document that contains a bunch of API endpoints, its slickly same as documentation but less description, it's allow another programmer to read and see all the available endpoint and try it out with sandbox feature. Swagger is one of the most used API blueprints right now, it's available in free but limited usage. if you wanna use the free credit, you need to understand YAML notation, you can read the example notation in swagger official documentation. but again, it's really hard and takes an expensive time to arranges all the notation to achieve a good API blueprint. fortunately, there are tools in Golang that allow us to generate the YAML notation and automatically generate the blueprint page with only using markup notation, and it's FREE unlimited for self-host, insane right? SwagGo tools are available here , the documentation is very cl