简体   繁体   English

phpMyAdmin/MySQL 导出用户/权限以供以后导入

[英]phpMyAdmin/MySQL export users/priviledges for later import

Is there a way to export priviledges/users out of phpMyAdmin version 3.3.9?有没有办法从 phpMyAdmin 版本 3.3.9 中导出权限/用户? And yes, in such format that later those could be imported into a new installation.是的,以这样的格式,以后可以将它们导入到新的安装中。

It would be good if database relations would be kept and so on.如果能保持数据库关系等等就好了。

If phpMyAdmin cannot handle it, MySQL command line solution will work too.如果 phpMyAdmin 无法处理,MySQL 命令行解决方案也可以。

Thanks in advance!提前致谢!

Basically you want to dump some tables from mysql database, like columns_priv , db , tables_priv and user基本上你想从mysql数据库中转储一些表,比如columns_privdbtables_privuser

As far as I remember phpmyadmin have configuration option to hide some databases, but you can access it by typing ?db=mysql in url.据我记得 phpmyadmin 有隐藏某些数据库的配置选项,但是您可以通过在 url 中键入?db=mysql来访问它。

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

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