简体   繁体   English

MySQL数据传输/更新到另一个数据库

[英]MySQL data transfer/update to another database

I have a forum which is here or http://neue.st/index.php 我有一个论坛在这里或http://neue.st/index.php

and I want to transfer the data from that forum to a new forum in a different directory http://neue.st/forums 我想将数据从该论坛转移到另一个目录http://neue.st/forums中的新论坛

I also only want to have select pieces of data to be transfered such as users, posts, topics, forums but not things like themes & mods 我也只希望选择要传输的数据,例如用户,帖子,主题,论坛,但不希望传输主题和模组等内容

I am doing this because I kinda of screwed up the data for mods & themes for the original forum & have no idea how to reverse it because I forgot to do the backuping 我这样做是因为我有点搞砸了原始论坛的mods和主题的数据,并且不知道如何扭转它,因为我忘记了进行备份

Is there anyway to do this with phpmyadmin 无论如何有用phpmyadmin做到这一点

A good tool to use... but not absolutely necessary is PMA ( phpMyAdmin ). PMA( phpMyAdmin )是一个很好用的工具,但不是绝对必要的。 You should log in, click on the database you want to export data from and then click the export button. 您应该登录,单击要从中导出数据的数据库,然后单击导出按钮。

在此处输入图片说明

You can see there is a "custom" choice, upon selecting that you will be presented with more options including the ability to choose which tables you need to export. 您会看到有一个“自定义”选项,选择后将为您提供更多选项,包括选择需要导出的表的能力。 After that, head on over to your other database and import the SQL file that was generated/downloaded and happy days. 之后,转到您的其他数据库,并导入生成/下载的SQL文件以及快乐的日子。

您可以使用SQLYog社区版,很容易选择要导出的数据。

If you download the Support toolkit from phpBB you are able to 'clean' the database of all non standard tables and rows (ie things added by MODs), leaving you with a clean database. 如果您从phpBB下载Support toolkit ,则可以“清理”所有非标准表和行的数据库(即MOD添加的内容),从而为您保留干净的数据库。

For themes that you no longer need, you can delete and uninstall these via your Admin control panel before removing them from your server. 对于不再需要的主题,您可以通过“管理”控制面板将其删除并卸载,然后再将其从服务器中删除。

If you just use 'selected' parts of your database then chances are it won't work properly because there are so many relationships between the different tables. 如果仅使用数据库的“选定”部分,则由于不同表之间的关系太多,因此可能无法正常工作。

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

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