Skip to content

Instantly share code, notes, and snippets.

View slouma2000's full-sized avatar
🐝
Venven

Slim OUICHTATI slouma2000

🐝
Venven
  • MAKE IT DIGITAL TUNISIA
  • TUNISIA
View GitHub Profile
@slouma2000
slouma2000 / wordpress.sql
Last active September 5, 2015 03:00 — forked from andredublin/wordpress.sql
Wordpress search and replace for when you move your site
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888/testing', 'http://www.live-website.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://localhost:8888/testing','http://www.live-website.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:8888/testing', 'http://www.live-website.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://localhost:8888/testing','http://www.live-website.com');
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# For a list of vagrant boxes visit the site below
# http://www.vagrantbox.es/
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|