Answers for "mysql query run on linux command line"

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

mysql terminal run sql file

$ mysql -h "server-name" -u "your_username" -p "your_password" "database-name" < "filename.sql"
Posted by: Guest on September-16-2021

Code answers related to "mysql query run on linux command line"

Code answers related to "SQL"

Browse Popular Code Answers by Language