使用的是镜像市场 Java运行环境(Ubuntu 64位 | JDK1.7) 集成软件:JDK1.7.0、Nginx1.6.0、MySQL5.5.37、Tomcat7.0.54、vsFTPd2.3.5
mysql服务是可以启动的
以下是一些命令出现的错误
root@iZ23qm9j00mZ:/# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
root@iZ23qm9j00mZ:/# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
跳过权限的方法
root@iZ23qm9j00mZ:/# service mysqld stop
Shutting down MySQL
. *
root@iZ23qm9j00mZ:/# /alidata/server/mysql-5.5.37/bin/mysqld_safe --skip-grant-tables&
[1] 31087
root@iZ23qm9j00mZ:/# 141202 18:40:28 mysqld_safe Logging to '/alidata/log/mysql/error.log'.
141202 18:40:28 mysqld_safe The file /usr/local/mysql/bin/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
仍然出现以上登录错误
root@iZ23qm9j00mZ:~# mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
root@iZ23qm9j00mZ:~# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
错误原因主要是
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
第一主要是密码不正确
第二个和第三个无法解决
另外百度经验 没有成功 百度经验地址有于等级在这里就不写了
在这里求助大家了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。