<div dir="ltr"><div>I haven't used Ruby on Rails in a while, so I'll be basic with my instructions...</div><div><br></div>The Gemfile contains the list of dependencies your Ruby application needs to install.<div>The postgres database driver will be in there, but you want to find what the mysql driver is and put it in it's place.</div><div>After doing that the `bundle install` will install all those dependencies.</div><div>Bear in mind that you will probably need to install mysql header files before all this as the mysql driver is a compiled C extension.<br></div><div><br></div><div>Once you've successfully installed the mysql driver into your rails app, you want to configure the app to use the mysql database.</div><div>Something like `./config/database.yml` will contain the relevant settings.</div><div><br></div><div>Now the rails app is configured to talk to the database and has a driver to do so.</div><div>You need to create the database schema/tables, users, etc.</div><div><br></div><div>I think that's about it, but like I said, it's been a while.</div><div><br></div><div>p.s. Maria came from MySQL and are very similar.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 31 Mar 2020 at 12:49, Chris Caston <<a href="mailto:chris@caston.id.au">chris@caston.id.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sorry for replying to my own message.<div><br></div><div>My dad suggested that the GemFile would contain the entry from the MetPlus project github. I checked it and it does have an entry gem 'pg' but I believe that is for Postgres not mariadb as I require.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 12:18 PM Chris Caston <<a href="mailto:chris@caston.id.au" target="_blank">chris@caston.id.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>The VM I am using is running (Ubuntu 18.04.4)</div><div><br></div><div>I am attempting to install Metplus (<a href="https://github.com/AgileVentures/MetPlus_PETS" target="_blank">https://github.com/AgileVentures/MetPlus_PETS</a>) which uses Ruby v2.3.3 and Rail v4.2.3. </div><div><br></div><div>The install guide (<a href="https://www.howtoforge.com/tutorial/ubuntu-ruby-on-rails/" target="_blank">https://www.howtoforge.com/tutorial/ubuntu-ruby-on-rails/</a>) I was using was for Postgresql but I already have mariadb on this machine and would prefer the simplicity using the same database for both.</div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">I have (apt-get) installed ruby</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">-</span><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">mysql2 v0.4.10-0ubuntu5 although I'm happy to change this if I need a newer version.</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">I was also using yet another guide (</span><a href="https://www.botreetechnologies.com/blog/how-to-install-mariadb-on-ubuntu-14-04-lts-and-connect-ruby-on-rails" target="_blank">https://www.botreetechnologies.com/blog/how-to-install-mariadb-on-ubuntu-14-04-lts-and-connect-ruby-on-rails</a>)<span style="color:rgb(36,39,41);font-family:inherit;font-size:13px;font-style:inherit;font-variant-ligatures:inherit;font-variant-caps:inherit;font-weight:inherit;white-space:inherit"> but it is for an old version of Ubuntu and it wasn't clear on the exact entry I needed to make. </span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">I need to add a line to my Gems file now and run "bundle install" to continue to the next step.</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">I'm unsure exactly what this needs to be.</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">Any assistance would be appreciated. Please let me know if you need more information.</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">best regards,</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">Christopher Caston</span></div><div><span style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;white-space:inherit;color:rgb(36,39,41);font-size:13px;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit"><br></span></div></div>
</blockquote></div>
_______________________________________________<br>
PLUG discussion list: <a href="mailto:plug@plug.org.au" target="_blank">plug@plug.org.au</a><br>
<a href="http://lists.plug.org.au/mailman/listinfo/plug" rel="noreferrer" target="_blank">http://lists.plug.org.au/mailman/listinfo/plug</a><br>
Committee e-mail: <a href="mailto:committee@plug.org.au" target="_blank">committee@plug.org.au</a><br>
PLUG Membership: <a href="http://www.plug.org.au/membership" rel="noreferrer" target="_blank">http://www.plug.org.au/membership</a></blockquote></div>