Bonjour à tous, je ne parviens pas à créer une procédure fiable et sans erreur d'export de mes articles, mots clefs et catégories de mon localhost vers mon site distant.
Je passe par phpmyadmin afin d'exporter m base SQL et la réinomporter sur mon hébergeur distant:
Afin de mettre à jour ma base pour mon nouveau domaine je passe par les requêtes ci-dessous :
Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 -- Change Siteurl & Homeurl UPDATE wor5694_options SET option_value = replace(option_value, 'http://localhost/wordpress/', 'http://mondomaine.fr/blog/') WHERE option_name = 'home' OR option_name = 'siteurl'; -- Change GUID UPDATE wor5694_posts SET guid = REPLACE (guid, 'http://localhost/wordpress/', 'http://mondomaine.fr/blog/'); -- Change URL in Content UPDATE wor5694_posts SET post_content = REPLACE (post_content, 'http://localhost/wordpress/', 'http://mondomaine.fr/blog/'); -- Change Image Path Only UPDATE wor5694_posts SET post_content = REPLACE (post_content, 'src="http://localhost/wordpress/', 'src="http://mondomaine.fr/blog/'); UPDATE wor5694_posts SET guid = REPLACE (guid, 'http://localhost/wordpress/', 'http://mondomaine.fr/blog/') WHERE post_type = 'attachment'; -- Update Post Meta UPDATE wor5694_postmeta SET meta_value = REPLACE (meta_value, 'http://localhost/wordpress/','http://mondomaine.fr/blog/');
Le soucis est : Cela ne semble pas tout modifier puisque lors de mon idnetifiation sur wp-admin sur mon domaine distant c ela me renvoi au localhost/wp-admin
Savez vous d'ou cela peut il provenir ?
Merci par avance
Partager