Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

automate mysql cli query

#!/bin/bash
mysql -u root -psecret <<MY_QUERY
USE mysql
SHOW tables
MY_QUERY
Source by www.shellhacks.com #
 
PREVIOUS NEXT
Tagged: #automate #mysql #cli #query
ADD COMMENT
Topic
Name
7+8 =