一星期了我的MYsql 出错的问题 还没搞定。请高手指教!!
我把FC1的mysql升级到4.0以后出问题了。原来ROOT是空的密码,现在进不去了。你问我要怎么办?
我是用RPM包安装的。
能不能告诉我如何把它删除?或者清空现有的ROOT密码。
[email protected]
========================情况如下==================================
# /usr/bin/mysql_install_db
Installing all prepared tables
040705 17:45:14 Warning: Asked for 196608 thread stack, but got 126976
040705 17:45:14 /usr/sbin/mysqld: Shutdown Complete
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h it password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd / ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
# /usr/bin/mysqld_safe &
7360
# Starting mysqld daemon with databases from /var/lib/mysql
040705 17:46:02 mysqld ended
+ Done /usr/bin/mysqld_safe
# netstat -a |grep mysql
tcp 0 0 it:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 1678471 /var/lib/mysql/mysql.sock
# mysqladmin --version
mysqladmin Ver 8.40 Distrib 4.0.20, for pc-linux on i686
# mysqladmin -u root password '123456'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
# cat /var/lib/mysql/mysql.sock
cat: /var/lib/mysql/mysql.sock: 没有那个文件或目录 !!!mysql升级到4.0!!!
为什么不看 mysql reference manual
2.5.3 Upgrading from Version 3.23 to 4.0
http://dev.mysql.com/doc/mysql/en/Upgrading-from-3.23.html 那我现在该怎么解决呢????没有密码什么事也干不了!!! 你的 MySQL 现在不能正常启动?!
页:
[1]