为什么mysql启动起来了,但是建不了库??

由 随风飘来 在 07-10-2003 17:15 发表:

为什么mysql启动起来了,但是建不了库??

[root@squid bin]# /etc/rc.d/init.d/mysql start

[root@squid bin]#

Starting mysqld daemon with databasesfrom /usr/local/mysql/data

[root@squid bin]# pwd

/usr/local/mysql/bin

[root@squid bin]# mysql

bash: mysql: command not found

请大家帮忙看一下。为什么能启动起来但是在相应的目录下确不能进入库?


由 eTony 在 07-10-2003 18:57 发表:


#/usr/local/mysql/bin/mysql


Seeking Freedom,pure Freedom!

http://211.92.88.40/~tony/

http://etony.blogone.net/


由 随风飘来 在 07-10-2003 20:40 发表:

按你的方法提示:

[root@squid bin]# /usr/local/mysql/bin/mysql

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

这知这是怎么回事


由 Snoopy 在 07-10-2003 20:57 发表:


我没加密码的时候,用mysql -p就出现你这个错误

然后 mysql可以啊,,,,!!!!


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


由 随风飘来 在 07-10-2003 22:32 发表:

加不上密码

老兄的意思是只要加密码就OK了?但是:

[root@squid bin]# mysqladmin -u root password

-bash: mysqladmin: command not found

不知为什么?但是明明在当前目录下有mysqladmin.

但用webmin能连上且能建表。


由 n0fe@r 在 07-11-2003 07:59 发表:


/usr/local/bin/mysql -uroot -p

默认root密码为空

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