当前位置:首页 >> 

MYSQL4升级MYSQL5的问题

来源: 本站原创 字体:[ ] 我要投稿

   这两天升级MYSQL后,当访问系统权限表时,出警告,说需要使用mysql_fix_privilege_tables来升级。查了一下网上的信息,有很多人都在问这个脚本文件在哪里啊?等等。其实这个脚本本身就是命令了。可以直接执行。   这个命令默认使用root用户,但是有很多系统root帐号已经被删除了。就要使用参数了。具体的如下: 引用 mysql_fix_privilege_tables --user=aaa --verbose --password=123   我不知道别人的能不能成功,总之我运行上面的命令总是报错。 引用 This script updates all the mysql privilege tables to be usable by the current version of MySQL Got a failure from command: cat /usr/local/share/mysql/mysql_fix_privilege_tables.sql | /usr/local/bin/mysql --no-defaults --force --user=root --host=localhost --database=mysql Please check the above output and try again. Running the script with the --verbose option may give you some information of what went wrong. If you get an 'Access denied' error, you should run this script again and give the MySQL root user password as an argument with the --password= option   后来研究了一下手册,只要用下面的命令就可以轻松搞定。还让我浪费2小时。希望大家以后不会犯我同样的错误了。 引用 mysql_upgrade --user=aaa --password

上一页:升级到MySQL 5.0.17一定遇到的四个问题
下一 页:mysql4数据导入mysql5乱码问题解决办法
关于我们 - 网 站地图 - 友情连接 - 登陆投稿 - 版权声明 - 广告服务 - 联系我们 - 留言本
Copyright © 2008-2009 Www.999net.Com All Rights Reserved
E-mail:WebMaster@999net.com
Powered BY 中国站长网 - 草根站长资讯信息中心,打造中国最优秀站长网