/usr/bin/mysqladmin -u root password 'hui' 报错的解决
来源:互联网 发布:怎么看淘宝等级 编辑:程序博客网 时间:2024/06/18 15:48
redhat as 4,使用rpm包安装完mysql的server 跟client后执行以下命令出错。
[root@ftp etc]# /usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
提示 以上错误时执行
/usr/local/mysql/bin/mysqld_safe & service mysql start 即可。
(如果你的mysql目录没有安装在/usr/local/mysql下,则执行/usr/bin/mysqld_safe & service mysql start即可)
使用netstat -na查看,发现mysql的3306端口已经启动了
[root@ftp local]# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32771 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:627 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 232 ::ffff:222.194.76.37:22 ::ffff:123.233.213.223:1887 ESTABLISHED
udp 0 0 0.0.0.0:1024 0.0.0.0:*
udp 0 0 0.0.0.0:621 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:624 0.0.0.0:*
- /usr/bin/mysqladmin -u root password 'hui' 报错的解决
- Grant的时候报错的解决:Access denied for user 'root'@'localhost' (using password: YES)
- Grant的时候报错的解决:Access denied for user 'root'@'localhost' (using password: YES)
- 解决centos6上python升级混乱导致yum报错 -bash: /usr/bin/yum: /usr/bin/python
- 新安装mysql mysqladmin -u root password 'newpassword' 错误Access denied for user...
- 新安装mysql mysqladmin -u root password 'newpassword' 错误Access denied for user
- 如何解决xhprof的报错failed to shell execute cmd=" "/usr/bin/dot" -Tpng" proc_open() has been ...
- 使用:/usr/bin/phpize 报错
- MySQL root密码重置报错:mysqladmin: connect to server at 'localhost' failed的解决方案!
- MySQL root密码重置报错:mysqladmin: connect to server at 'localhost' failed的解决方案!
- failed: Access denied for user 'root'@'localhost' (using password: YES) at /usr/bin/innobackupex lin
- Ubuntu解决gcc编译报错/usr/bin/ld: cannot find -lstdc++
- 解决Xcode报错:Command /usr/bin/codesign failed with exit code 1
- usr/bin/mysqladmin: refresh failed; error: 'Unknown error'
- MySQL报错Couldn’t find MySQL manager (/usr/bin/mysqlmanager) or server (/usr/bin/mysqld_safe)
- ubuntu make报错:“/usr/bin/ld catnot find crt1”,“/usr/bin/ld catnot find lXXX”
- MySQL报错Couldn’t find MySQL manager (/usr/bin/mysqlmanager) or server (/usr/bin/mysqld_safe)
- hombrew安装composer报错 /usr/bin occurs before /usr/local/bin
- Log4j自定义Appender介绍
- Jquery 切换不同图片
- 兔子产子与fibanacii序列
- Linux mount 挂载命令
- linux 清理缓存
- /usr/bin/mysqladmin -u root password 'hui' 报错的解决
- iOS应用软件开发基础——第二课_Mac/iOS操作系统构架
- [走过的路]联想时光——软实力如何硬起来
- 264-国王的魔镜
- solr3和solr4区别
- Samsung GT-P5100刷andorid 4.3
- 字符设备驱动学习笔记--点灯
- 安卓版微信内置浏览器,<a href="tel:电话号码"></a> 这个链接失效,不能跳到拨号界面?
- ios即时通讯客户端开发之-mac上安装MySQL