oscar87
Forum Replies Created
-
Yes @corrinarusso, i´ve checked .htaccess file too, it was generated by hosting service and it matches with the example in the link that you tell me about.
I don’t know what to try anymore…
Hi, @corrinarusso
Yes, I saw in some tutorials that an easier way to move from localhost to public hosting was to generate the site through the hosting service which creates everything with the multisite network included and that after creating it, all you have to do is delete the wp-content folder and upload the wp-content of the site created locally. And the same with the database, delete all the tables and import the tables of the local DB of the site already created, that’s why you have to change the url too (from localhost to dominiopublico).
I don’t know if there are other safer options.
Before this I tried publishing all the sources and DB and I got the same DB connection error.Translated with http://www.DeepL.com/Translator (free version)
in fact I put the following script in the wp-config file, with the corresponding connection parameters, and the response is that the connection has been established correctly
<?php $host_name = 'xxxx'; $database = 'xxxx'; $user_name = 'xxxxx'; $password = 'xxxxx'; $link = new mysqli($host_name, $user_name, $password, $database); if ($link->connect_error) { die('<p>Error al conectar con servidor MySQL: '. $link->connect_error .'</p>'); } else { <strong>echo '<p>Se ha establecido la conexión al servidor MySQL con éxito.</p>';</strong> } ?>- This reply was modified 4 years, 9 months ago by oscar87.
Ok, @topher1kenobe, thanks!!
I do not understand because it is an installation created by the hosting provider, which worked and connected to the database with those connection parameters. Then the only thing I changed is the wp-content folder and the content of the database without changing the name of the database.
Changind url in the database, the new prefix in wp-config…Yes, @topher1kenobe i´ve tried
exit;and I get a completely white screen!!Hi @topher1kenobe , thanks for your reply, i had a file called “wp-config-sample.php” i have tried removing this file but the error persists.
Hi @corrinarusso thanks for reply, yes, the prefix of the tables in the database corresponds to the one I have configured in the wp-config file using the line “$table_prefix = …”