17/12/2019

Export databases with mysqldump and gzip file

mysqldump -u[dbuser] -p[dbpass] [dbname] | gzip > [dbname].sql.gz
09/12/2019

Query mysql update home and siteurl table wp-option wordpress

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl.com', 'http://www.newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl.com','http://www.newurl.com'); UPDATE wp_posts SET […]
10/12/2019

mysql import database teminal

mysql -u[database_user] -p[database_pass] [database_name] < [name_file].sql