Search This Blog

menjalankan mysql di linux

sebagian ketika menjalankan mysql di terminal linux
keluar kata "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"



solusi nya adalah ketikkan seperti gambar yagn dibawah ini:
#root@bt:/usr/sbin# service mysql start

maka hasilnya adalah

root@bt:/usr/sbin# service mysql start
mysql start/running, process 7162
root@bt:/usr/sbin#
seperti gambar di ===>


kemuadian jalankan mysql nya:

root@bt:/usr/sbin# mysql -u root -p
Enter password:
            

di pasword itu masukkan pasword  mysql,yang anda buat ketika install mysql



maka akan tampil seperti:
root@bt:/usr/sbin# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 5.1.66-0ubuntu0.10.04.2 (Ubuntu)

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 



nah makasih gan dah mw baca baca di blog saya,semoga infonya bermanfaat...



0 Response to "menjalankan mysql di linux"

Post a Comment