Backing up Wordpress and Databases

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Backing up Wordpress and Databases

Postby LordCuttlefish » 01. January 2020 17:44

Hi,
I'm running a wordpress installation which I use for writing on Xampp and I want to back it up.
I've been going to PHPMyAdmin and downloading the "WordpressName" Database and copying the files in htdocs to my cloud service.
I've always been a bit worried this wouldn't work so I tested it on another PC yesterday and I was unable to import the database.
Does anyone know what I'm doing wrong? Any help would be appreciated.
LordCuttlefish
 
Posts: 3
Joined: 01. January 2020 17:34
XAMPP version: 7.3.7
Operating System: Windows 10

Re: Backing up Wordpress and Databases

Postby Altrea » 01. January 2020 18:06

Hi,

LordCuttlefish wrote:and I was unable to import the database.

What does this mean exactly?
You need to be much more detailed in your explanation.
What error message do you get for example?

Best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Backing up Wordpress and Databases

Postby LordCuttlefish » 01. January 2020 21:47

Sorry about that.
Here is the error I get.

Error
SQL query:


--
-- Database: `storywiki`
--

-- --------------------------------------------------------

--
-- Table structure for table `wp_commentmeta`
--

CREATE TABLE `wp_commentmeta` (
`meta_id` bigint(20) UNSIGNED NOT NULL,
`comment_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`meta_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`meta_value` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

MySQL said: Documentation

#1046 - No database selected
LordCuttlefish
 
Posts: 3
Joined: 01. January 2020 17:34
XAMPP version: 7.3.7
Operating System: Windows 10

Re: Backing up Wordpress and Databases

Postby Altrea » 01. January 2020 22:22

You need to create a database first and import the dump in context of this database.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11936
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Backing up Wordpress and Databases

Postby LordCuttlefish » 01. January 2020 23:02

That does it! Awesome!
Thank you! :D
LordCuttlefish
 
Posts: 3
Joined: 01. January 2020 17:34
XAMPP version: 7.3.7
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 188 guests