09/12/2019

Query mysql update home and siteurl table wp-option wordpress

UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
10/12/2019

mysql import database teminal

mysql -u[database_user] -p[database_pass] [database_name] < [name_file].sql
17/12/2019

Export databases with mysqldump and gzip file

mysqldump -u[dbuser] -p[dbpass] [dbname] | gzip > [dbname].sql.gz