Question : I have a question regarding following output: [nikola@192 ~] $ sudo su – postgres [postgres@192 ~] $ psql […]
Tag: bash
Save output of a Mongo Command to a Variable bash script
Question : I have been writing a script to find and kill slow mongodb queries, how can I store output […]
How to pass environment variables to a sql file from bash shell (PostgreSQL)
Question : I need to be able to pass environment variables, from a bash shell executing a .sql file using […]
Postgres how do return a message if no results for SELECT query
Question : Have been trying to work out how to return a message if the result is empty. I am […]
How to return values from psql to bash with custom session settings
Question : I need to set the datestyle to “dd/mm/yyyy” before calling a procedure and getting it’s return value back […]
Merging one SQL database into another
Question : Currently in my CI I’m completely wiping production db with development db. That was fine for testing but […]
execute mysqlshell from within a bash script? is it possible?
Question : I am writing a backup script for a database and want to use mysqlshell util.dumpSchemas() utility. But how […]