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/
# grep -r 'database username' *

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

Leave a Comment