Os x lion install mysql




















Always think twice when you see something like this, though. Open up the Terminal application that comes with OS X. Type the following:. You should see a bunch of text going by at this point and having it seem like something is installing. In the same terminal, type the following:.

After it finishes, you should see a bunch of instructions. That should install mysql to run on startup of your system. Test it with the following at the command prompt:. Note: The dollar sign in front of the mysql command denotes that we are at a shell inside of the terminal. It is not necessary to type it. Double check the instructions above and try again. It lets you easily switch between different versions of Ruby on the command line. Remember what I told you a few paragraphs above about not running untrusted shell scripts?

Open up terminal again and type the following to install rvm:. That install install rvm. You can find that by typing the following in to your terminal:. In terminal, we need to tell RVM to load the environment we just set up. With terminal open, type the following:.

This will install the latest Ruby. At the time of this writing, that is version 1. This should take a few minutes. Feel free to get back to Reddit as you have already loaded up on coffee by this point.

Update: As Ryan Townsend points out in the comments, if you'd like to use this version of Ruby every time you're in a shell, type the following:. Now that we have rails and bundler installed, we can create our own rails app. Congratulations, you are now on the rails! If you have any questions, let me know in the comments. Its free edition can do things more than many commercial tools!! I very recommend check it. The installation stops when installing Ruby 1. Error below:.

This creates a new database named sample with UTF8 support:. After creating the sample database, we can then create a new user. This will allow us to connect to the MySQL database without using the root user. You will need to give the new user access to the sample database. To do this, either click the 'Select Databases' button and add the sample database, or click the 'All Databases' box to give the new user access to all databases.

Click the Generate SQL button to preview the commands for creating the user. Click the Execute SQL button to create the user. Below are example commands generated by the create user tool. These can be manually executed to create the user if not using RazorSQL or the create user tool:. After creating the new user, you can set up a new RazorSQL connection to the database using the new user instead of the root user. Once you are connected with your new user, below are some sample commands to create a new table, insert data into the table, and query data in the table.

Don't know if this will help, but lemme try. Joshua Pinter Rafael Oliveira Rafael Oliveira 2, 4 4 gold badges 31 31 silver badges 48 48 bronze badges. I managed to get it working by compiling mysql from source. After that it seemed to work. I created a blog post about this rtmatheson. Well I did it on 3 macs already and someone upvoted it, so it might be working to people with ruby 1.

This seems to work for me [so far, so good]. Noma4i Noma4i 7 7 silver badges 19 19 bronze badges. I got this installed in the system Ruby 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000