You should separate the host from the port number.
You could have something, like:
development:
adapter: mysql2
encoding: utf8
database: my_db_name
username: root
password: my_password
host: 127.0.0.1
port: 3306
More Related Contents:
- Error installing mysql2: Failed to build gem native extension
- Rails, MySQL and Snow Leopard
- How to delete duplicate records in mysql database?
- rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
- What the difference between mysql and mysql2 gem
- Rails select random record
- Library not loaded: libmysqlclient.16.dylib error when trying to run ‘rails server’ on OS X 10.6 with mysql2 gem
- mysql2 gem compiled for wrong mysql client library
- Mysql::Error: Specified key was too long; max key length is 1000 bytes
- gem install: Failed to build gem native extension (can’t find header files)
- Rails 3 ActiveRecord: Order by count on association
- Use YAML with variables
- MySQL Install: ERROR: Failed to build gem native extension
- “193: %1 is not a valid Win32 application” bug with a new Rails Application
- how to use DISTINCT ON with mysql using ActiveRecord
- libmysqlclient15-dev on macs?
- ld: library not found for -lzstd while bundle install for mysql2 gem Ruby on macOS Big Sur 11.4 Apple M1
- Ruby gem mysql2 install failing [duplicate]
- How do you write a case insensitive query for both MySQL and Postgres?
- How do I set up the database.yml file in Rails?
- uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)
- Could not connect: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
- Ruby on Rails – cannot load such file — mysql2/2.2/mysql2 (LoadError)
- database.yml &references not working
- undefined method `eq’ for nil:NilClass with rails 3 and ruby enterprise on ubuntu hardy
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
- How to send email from MySQL 5.1
- How to create relationships in MySQL
- Mysql Join Two tables on keys
- How do I use CSS with a ruby on rails application?