CREATE TABLE new_table LIKE original_table;Then, copy over the data.
INSERT INTO new_table SELECT * FROM original_table;
CREATE TABLE new_table LIKE original_table;Then, copy over the data.
INSERT INTO new_table SELECT * FROM original_table;
GRANT SELECT,INSERT,UPDATE ON database.cryptonite TO 'superman@locahost';
CREATE USER 'superman'@'localhost' IDENTIFIED BY 'password';... and GRANT it super power.
GRANT ALL PRIVILEGES ON * . * TO 'superman'@'localhost' WITH GRANT OPTION;
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';... and 'wp_posts'.
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');
mysqldump -h source_host -u source_user -psource_password source_db | mysql -h target_host -u target_user -ptarget_password target_dbNote: there is no space between -psource_password or -ptarget_password
tar -zcf archived.tar.gz /directory/to/compressUncompress archived.tar.gz
tar -zxf archived.tar.gzUncompress archived.tar.gz into /directory/to/uncompress. /directory/to/uncompress need to exist.
tar -zxf archived.tar.gz -C /directory/to/uncompress/
DEVICE=eth0
HWADDR=00:24:1F:23:65:C1
NM_CONTROLLED=yes
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.3.183
NETMASK=255.255.255.0
GATEWAY=192.168.3.1
nameserver 8.8.8.8
nameserver 8.8.4.4
wget -r -nH -c --ftp-user=USER --ftp-password=PASS ftp://domainname.com