• Resolved amys25

    (@amys25)


    Hi There,
    I’m hoping someone can help me. I’m new to developing sites using localhost. I installed WP using MAMP and have been building a site for my town’s public library. I now need to move it to a host so the team can view it to make final changes etc.

    The problem is, I’m having issues moving the site (first tried local by flywheel, then a couple of free hosts). I’m encountering problems exporting my database using phpmyadmin (also had a problem using Duplicator plugin. All my theme mods were lost. Although I was able to use it successfully with another, less developed site I had started for them and scrapped).

    When I attempt an export in phpmyadmin I get an incredibly long error message that lists several tables with issues that I’m not sure how to fix. I honestly don’t know what it means.

    Error message begins with what’s below… (Please note: the “generation time” is incorrect as well – even though my time zone is set properly in WP – not sure that matters. I’m also noticing now that the host says localhost:8889, but to access the site I go to localhost:8888, I also included the first table error message).

    — phpMyAdmin SQL Dump
    — version 4.9.5
    https://www.phpmyadmin.net/

    — Host: localhost:8889
    — Generation Time: Jan 15, 2021 at 04:58 PM
    — Server version: 5.7.30
    — PHP Version: 7.4.9

    SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”;
    SET time_zone = “+00:00”;


    — Database: drevartsfour_db

    — ——————————————————–


    — Table structure for table wp_cn_social_icon

    CREATE TABLE wp_cn_social_icon (
    id int(11) NOT NULL,
    title varchar(255) DEFAULT NULL,
    url varchar(255) NOT NULL,
    image_url varchar(255) NOT NULL,
    sortorder int(11) NOT NULL DEFAULT ‘0’,
    date_upload varchar(50) DEFAULT NULL,
    target tinyint(1) NOT NULL DEFAULT ‘1’
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;


    — Dumping data for table wp_cn_social_icon

    INSERT INTO wp_cn_social_icon (id, title, url, image_url, sortorder, date_upload, target) VALUES
    (1, ‘Facebook’, ‘https://www.facebook.com/drevartslibrary’, ‘fa fa-facebook’, 0, ‘xxxxxxx’, 1),
    (4, ‘Instagram’, ‘https://instagram.com/’, ‘fab fa-instagram’, 2, ‘xxxx’, 1),
    (5, ‘YouTube’, ‘https://www.youtube.com/channel/xxxxxxxx’, ‘fab fa-youtube’, 1, ‘1608666994’, 1);

    I was able to force an export by using the custom function and changing the export format, but then several tables were missing.

    The site menus link out to several other sites for community resources. Could that be the problem? I’m also using several plugins, but I don’t think that’s it because the site is running beautifully on localhost.

    Sorry this is so long, just thought I’d give as much background as possible. Been struggling with this for a while.

    Thank you in advance!!
    Amy

Viewing 6 replies - 1 through 6 (of 6 total)
  • Dion

    (@diondesigns)

    That isn’t an error, it’s the exported database. You should tell phpMyAdmin to save the export to a file.

    Thread Starter amys25

    (@amys25)

    Thanks for answering. I don’t see where I can tell it that. It gives me “back” and “refresh” options. At the bottom of the page I’m seeing a tab called “console” when I click it it reads “press ctrl+enter to execute query. Is that the spot?

    OMG, I will feel so dumb if that was it all along! 🙂

    Dion

    (@diondesigns)

    If you are displaying the database in phpMyAdmin, there should be an Export tab in the tab bar at the top. If you click that tab, you should go to a page with a title like Exporting tables from "dbname" database, and there should be numerous options, including the one I mentioned. Do you see that page?

    If not, it’s possible (likely?) that MAMP is providing a limited version of phpMyAdmin, and you’ll need to install an official version downloaded from phpmyadmin.net.

    Thread Starter amys25

    (@amys25)

    Yeah, I got that page. There’s a “quick” option and a “custom” option. I got the above when I used “quick”. I did see a vid on YouTube that said I should copy that, paste it into a text editor and save as .sql

    I did that, but haven’t done anything with is yet.

    Should I try using the “custom” option?

    Thanks again btw…

    Dion

    (@diondesigns)

    Yes, you should use the “custom” option and make sure you’re saving the output to a file. It would save time if you also set the compression option to “gzipped”. The other custom options can remain as-is.

    Thread Starter amys25

    (@amys25)

    Thank you! I have resolved this. I really appreciate your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Trouble Exporting database using phpmyadmin, MAMP, localhost’ is closed to new replies.