- Log in to post comments
echo "create database ${DB_NAME}" | mysql --user=${DB_USER} --password=${DB_PASS}
mysql -u root -p create database db_name; create user db_user identified by 'user_pass'; grant all on db_name.* to 'db_user'@'%'; commit; quit;
echo "create database ${DB_NAME}" | mysql --user=${DB_USER} --password=${DB_PASS}
mysql -u root -p create database db_name; create user db_user identified by 'user_pass'; grant all on db_name.* to 'db_user'@'%'; commit; quit;