Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

run mysql command from bash

mysql --user="$user" --password="$password" --database="$database" --execute="DROP DATABASE $user; CREATE DATABASE $database;"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #mysql #command #bash
ADD COMMENT
Topic
Name
3+4 =