Method: Brillo::Adapter::MySQL#load_command

Defined in:
lib/brillo/adapter/mysql.rb

#load_commandObject



27
28
29
30
31
# File 'lib/brillo/adapter/mysql.rb', line 27

def load_command
  host = config["host"] ? "--host #{config["host"]}" : ""
  password = config["password"] ? "-p#{config["password"]}" : ""
  "mysql #{host} -u #{config.fetch("username")} #{password} #{config.fetch("database")}"
end