VPS侦探论坛

 找回密码
 注册
查看: 5367|回复: 1

ERROR 1045 (28000): Access denied

[复制链接]
发表于 2012-1-7 20:21:48 | 显示全部楼层 |阅读模式

首先灰常感谢军哥的奉献。让我们小菜得以玩得转linux。但是现安装0.8版本报如下错误:

centOS 5
lnmp 0.8
screen下安装的
openVZ


现phpmyadmin下只能用ROOT访问,其它账户一律1045错误;安装网站也只能用ROOT账户才能正常运行;
在SSH下访问mysql就报错
[root@jakc ~]# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

之前重装过几次,前几次也因为安装pure-ftpd时输入的非mysql ROOT,导致FTP亦无法使用;

实在不想再重装了,3G的压缩包备份来回导了几次。。。。筋疲力尽了

事情就是这样,蛮烦解决一下。谢谢了;.另祝各位新年快乐!




美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-1-7 20:31:34 | 显示全部楼层

一个小失误。。。。



[root@jakc bin]# mysql -u root -p密码   //-p参数后面不带空格,直接输入密码、、、
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 467
Server version: 5.1.60-log Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 04:03 , Processed in 0.025461 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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