简体   繁体   English

Mysql Workbench数据导出,具有完全特权的用户无权访问

[英]Mysql Workbench Data export, no access for user with full privileges

I am using MySQL Workbench to access a remote DB server from my desktop. 我正在使用MySQL Workbench从桌面访问远程数据库服务器。 The problem is that I can create and modify databases but not export a DB to a SQL file nor import to them from a SQL file on my computer. 问题是我可以创建和修改数据库,但不能将数据库导出到SQL文件,也不能从计算机上的SQL文件导入数据库。

When i look at the user privileges for the root user it has all check-boxes for "administrative roles" and "Global privileges" checked. 当我查看root用户的用户权限时,它已选中“管理角色”和“全局权限”的所有复选框。

When I am trying to import a local SQL file to my remote server I get a password prompt and I enter the correct password, but I constantly get error: 当我尝试将本地SQL文件导入到我的远程服务器时,出现密码提示,并输入正确的密码,但是不断出现错误:

15:36:24 Restoring G:\xxxxxx.sql

Running: mysql.exe --defaults-extra-file="c:\users\andreas\appdata\local\temp\tmp4_ji5c.cnf"  --host=xx.xx.xx.xx --user=root --port=3306 --default-character-set=utf8 --comments < "G:\\xxxxxxx.sql"

ERROR 1045 (28000): Access denied for user 'root'@'xxx.zz' (using password: YES)

Operation failed with exitcode 1

Any ideas? 有任何想法吗?

in my.cnf I had 0.0.0.0 set for "bind-address". 在my.cnf中,我为“绑定地址”设置了0.0.0.0。 Setting that value to the correct IP solved the problem. 将该值设置为正确的IP可解决此问题。

I think its weird that I managed to do everything else but import/export when bind-adress was set to 0.0.0.0.... 我认为奇怪的是,在将bind-adress设置为0.0.0.0时,除了导入/导出外,我还是做了其他所有事情。

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

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