Get all MySQL databases except the system ones to a bash variable

Get into a variable:

DB_DATABASES=$(mysql -u $DB_USER -p$DB_PASS -h $DB_HOST -e "SELECT schema_name from INFORMATION_SCHEMA.SCHEMATA WHERE schema_name NOT IN('information_schema', 'mysql', 'performance_schema');" -N -B)
Get databases one by one:
for DB in $DB_DATABASES
do
  echo $DB
done