Answers for "mysql command .sh"

SQL
1

run mysql command from bash

mysql --user="$user" --password="$password" --database="$database" --execute="DROP DATABASE $user; CREATE DATABASE $database;"
Posted by: Guest on January-20-2021
0

running mysql from bash sc

mysql -u $user -p$passsword -Bse "command1;command2;....;commandn"
Posted by: Guest on January-25-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language