hpr_hub/bin/mdb.bash

5 lines
184 B
Bash
Raw Normal View History

2023-12-23 10:24:21 +00:00
#!/bin/bash
pw=$(grep -E '^\$databasePassword = ' /home/hpr/php/credentials.php | awk -F "'" '{print $2}' )
pw=${pw##* }
mysql --host=localhost --user=hpr_hpr --password="$pw" hpr_hpr