title: Go redis connect to db1
body: <p>I have redis Server with a few db, i want to connect to db1 in the server.</p>
  
  <p>i manage to connect to the server but i couldn't connect to one of the db.</p>
  
  <p>this is my code:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "redigo-master"
  )
  
      func main() {
  
          conn, err := redis.Dial("tcp", "qacd:6410")
          defer conn.Close()
          if err != nil {
              fmt.Println(err)
          }
          keys, err := conn.Do("SELECT","db1")
          fmt.Println(keys)
      }
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>ERR invalid DB index
  </code></pre>
  
  <p>any way to get to the 1st db?</p>