我说明一下吧。楼上几位大侠的建议,我都有考虑了。如下:C:\mysql\bin>mysql -u root -p Enter password:(我用初始的空密码,回车后,顺利进入了) Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 4.0.26-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.可是我运行下面的语句,试着修改root的密码时,就是不行。楼上的大侠提示说权限问题,我也知道,可是我不知如何改了。 C:\mysql\bin>mysqladmin -u root password yangb99 mysqladmin: unable to change password; error: 'Access denied for user: '@localho st' to database 'mysql''另外,我没有创建任何其他的用户。请大侠们再给些提示,谢谢了。
我再补充一下,不知道会不会和下面这个有关。从MySQL4.1 reference manual上看到的。C:\>c:\mysql\bin\mysqld --console Can't start server: Bind on TCP/IP port: No error 051026 16:28:08 Do you already have another mysqld server running on port: 3306 ? 051026 16:28:08 Aborting051026 16:28:08 c:\mysql\bin\mysqld: Shutdown Complete 看来,想速成是不行了。我这个笨鸟。嗨!
不好意思啊,windows版本的没有用过,下面的纯属参考。 mysql的安装目录中有没有 scripts 目录?如果有就执行里面的 mysql_install_db,重新建立初始化数据库,之前你可以把 data 目录全部删除。 或者,你干脆全部删除并重新安装。
Enter password: //这一句因为root密码为空,直接回车.然后就出现了如下错误
ERROR 1045: Access denied for user: 'root@localhost'(Using password:YES)
很奇怪,为什么会提示这样的问题.人品问题??呵呵.晕倒.
请大侠们给个提示把.谢谢了.
显示如下:Databasestest
为什么没有mysql??
可是我在mysql的data目录下有看到mysql和test的.越来越不懂了.
我的mysql版本是mysql4.0.26 --without install
你安装好mysql后,有没有给root设置密码?
你下载一个MySQL的手册看看,还是权限问题。
试试mysql -u root -p
如果不能行.那想想别的办法吧.
Enter password:(我用初始的空密码,回车后,顺利进入了)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.26-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.可是我运行下面的语句,试着修改root的密码时,就是不行。楼上的大侠提示说权限问题,我也知道,可是我不知如何改了。
C:\mysql\bin>mysqladmin -u root password yangb99
mysqladmin: unable to change password; error: 'Access denied for user: '@localho
st' to database 'mysql''另外,我没有创建任何其他的用户。请大侠们再给些提示,谢谢了。
Can't start server: Bind on TCP/IP port: No error
051026 16:28:08 Do you already have another mysqld server running on port: 3306
?
051026 16:28:08 Aborting051026 16:28:08 c:\mysql\bin\mysqld: Shutdown Complete
看来,想速成是不行了。我这个笨鸟。嗨!
mysql的安装目录中有没有 scripts 目录?如果有就执行里面的 mysql_install_db,重新建立初始化数据库,之前你可以把 data 目录全部删除。
或者,你干脆全部删除并重新安装。