Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #3559640
Exporting tables
Closed

Comments

  • Ricardo Zamora started the conversation

    Hi,
    I have many tables and graphics on one site and want to export them to another. Is it possible? How can I do it?
    Thanks
    Ricardo

  •  1,692
    Miloš replied

    Hello,

    When you are moving on live site from local or stage site (or vice-versa) we can suggest using Plugin Duplicator. We use it and it's working fine because it will transfer all the files and also the tables to the database. 

    Other than cloning the site, another option would be to copy all database tables (wp_wpdatatable_#) along with tables wp_wpdatatables, wp_wpdatacharts, wp_wpdatatables_rows and wp_wpdatatables_columns. Then, in wp_options table, you would also need to export the following option_names:

    • wdtPreventDeletingTables
    • wdtUseSeparateCon
    • wdtSeparateCon
    • wdtTimepickerRange
    • wdtTimeFormat
    • wdtTabletWidth
    • wdtTablesPerPage
    • wdtSumFunctionsLabel
    • wdtRenderFilter
    • wdtRenderCharts
    • wdtIncludeBootstrap
    • wdtIncludeBootstrapBackEnd
    • wdtPreventDeletingTables
    • wdtParseShortcodes
    • wdtNumbersAlign
    • wdtBorderRemoval
    • wdtBorderRemovalHeader
    • wdtNumberFormat
    • wdtMobileWidth
    • wdtMinifiedJs
    • wdtMinFunctionsLabel
    • wdtMaxFunctionsLabel
    • wdtLeftOffset
    • wdtTopOffset
    • wdtInterfaceLanguage
    • wdtGeneratedTablesCount
    • wdtFontColorSettings
    • wdtDecimalPlaces
    • wdtCSVDelimiter
    • wdtDateFormat
    • wdtCustomJs
    • wdtCustomCss
    • wdtBaseSkin
    • wdtAvgFunctionsLabel
    • wdtInstallDate
    • wdtRatingDiv
    • wdtMDNewsDiv
    • wdtTempFutureDate

    It is rather cumbersome to do all this, but unfortunately at the moment, it's the only way. 

    Important to note, for tables linked to an existing data source, you would need to change the file path, because at the moment the file path depends on the domain, so if you change the domain, the URL to the file will also have to be changed.

    Our developers will be working on adding an easier solution to export everything, but we can't say an ETA on this.

    - There are also certain export functionalities, to export individual tables using Table Tools.

    - If you also need to switch domains;

     In our store you can go to "My Licenses" and click on the "Manage Domains" button:

    8694120960.png

    From there, you will be able to deactivate the old domain (while it's still active), and then simply activate the new domain in wpDataTables settings/Activation, once you move the site.

    I hope that helps. 

    Let me know if you have any additional questions about that.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Ricardo Zamora replied

    Hi Miloš,
    I followed your instructions. Thanks for the information.
    I am using a separate connection. It must be created, although I copied the values in the option_name 'wdtSeparateCon'.
    Nevertheless, it does not work. The tables are created but appear as "Unknown Connection". I cannot see any option to reconnect them. What am I missing?

    In your list, wdtPreventDeletingTables is duplicated. It is an error making the list, no problem. Instead, if you wanted to include a different one, I am missing one of the values. Could you please confirm it?

    The ID value of the option_id field in wp_options remains the number of the original table. Is it correct? Does it have any impact?

    As I had already installed the plugin, most of the option_names already existed, and I did not touch them. I wonder if there is a difference with the links that could explain the previous issues.

    Waiting for the next steps.
    All the best
    Ricardo

  •  1,692
    Miloš replied


    Hi Ricardo,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    -

    1. If i understand, you do not wish to move/migrate the entire cloned Site, but you are just trying to manually copy only our Plugin's Data to the other Site?

    2. You use a Separate DB connection for your SQL Query Tables, if i understood.

    Is it exactly the same DB Connection as you were using on your 'old Site' or do you need to modify the SQL DB Connection parameters and a different Connection Name?


    If you need to change the DB Connection, but your old SQL Tables still 'memorized' the old Connection details;

    Here is what you can try.


    For each table, during creation we have to manually select the DB connection from the dropdown;

    and the only way to change that after the tables were already made by our plugin,

    is to go in the database where your WordPress is,

    there find our plugin's database table named 'wp_wpdatatables'.

    ( the wp_  is the default WordPress Database table prefix,   on your site's database that table prefix might be different, but it should be easy to recognise, all tables would have the same DB prefix,

    so check for "yourTablePrefix_wpdatatables")

    This table holds the details and settings for each table from our plugin.

    If you wish to sort it by table type, you can hit the Header of column 'table_type' and just look for 'mysql' type tables,

    or you can do a "search" on wp_wpdatatables to only show this table type.

    1190717135.png
    7486558040.png

    Then check under the "connection" column, here the "external DB connection" name is set.

    You can edit that field for all MySQL tables you need from our plugin and change the DB connection name.

    9665920750.png

    Under the "content" Column of the wp_wpdatatables, you will also see the SQL Query used for each table,

    and of course, in the ID field, it will show each wpDataTable's ID,  as they would show on the Shortcodes.

    Here is an example screenshot from a user's database that has two different external DB Connections and how that looks in the table's data :

    7688903972.png


    So, first make sure that you add this external DB Connection in your actual Main Plugin Settings/Separate DB connection, and try to use the same Connection Name as you had on the 'old Site', this way you will maybe not need to edit anything in the Database wp_wpdatatables Table.

    Insert all the Connection Details, then do a Test if the connection works.

    7161977083.png


    If that works - hit "Save Changes" and, refresh your "Browse Tables", check if they load now.

    -

    If your Tables still say "unknown Connection" for the selected DB Connection, then you will also need to do the step explained above, edit this detail in the Database, and let us know how it goes.

    Thanks.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Ricardo Zamora replied

    Hi Miloš,
    Yes, I want to export only databases as the rest of the site differs.
    Yes, I use the same DB Connection and name.
    I use the same external connection for all my tables, which I call "Clouding".
    Nevertheless, what I am finding in my installation is the default name assigned to the field (see default name.png) in all tables (see connection.png).
    The new installation looks the same but does not work.
    Thanks for the effort
    Ricardo

    Attached files:  default name.png
      connection.png

  •  1,692
    Miloš replied

    Hi Ricardo,

    First, please check under your Main Plugin Settings/Separate DB connection/Connection Name :

    3606960298.png

    If you named your Connection, as you said as "Clouding", then just make sure that the "Test connection" works.

    If that is successful, hit "Save Changes" on top right.

    -

    Now, you need to go in your PHPMyAdmin, and run an SQL Query that will update your 'connection' Column for the wp_wpdatatables  Table.

    As mentioned before, the wp_ is the default WP Prefix, but i see on your screenshot, you have wptg_ as the Table prefix ( i apologise if i did not write it correctly looking from the image/ that is why it's best to highlight the table, then copy and paste it to avoid any typo).

    UPDATE `wp_wpdatatables` SET content=REPLACE(connection,'your Old Connection Name','Your New Connection Name')

    So, copy this 'current' Connection name, what it says in the field, as the "old connection";

    9513466701.png


    and for the new one, write your new Connection name, i suppose as "Clouding", but make sure to check how it is written in the actual Connection name settings.

    Let me know if that works.

    -

    If not, we can remotely help, but we need access :

    Please provide me a temporary WP-admin (administrator) user for your website where this happens, 

    as well as FTP credentials and access to the database ( either link with credentials for PHPmyAdmin, or access to Hosting Panel),

    so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Ricardo Zamora replied

    Hi Miloš,
    I followed your instructions with these results (see pictures):

    • The replace command worked wrong.
    • Although the connection still works,...
    • the content is lost.

    It looks like there is a bug with assigned field names.
    I can rebuild the tables easily if you want to test them.
    Thanks
    Ricardo

    Attached files:  Content is lost.png
      Connection still works.png
      Replace command.png

  •  1,692
    Miloš replied

    Hi Ricardo,

    My apologies once again for taking so long between replies.

    Thank you for the screenshots, i can see, it seems this is not just an issue of the SQL Connection, but it seems there is a bigger issue for the Plugin files/ looks that maybe the Plugin files are not fully copied over from the old to the new Site.

    Can we log in remotely and we take a look?

    But for safe troubleshooting, if you can make a separate Staging Site and move all the same Data there;

    Then send me the URL to the Staging Site,

    along with WP-admin (Administrator) user, 

    FTP credentials ,

     and the database access ( URL with credentials for PHPMyAdmin or access to Hosting Panel), so our developers can debug the plugin, and see what's going on?


    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   Ricardo Zamora replied privately
  •   Miloš replied privately
  •   Ricardo Zamora replied privately
  •   Miloš replied privately
  • Ricardo Zamora replied

    Hi Miloš,
    This time, it has been me who delayed the answer. My apologies.
    I reviewed the credentials for both sites and checked that you can log in with them as administrator. The FTP access is also valid.
    In all cases, the connection name is Clouding. Let me explain. If we look at the original site, mygreatteam.com (DB: teamwork_wp500):
    The name "abcdefghijk" is the default expression on the connection field of the wptg_wpdatatables table (abcdefghijk picture). This comes from the original plugin installation.
    This is the name stored on the table (see teamwork_wp500.wptg_wpdatatables picture), although the name I created is Clouding for the separate DB connection (see Clouding connection picture). The connection information seems to be stored at wptg_options instead (wptg_options picture).
    Then, if we see the destination site, bubblegubble.es (DB: teamwork_wp500), to create the connection properly, I have to follow the following procedure:
    I DO NOT copy the field wptg_options >> 'wdtSeparateCon' from the old DB to the new one >> It has to be created from the plugin.
    I DO NOT use UPDATE `wptg_wpdatatables` SET content=REPLACE(connection,'abcdefghijk','Clouding'); >> It is the same name.
    What I do is the procedure listed in my answer from January 25, 2024, and I recreate the connection.
    It works for me. I want to emphasise the procedure, which differs from your original instructions, and point out where the connection is stored.
    I hope it helps to automatise the process in the future.
    All the best
    Ricardo

    Attached files:  abcdefghijk.png
      Clouding connection.png
      teamwork_wp500.wptg_wpdatatables.png
      wptg_options.png

  • Ricardo Zamora replied

    BTW, I installed a WP phpMyAdmin plugin for you to access the DB in both sites easily.

  •  1,692
    Miloš replied

    Hi Ricardo,

    No problem about your delayed response, you can always take your time.

    I sincerely apologise now once again for my end's late reply.


    Thank you for passing all the details. We are passing this to our QA Team and the Developers - it might help them when they work on easier way to automate the migration of the Plugin with options for the future.

    Thanks again, and of course, I am happy to see you managed to find a solution for migrating the data in your use-case with the Separate connection details.


    If anything else comes up, please don't hesitate to open new tickets.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables