error: 'Access denied for user: 'root@localhost' (Using password: NO)':

Beberapa waktu yang lalu saya mencoba menginstall mysql di server ubuntu saya..

kurang lebih begini syntax installasinya :

———————————————————————————-

apt-get install mysql-server-5.0 mysql-client-5.0

———————————————————————————-

dan setelah proses installasi selesai, saya mencoba masuk ke dalam mysql saya dengan perintah :

———————————————————————————-

mysql

———————————————————————————-

tapi apa yang terjadi bung..kira-kira seperti ini :

———————————————————————————-

error: ‘Access denied for user: ‘root@localhost’ (Using password: NO)’:

———————————————————————————-

 setelah googling berlama-lama dan tidak menemukan jawabannya, ya saya uninstall aja deh..setelah itu melakukan proses installasi seperti diatas. Dan ternyata pertama-tama harus diset dulu passwordnya dengan perintah :

———————————————————————————-

 mysqladmin u root -p

———————————————————————————

 setelah itu anda akan ditanyakan passsword apa yang akan anda isikan :

———————————————————————————-

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 2
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.

mysql>

———————————————————————————-

 

beres deh…

lanjut ke phpmyadmin ah..

1 Comment »

The URI to TrackBack this entry is: http://fiq.blogsome.com/2009/02/28/error-access-denied-for-user-rootlocalhost-using-password-no/trackback/

  1. itu biasanya login root salah
    reset saja password root mysql nya

    Comment by hamkanen — April 18, 2009 @ 12:20 pm

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>