ubuntu5 安装mysql 无法登录问题

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
magic1136
帖子: 94
注册时间: 2006-01-02 0:37
送出感谢: 0
接收感谢: 0

ubuntu5 安装mysql 无法登录问题

#1

帖子 magic1136 » 2006-04-20 5:25

cazool@ubuntu:~$ mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
cazool@ubuntu:~$ mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
cazool@ubuntu:~$ mysql -u root -p
Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
cazool@ubuntu:~$ mysqladmin -u root password db_user_password
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
cazool@ubuntu:~$



这是什么原因?
我安装之后并没有设置mysql的密码阿
luoqincan
帖子: 5
注册时间: 2006-09-22 15:36
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 luoqincan » 2006-10-02 1:24

没有权限,
用ROOT登录就可以
回复

回到 “数据库管理”