I’m trying to work my way through the chapter on deployment, but I’m finding it very hard. It seems that the authors assumes a bunch of stuff about me and my skill level with setting up a server on my Mac. I have never tried anything like that, this is some of my first exposure to Rails. Anyway my problem is getting the MySQL database to work. I have added the database to my Gemfile (group :production do gem ‘mysql’ end).
“Install the gem using bundle install. You may need to locate and install the MySQL database development files for your operating system first. On Ubuntu, for example, you will need to install libmysqlclient-dev. You can use the mysql command-line client to create your database, or if you’re more comfortable with tools such as phpmyadmin or CocoaMySQL, go for it.”
Especially this paragraph is hard for me to understand: what are you supposed to do? Do you type: “bundle install” and no parameters or nothing in terminal? (That’s what I did.) So I tried using “mysql -u root” but the system said command not found. I don’t know what to do. Now I’m thinking I need to find those development files as mentioned above, but where are those?
Well… I’m all up in arms. I’d greatly appreciate it if someone knew what to do, or had any suggestions.
Thank you in advance, Timm.