红联Linux论坛 1000部Linux教程免费下载 

查看完整版本: mysql 不能改密码

yihao530 2008-11-6 21:15

 





mysql 不能改密码

刚安装的mysql 数据库 想把mysql的密码改为4892645  操作如下
#hostname
显示的主机名是yihao
# service  mysqld start

#/usr/bin/mysqladmin -u root -h yihao password  '4892645'
然后就报错 报错的内容是
/usr/bin/mysqladmin: connect to server at 'yihao' failed
error : 'unkonown MYsql server host 'yihao'(2)'
Check that mysqld is running on yihao and that the port is 3306
you can check this by doing 'telnet yihao 3306'
请问是什么原因

lichujing 2008-11-30 11:55

 





换成mysql -u 用户名 -p回车就提示你输入密码吧再好好试试注意看懂英文提示

lichujing 2008-11-30 12:11

 





不好意思完整的是mysql -u 用户名 -p oldpasswrld newpasswd再回车
看好英文提示按步来就可以了

sqshnoi 2009-1-2 23:08

 





认识更多论坛朋友

大家来支持我们的朋友
喜欢结交

论坛朋友
页: [1]
查看完整版本: mysql 不能改密码