Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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'
  7. where $(grep table_prefix wp-config.php | cut -d ' -f 2)options.option_name='template'
  8. and $(grep table_prefix wp-config.php | cut -d ' -f 2)options.option_name='stylesheet';"
  9.  
  10. update johnanh1_wordpress069.wp_owub_options set option_value='test'
  11. where wp_owub_options.option_name='template'
  12. and wp_owub_options.option_name='stylesheet'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement