LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 796|回复: 1

成功启动mysql,但输入命令mysql时却出现错误,如何解决?

[复制链接]
发表于 2007-7-6 19:34:41 | 显示全部楼层 |阅读模式
[root@localhost ~]# /etc/init.d/mysqld start
启动 MySQL:                                               [确定]
[root@localhost ~]# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
 楼主| 发表于 2007-7-6 19:47:49 | 显示全部楼层
已解决,原来是命令输错了[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 73
Server version: 5.0.37 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> q
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表