看看我的mysql怎么了?

由 pumpkin 在 06-03-2004 21:16 发表:

看看我的mysql怎么了?

我刚装好的时候是一切都正常的,后来我下了一个留言版放了进去,把数据库放在mysql里边,然后我去测试,一直说连接不上mysql,我就把那些东西都删掉了,再去登陆mysql就这样了:mysqladmin: connect to server at 'localhost' failed

error: 'Access denied for user: 'root@localhost' (Using password: NO)'

加用户root也是这样,我又重装了mysql,把用户下的.mysql也删了,但还是这样,高手帮我,是怎么回事啊??

还是啊,我想建一个用户,专门用来在网页中来连接mysql数据库,这个用户应该怎么加啊?谢谢了先!


日本人和狗禁止浏览!!

虽然我的电脑被我卖了,但她将永远活在我的心中~~~~

my msn:[email protected]

欢迎大家来我的论坛,刚刚开张的:

http://linuxqa.go.3322.org


由 Snoopy 在 06-03-2004 21:21 发表:


安装不正确,或是根本还没启动,

是as3系统吗 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 pumpkin 在 06-03-2004 21:29 发表:


是rh9,肯定不是安装的问题,我刚安装好的时候是一切都正常的,后来才这样的,他好象是一直用个用户名root@localhost去访问,不知道怎么会这样,呵呵


日本人和狗禁止浏览!!

虽然我的电脑被我卖了,但她将永远活在我的心中~~~~

my msn:[email protected]

欢迎大家来我的论坛,刚刚开张的:

http://linuxqa.go.3322.org


由 Cry 在 06-04-2004 09:13 发表:


引用北南南北大哥的一段话,首先你得找到你的mysqladmin文件,在添加用户进去

> quote: > > * * * > > 1]如何创建mysqld数据库的管理用户??
>
>
>
> 数据库安装好后,我们应该为mysql数据库创建一个管理帐号。要把root用户设置为管理员,我们应该运行下面的命令;
>
>
>
> [root@linuxsir01 root]# /opt/mysql/bin/mysqladmin -u root password 123456
>
> [root@linuxsir01 root]#
>
>
>
> 通过上面的命令,我们可以知道,mysql数据库的管理员是root,密码是123456。
>
>
>
> 2]如何进入mysql数据库?以mysql数据库管理员root,密码为123456为例;
>
>
>
> [root@linuxsir01 root]#/opt/mysql/bin/mysql -uroot -p123456
>
>
>
> 输出上面的命令后,出现的是如下的提示;
>
>
>
> Welcome to the MySQL monitor. Commands end with ; or \g.
>

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus