       console.log "NOT using table prefix " + config.table_prefix
       cmd = exports.mysqldump_cmd(config)
     
-    grunt.log.oklns "dump command: " + cmd
+    grunt.log.oklns "dump command:"
+    console.log cmd
     
     output = shell.exec(cmd,
       silent: true

    grunt.log.oklns "Tables to dump"

    console.log tables_to_dump
    prefixed_sqldump = exports.prefixed_sqldump(config, tables_to_dump)
    grunt.file.write output_paths.file, prefixed_sqldump
    grunt.log.oklns "Database DUMP for '" + config.table_prefix + "' succesfully exported to: " + output_paths.file
    return

  
  # Find all table prefix that match the config.table_prefix

    
    cmd = exports.add_ssh_connect config, cmd if config.ssh_host?

    # console.log "tables to dump cmd \n" + cmd

    # Make sure you strip the new line chars
    tables_to_dump = shell.exec(cmd,
      silent: true
    ).output.replace(/(\r\n|\n|\r)/g, "")

    # console.log "tables_to_dump\n" + tables_to_dump

    tables_to_dump.split " "

  
  # Run the mysqldump cmd and append the table names from exports.tables_to_dump() fn
  exports.build_prefixed_sqldump = (config, tables_to_dump) ->
    return false  unless tables_to_dump
    cmd = exports.mysqldump_cmd(config) + " " + tables_to_dump.join(" ")

    dest = if config.ssh_host? then 'remote' else 'local'

    grunt.log.oklns "Creating prefixed DUMP of " + dest + " database [" + config.database + "/" + config.table_prefix + "]"

    # console.log "prefixed sqldump cmd\n" + cmd
    cmd
  
  exports.add_ssh_connect = ( config, cmd ) ->
