Creating A User and Database with a .sh file using PHP Application – Debian
I have a sh script that works fine when I run it at command line with root user. This creates a database and a user with password. $ ./create-database.sh dbname dbuser dbpass #!/bin/bash exec 3>&1 4>&2 trap 'exec 2>&4 1>&3'…