最近在学习Ruby on Rails ,但是mysql 安装不上(见图)。。求高手。。
发表于 : 2011-04-07 15:20
$ mysql -uroot
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
$ mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
无法登录。。。。。有木有。。。。
$ mysqld_safe --user=root &
[1] 15276
$ 110407 15:18:20 mysqld_safe Logging to syslog.
110407 15:18:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
rm: 无法删除"/var/run/mysqld/mysqld.sock": 权限不够
rm: 无法删除"/var/lib/mysql/wonglend-laptop.pid": 权限不够
110407 15:18:21 mysqld_safe mysqld from pid file /var/lib/mysql/wonglend-laptop.pid ended
到这里只能按ctrl+c 退出。。。。呜呜!!!


mysqld_safe --user=mysql &
[1] 15978
root@wonglend-laptop:/home/wonglend# 110407 15:24:33 mysqld_safe Logging to syslog.
110407 15:24:33 mysqld_safe A mysqld process already exists