Re: Connect shell and mysql




rahismailbox wrote ...
} hi,
} how to write and connect to mysql using shell script?

$ mysql -u username -ppassword < <(printf "show databases;")
Database
information_schema
mysql
test


If your shell doesn't support process substitution (<()) use printf ... |
mysql ...



Dimitre


.



Relevant Pages