Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found the solution for work with PHP with MAMP 2.0.5 and RAILS with two databases different for each. PHP uses mysql from MAMP and RAILS a other database installed via Homebrew.</p> <p>I use mac os lion 10.7.3</p> <p>I explain how I did</p> <p>1-The first step is delete all. Delete MAMP, MAMP PRO, the folders in applications (be carefully with your projects if they are in the MAMP folder) and all the mysql servers that you have installed. (visit this link for how remove mysql from mac osx lion <a href="http://johnmcostaiii.net/2011/removing-mysql-osx-lion/" rel="nofollow">http://johnmcostaiii.net/2011/removing-mysql-osx-lion/</a>)</p> <p>2-Install the lattest version of Xcode (via App Store)</p> <p>3-Install homebrew (https://github.com/mxcl/homebrew/wiki/installation)</p> <p>4-Install rvm and ruby 1.9.3. Follow the steps of quick start guide (http://beginrescueend.com/)</p> <p>5-Open a terminal and install mysql via homebrew</p> <pre><code>brew install mysql </code></pre> <p>Read the installations of mysql notes (on terminal) and follow the steps. (create alias, password, start and initialize database, etc)</p> <p>6- Say at rvm that uses the ruby version 1.9.3 </p> <pre><code>rvm use 1.9.3 </code></pre> <p>7- If you want, you can create a gemsets (explained at rvm webpage) and use it</p> <pre><code>rvm gemset create "gemset_name" use 1.9.3@gemset_name </code></pre> <p>8- Install rails</p> <pre><code>gem install rails </code></pre> <p>9 - Create a app with mysql gems</p> <pre><code>rails new name_app -d mysql </code></pre> <p>And it works!</p> <p>10 - Install MAMP PRO 2.0.5 </p> <p>11 - Test with any PHP page with database</p> <p>And it works!</p> <p>(After install and run MAMP, I created a vhosts for try if all work fine, but the vhosts don´t work properly. I spent 1 hour searching a solution, but the solution for me was restart the computer finally ... and ... )</p> <p>I hope that help you! I lost many hours looking for the solution</p> <p>(I followed this steps with changes: <a href="http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/" rel="nofollow">http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/</a>)</p> <p><strong>edit:</strong> everytime you open the console and work with rails you must type in the console</p> <pre><code>rvm use 1.9.3@gemset_name </code></pre> <p>or create a file with this command and save in the folder of your rails app with name</p> <pre><code>.rvmrc </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload