Problems when passing Wordpress from local to server

0

I recently finished an online WordPress and Woocommerce course that I did locally on my pc. Now I want to upload to the internet the files that I have locally to a site that I have on a server to see if everything goes well online as well. I summarize the experience a bit: 1. I uploaded the files to the server without problem 2. When entering the address of my page I get a message of "Error establishing a database connection". 3. I check the wp-config.php to change the password data, bd name, etc. 4. When entering the address again I get the WordPress Wizard to start installing the language, etc.

My question is: should not it be installed already? I suppose that you must create the bd in the server that I have online, that's why this installation comes out again, is that so? And ... can I take advantage of something I did locally for what I'm going to install on the server? Thanks

    
asked by RicardoKra 12.07.2018 в 19:18
source

2 answers

0

In order that the importation to your wordpress hosting is correct, you must follow the following steps.

  • Upload the complete wordpress root by ftp to your server.
  • Create a copy of your local database and import it into your hosting database.
  • in the database, you must go to wp-options and change siteurl and blogname by the url of your online site.
  • With that it should be enough, but if it keeps failing you, you have to go to .htacces and leave it as follows:

    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
    </IfModule>
    

    That's what you have to take into account, and of course, that the data in wp_config is fine

        
    answered by 13.07.2018 / 12:51
    source
    0

    You can copy the database of your local using phpadmin, save it in mysql and in the panel of your online server you create the base, a user for the base and import the mysql file that you obtained previously and it should work. I put a link for you to review step by step.

    link

        
    answered by 12.07.2018 в 23:41