10/12/2019

mysql import database teminal

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

How do you use bcrypt for hashing passwords in PHP?

use password_hash() to create a bcrypt hash of any password: password_hash('yourPassword', PASSWORD_DEFAULT); use password_hash() to create a bcrypt hash of any password with option: $options = […]
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';
17/12/2019

Export databases with mysqldump and gzip file

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