```ruby
require 'jdbc/mysql'

config = {
  :username => 'blog',
  :password => '',
  :adapter  => 'jdbc',
  :driver   => 'com.mysql.jdbc.Driver',
  :url      => 'jdbc:mysql://localhost:3306/weblog_development'
}

ActiveRecord::Base.establish_connection(config)
```

Change db credentials for generic connection test
user
```ruby
require 'jdbc/mysql'

config = {
  # see db/mysql.rb
  :username => 'arjdbc',
  :password => 'arjdbc',
  :adapter  => 'jdbc',
  :driver   => 'com.mysql.jdbc.Driver',
  :url      => 'jdbc:mysql://localhost:3306/arjdbc_test'
}

ActiveRecord::Base.establish_connection(config)
```
assistant