java环境-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

java环境

lc201315 2015-01-08 14:57:49 8170

使用的是镜像市场 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)
第一主要是密码不正确
第二个和第三个无法解决


另外百度经验 没有成功 百度经验地址有于等级在这里就不写了


云服务器登录 云服务器设置
分享到
取消 提交回答
全部回答(0)
数据库
使用钉钉扫一扫加入圈子
+ 订阅

分享数据库前沿,解构实战干货,推动数据库技术变革

相似问题
最新问题