Avoid upload plugins o media by FTP in dashboard

Add in wp-config.php

define(‘FS_METHOD’,’direct’);

?>

Refered: http://www.hongkiat.com/blog/update-wordpress-without-ftp/

Advertisements

Change url to all the site in mysql

use database;

— SET SQL_SAFE_UPDATES=0;  //if is myworkbench

update wp_options
set option_value=replace(option_value,”previous_url”,”new_url”)
where option_value like “%previous_url%”;

update wp_posts
set guid=replace(guid,”previous_url”,”new_url”)
where guid like “%previous_url%”;

update wp_postmeta
set meta_value=replace(meta_value,”previous_url”,”new_url”)
where meta_value like “%previous_url%”;