Note: Go to your MySQL and make sure that a database with name "DemoApp_Development" is createdī) rails g scaffold user first_name:string last_name:string email:string I) On command prompt, cd to C:\Data\sites\DemoApp and run following one after another, Iv) On command prompt, cd to C:\Data\sites\ and run following command,Ģ) Test MySQL from newly created Ruby on Rails Site Enter Port: if port of MySQL is other than 3306. ![]() Iii)update database.yml under config folder. Open Gemfile and make sure that the value of gem 'rails' is '4.0.2' Ii) Test version of Rails in the new Site created On command prompt, navigate to C:\Data\sites\ and run Testing Installation 1) Create new Ruby on Rails Site Keep other default option as it is and select next. V) Install Server Only option or Custom option with only MySQL Server 5.6.17 & Workbench selected. Iii) Run the mysql-installer-web-community-5.6.17.0 Note: you can install 64 bit version as well if you want Ii) I installed MySQL Community Server 5.6 Windows (x86, 32-bit), MSI Installer (mysql-installer-web-community-5.6.17.0) OR Install 32/64 bit MySQL Community Server Gem install node -no-ri -no-rdoc Installing My SQL Server Install XAMPP OR My SQL Community Serverīrowse to Url and download XAMPP 1.8.3-4 Gem install mysql2 -platform=ruby -with-mysql-dir=C:\Programs\mysql-connector-c-noinstall-6.0.2-win32 -no-ri -no-rdoc 8) Install Other Gems(Windows 8.1 only) Note: Rails 4.1.0 is not compactible with some libraries 7) Install mysql2 Ii) Test the Rails Version installed by running "rails -v" in Command Prompt Gem install rails -v=4.0.2 -no-ri -no-rdoc I) Copy libmysql.dll from C:\Programs\mysql-connector-c-noinstall-6.0.2-win32\lib to C:\Programs\Ruby200\bin 6) Install rails -v=4.0.2 Iv) Extract mysql-connector-c-noinstall-6.0.2-win32.zip to C:\Programs\ 5) Copy "libmysql.dll" from mysql/lib to ruby/bin folder Iii) select & Download Windows (x86, 32-bit), ZIP Archive (mysql-connector-c-noinstall-6.0.2-win32.zip) Note: The latest MySQL 6.1.3 connector is not compatible with Ruby Ii) Click Looking for previous GA versions? The 32bit Ruby communicates to MySQL via this Connector. Iii) Navigate to C:\Programs\Ruby200\devkit and run followingĪ) gem install json -platform=ruby -no-ri -no-rdocī) ruby -rubygems -e "require 'json' puts JSON.load('').inspect" 4) Download & Extract 32 bit MySQL Connector/cĪ) Ruby uses the same connector that C uses.ī) Even if you have 64 bit MySQL Server, the connector should be 32 bit. Ii) Extract the DevKit zip file into C:\Programs\Ruby200\devkit That will be the location of where we will place our Ruby apps.Īt the Command Prompt, it is best to navigate to this directory before typing Ruby commands. ![]() Now create a new folder in Windows at C:\Data\Sites Click on that to get to the command prompt. Search for “Start Command Prompt With Ruby”. But make sure you atleast select the 2nd optionī) Added Ruby to the Windows PATH environment variable.Ĭ) Also see that a new Windows tile have been created on your start page that says “Start Command Prompt With Ruby”ĭ) Opne Command Prompt and run "ruby -v" ruby 2.0.0p451 () 2) Create Application Folder for your websites Note: the 64 bit version of Ruby 2.0.0-p451 is not compactible with MySQLģ. I) Download Ruby 2.0.0-p451 (32bits version only) from Iii) Installing Ruby, Rails and MySQL Connector 1) Install Ruby (32Bit Version Ruby 2.0.0-p451) Watch the following video before installing: Install Rails 4 and MySQL Server on Windows 7/8 Here are the stes for Installing Rails 4 and MySQL Server on Windows 7/8 Using the code
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |