mysql恢复数据问题(有mb的)
我用的是ROOT用户 需要恢复3个库[root@webser ~]# /opt/mysql/bin/mysql -uroot -p tradesub </home/beinan/tradesub.sql
Enter password:
[root@webser ~]#
应该是恢复成功了 没报错
[root@webser ~]# /opt/mysql/bin/mysql -uroot -p yltdb </home/beinan/yltdb.sql
Enter password:
ERROR 1449 (HY000) at line 2884: There is no 'root'@'%' registered
[root@webser ~]#
这个就报错,我就没搞明白是啥问题
还有一个问题,我怎么才能更改root的远程登录权限,我在网上查了很久,照着做也没有成功,还请谁能把命令告诉我一下,谢谢了
转自linux板块[url=http://bbs.bitscn.com/144933]http://bbs.bitscn.com/144933[/url]--希望会的踊跃回答
去上面那个链接回答偶会加分的:D:
[[i] 本帖最后由 zhaojie78 于 2007-11-30 13:29 编辑 [/i]] 没学过
真不知道啊 进入数据库
mysql>grant all on *.* to 'root'@'%' identified by "yourpasswd"
mysql>flush privileges;
允许用户root从任何地方登陆本数据库。
是这个吧?
最近刚开始学,一起交流吧。
[[i] 本帖最后由 iamshiyu 于 2008-4-9 12:06 编辑 [/i]]
页:
[1]
