Find Mysql Connection script

Recently, I had to find a connection script for mysql as the clients programmer had gone away. I knew the database username and here is the grep command that found it.

# cd /var/www/vhosts/domain.com/httpdocs
# grep -r 'database username' *

* Where database username is the actulay database username in the plesk database

Leave a Comment