2011-03-23 150 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