Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** The name of the database for WordPress */
- define('DB_NAME', 'somedbname');
- /** MySQL database username */
- define('DB_USER', 'someusername');
- /** MySQL database password */
- define('DB_PASSWORD', 'somerandompassword');
- WPDBNAME=somedbname
- WPDBUSER=somedbuser
- WPDBPASS=somerandompassword
- WPDBNAME=`cat wp-config.php | grep DB_NAME | cut -d ' -f 4`
- WPDBUSER=`cat wp-config.php | grep DB_USER | cut -d ' -f 4`
- WPDBPASS=`cat wp-config.php | grep DB_PASSWORD | cut -d ' -f 4`
- awk -F"[()']" '/^define/{printf "%s="%s"n", $3, $5;}' < foo.php
- DB_NAME="somedbname"
- DB_USER="someusername"
- DB_PASSWORD="somerandompassword"
- find . -name "wp-config.php" -print0 | xargs -0 -r grep -e "DB_NAME" -e "DB_USER" -e "DB_PASSWORD"
- mysql -u `cat wp-config.php | grep DB_USER | cut -d ' -f 4` -p`cat wp-config.php | grep DB_PASSWORD | cut -d ' -f 4` -h `cat wp-config.php | grep DB_HOST | cut -d ' -f 4` `cat wp-config.php | grep DB_NAME | cut -d ' -f 4`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement