run queries
We can run queries (that are inside
queries
file) from Linux command line
mysql -u test_user -p test_db < /var/www/queries.sql
The queries inside the file will be run into
test_db
using
test_user
user. Note: The above command can be used to restore database, or add some tables, or insert some rows.
by Valeri Tandilashvili
4 years ago
Linux
MySQL
Command line
0
Pro tip: use ```triple backticks around text``` to write in code fences