简体   繁体   English

Mysql Workbench特权,数据导入

[英]Mysql Workbench priveleges, data import

When I try to change the priveleges on a mysql db I get the following error: 当我尝试更改mysql数据库上的权限时,出现以下错误:

Please make sure the used account has rights to the MySQL grant tables. 请确保使用的帐户具有MySQL授权表的权限。 Error executing 'DESCRIBE mysql.db' 执行'DESCRIBE mysql.db'时出错

Is this also why it will not let me import tables in from another DB? 这也是为什么不允许我从另一个数据库导入表的原因吗? When i try I get the error: 当我尝试时出现错误:

Operation failed with exitcode 1 操作失败,退出代码为1

09:20:16 Restoring D:\\design and photos\\boo.com\\db dump\\070113.sql 09:20:16恢复D:\\ design和photos \\ boo.com \\ db dump \\ 070113.sql

Running: mysql.exe --defaults-extra-file="c:\\users\\darren\\appdata\\local\\temp\\tmpslubjs.cnf" --host=87.117.239.19 --user=boo8_yu52 --port=3306 --default-character-set=utf8 --comments < "D:\\design and photos\\boo.com\\db dump\\070113.sql" 运行:mysql.exe --defaults-extra-file =“ c:\\ users \\ darren \\ appdata \\ local \\ temp \\ tmpslubjs.cnf” --host = 87.117.239.19 --user = boo8_yu52 --port = 3306- default-character-set = utf8 --comments <“ D:\\ design and photos \\ boo.com \\ db dump \\ 070113.sql”

ERROR 1044 (42000) at line 1: Access denied for user 'boo8_yu52'@'%' to database ' boo8_6652' 第1行的错误1044(42000):用户'boo8_yu52'@'%'对数据库'boo8_6652'的访问被拒绝

It does however let me create tables manually. 但是,它确实允许我手动创建表。 Can't work it out at all. 根本无法解决。

make sure that the account you are using is granted with grant option and the account should have permissions on mysql database in which the db grant table exits 确保您使用的帐户被授予了Grant选项,并且该帐户应具有对db授予表已退出的mysql数据库的权限

or the best way is to assign the permission with the root account 或最好的方法是使用根帐户分配权限

see the link below may be useful for you 请参阅下面的链接可能对您有用

http://blog.loftninjas.org/2008/04/22/error-1044-42000-at-line-2-access-denied-for-user-root-to-database-db/ http://blog.loftninjas.org/2008/04/22/error-1044-42000-at-line-2-access-denied-for-user-root-to-database-db/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM