From 664d4179d8f661747f09a9e2982d46793181b56a Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 21 Aug 2016 00:15:27 +0200 Subject: Fix database access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make DB access more configurable - Make sure that Rails uses libmysqlclient, rather than its “native” and non-forward-compatible DB driver. --- config/database.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/database.yml b/config/database.yml index 057b5fe..ed2cdde 100644 --- a/config/database.yml +++ b/config/database.yml @@ -12,7 +12,14 @@ # http://dev.mysql.com/doc/refman/5.0/en/old-client.html development: adapter: mysql - database: mappe - username: mappe - password: <%= ENV['MANMAN_DB_PWD'] %> + database: <%= ENV['MANMAN_DB_NAME'] %> + username: <%= ENV['MANMAN_DB_USER'] %> + password: <%= ENV['MANMAN_DB_PWD'] %> + socket: /var/run/mysqld/mysqld.sock + +production: + adapter: mysql + database: <%= ENV['MANMAN_DB_NAME'] %> + username: <%= ENV['MANMAN_DB_USER'] %> + password: <%= ENV['MANMAN_DB_PWD'] %> socket: /var/run/mysqld/mysqld.sock -- cgit v1.2.1