top of page
Search

Wordpress basic scripts

  • knowledgediary4min
  • Mar 22, 2020
  • 1 min read

Site URL and Home URL


SELECT * from wp_options WHERE option_name = 'home' OR option_name = 'siteurl';


update wp_options set option_value = 'http://bottlemeamessage.com' where option_name = 'home';

update wp_options set option_value = 'http://bottlemeamessage.com' where option_name = 'siteurl';



To change theme


# In table wp_options


>edit option name >>'current_theme'

>>'template'

>>stylesheet


~~~~~~~~~~

SELECT * from wp_options WHERE option_name = 'current_theme';

UPDATE wp_options SET option_value = 'twentytwelve' WHERE option_name = 'template';

UPDATE wp_options SET option_value = 'twentytwelve' WHERE option_name = 'stylesheet';

UPDATE wp_options SET option_value = 'twentytwelve' WHERE option_name = 'current_theme';

~~~~~~~~~~~`````


 
 
 

Recent Posts

See All
clear script

#!/bin/bash rm -f ./cleanspace.sh bold=$(tput bold) normal=$(tput sgr0) TIMESTAMP=$(date +%d-%m-%Y-%H-%M) LOGFILE="/root/cleardisk-$TIME...

 
 
 
innodb restore

Create a new folder: mkdir /var/lib/mysql2 From R1: Restore from the /var/lib/mysql folder: + The folder which is called the db name...

 
 
 
Scripts

#not wordpress site grep shop2vizag.com /var/log/messages | awk '{print $6}' | cut -d: -f1 |sort -n |uniq -c |sort -n #Domains using...

 
 
 

Comments


  • White Facebook Icon
  • White Twitter Icon
  • White Instagram Icon
  • White YouTube Icon

© 2023 by Knowledge4mind. Proudly created with Wix.com

bottom of page