Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. echo "Enter theme to change to"
  2. && read i
  3. && mysql --user=`grep DB_USER wp-config.php | cut -d ' -f 4`
  4. --password=`grep DB_PASSWORD wp-config.php | cut -d ' -f 4`
  5. `grep DB_NAME wp-config.php | cut -d ' -f 4`
  6. -ve "update $(grep DB_NAME wp-config.php | cut -d ' -f 4).$(grep table_prefix wp-config.php | cut -d ' -f 2)options set option_value='$i' where $(grep table_prefix wp-config.php | cut -d ' -f 2)options.option_name='template' and $(grep table_prefix wp-config.php | cut -d ' -f 2)options.option_name='stylesheet';"
  7.  
  8. update johnanh1_wordpress069.wp_owub_options set option_value='test' where wp_owub_options.option_name='template' and wp_owub_options.option_name='stylesheet'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement