Is there any terminal command to know the MySql Databases existing on my Ubuntu server?
I know that I can check out/list all Sql DBs from within Sql by this: SHOW DATABASES;
But can we execute main-main MySql commands from Ubutnu Server Terminal command prompt, without entering Sql itself?
echo "SHOW DATABASES;" | mysql -u user_name -p password
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.