pister
Posts: 25
Joined: Thu Jun 21, 2018 5:24 pm

Migrate wordpress to hosting

Mon Sep 16, 2019 3:51 pm

Hi, I've never done it before, but does anyone know how I would migrate my WordPress site to official hosting. Thanks in advance.

scotty101
Posts: 3720
Joined: Fri Jun 08, 2012 6:03 pm

Re: Migrate wordpress to hosting

Mon Sep 16, 2019 4:02 pm

Not really a Pi specific question.

There are lots of google results explaining how to do this, including https://www.wpbeginner.com/wp-tutorials ... -downtime/
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

pister
Posts: 25
Joined: Thu Jun 21, 2018 5:24 pm

Re: Migrate wordpress to hosting

Tue Sep 17, 2019 10:24 am

Hi thanks for replying. I have already read this but how would I find the databases

Andyroo
Posts: 4494
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Migrate wordpress to hosting

Tue Sep 17, 2019 11:49 am

If you look at the base directory where WordPress is installed (somewhere under /var/www/ is normal) you will find a file called wp-config.php

In here you will see a set of declarations for the database:
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
In your case the data should be filled with the info you need.

For questions such as these (i.e. internal to WordPress) may I suggest that https://en.forums.wordpress.com/ would be a better place to seek answers rather than this forum?
Need Pi spray - these things are breeding in my house...

Return to “Networking and servers”