2011-03-23 152 views
0

我已經在我的linux(suse)pc上安裝了xampp。並開始LAMPP用命令mysql錯字錯誤

/opt/lampp/lampp start

它說:

Starting XAMPP for Linux 1.7.4... 
XAMPP: Starting Apache with SSL (and PHP5)... 
XAMPP: Starting MySQL... 
XAMPP: Starting ProFTPD... 
XAMPP for Linux started. 

,但是當我嘗試連接到數據庫使用

mysql -u root -p

它給了我以下錯誤:

If 'mysql' is not a typo you can use command-not-found to lookup the package that contains it, like this: 
    cnf mysql 

可以有人告訴我如何解決這個錯誤。請

+0

MySQL命令行客戶端是否安裝? 'whereis mysql'給了什麼? – Konerak 2011-03-23 09:52:29

回答

0

其實,當u安裝有默認的密碼設置爲MySQL用戶root,因此u必須更改密碼或使用密碼連接你的mysql

參考

Linux with mysql