-
Notifications
You must be signed in to change notification settings - Fork 3
MySQL on development
We are using SQLite for development and test environment and MySQL for production. If you prefer to use MySQL for your development then follow these steps:
-
If MySQL is not already installed on your machine, follow these instructions: Install MySQL on CentOS 7.
-
Make sure that your Gemfile has the following replace:
gem 'mysql2', :group => [:production]
with
gem 'mysql2'
and uncomment:
gem 'sqlite3', :group => [:development, :test]
-
To find the path to your MYSQL socket file:
mysql -u root show variables like 'socket';
or
mysql --socket
-
Edit your database.yml file and update the development config:
development: adapter: mysql2 encoding: utf8 pool: 5 username: YOUR_LOCAL_USERNAME password: YOUR_LOCAL_PASSWORD socket: PATH_TO_SOCK_FILE timeout: 5000 database: psulcat_dev
Note: Please do not commit this change to the repository!
-
Beware that you might get a slightly different schema.rb file after running
rake db:migrate
. You should discard those changes withgit checkout -- schema.rb
so that you don't accidentally commit them to the repository.
- Home
- Testing Documentation for Product Owner
- Components, Features, and Functions
- Library Faceting and Locations Management
- Advanced Search
- Browse Items By Library of Congress Call Number
- Browse by Subject, Author, and Title
- Availability Display
- Summary Holdings Display
- Holdings and Availability for Bound-Withs
- Holds and ILL
- Requesting Items with Aeon
- Course Reserves
- Google Books and HathiTrust Integration
- Bento Integration
- Indexing and Display
- Sources of Catalog Data
- Display Fields
- Title Fields
- Author and Creator Fields
- Thesis Department
- ISSNs and ISBNs
- URL Fields
- Publication and Edition Fields
- Material Characteristics Fields
- Language Fields
- Subject Fields
- Genre Fields
- Note Fields
- Serials
- Bound-Withs
- Formats
- Media Types
- Access Facet
- Open Access Facet
- Call Numbers
- OCLC Number
- LCCN
- Report Numbers
- Endowment Codes and Names
- Adding Linked to Request Scanning
- Summary Holdings Indexing
- My Account
- Tests
- Development Setup and Notes
- Deployment Notes