Windows + Rails + MySQL 5.1
2010/07/20
å æ¥ã®Railsã»ããã¼ã§è¬å¸«ãããæã®è©±ã
åå è ã®æ¹ã ã«ã¯äºåã« Ruby 1.8.7, Rails 3.0.0.beta4, MySQL 5.1 ãã¤ã³ã¹ãã¼ã«ããä¸ã§ä¼å ´ã«éã¾ã£ã¦ããã ãã¾ããã
ãããå®ç¿ãå§ãã¦ã¿ãã¨ãRails ã¢ããªã±ã¼ã·ã§ã³ãã MySQL ãµã¼ãã«æ¥ç¶ã§ããªãã¨ããçç¶ãåºã¦ãå ã«é²ããªããªã£ã¦ãã¾ãã¾ããã
mysql-win gem ãã¤ã³ã¹ãã¼ã«ãã¦ãã¡ãã㨠database.yml ãè¨å®ãã¦ããã®ã«ãã³ãã³ãããã³ãã㧠rake db:create
ãå®è¡ããã¨
Access denied for user 'root'@'localhost' (using password: NO). Please provide the root password for your mysql installation
ã¨ããã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºã¦æ¢ã¾ã£ã¦ãã¾ãã¾ãã
ã¨ãããã SQLite3 ã«åãæ¿ãã¦å®ç¿ãåéãããã¨ã«ããã®ã§ãããé常ã«ç¦ãã¾ããã
ãã®å¾ã調ã¹ã¦ã¿ãã¨ãWindows ç¨ã® MySQL API ã¢ã¸ã¥ã¼ã« mysql-win ã®ææ°ç 2.8.1 ã MySQL 5.1 ã«å¯¾å¿ãã¦ããªããã¨ãå¤æãã¾ããã
Windowsä¸ã§RubyããMySQL 5.1ã使ãã«ããã°ãmysql gem ãææ°ã®ã½ã¼ã¹ããªã¼ãããã«ãããã° MySQL 5.1 ã«å¯¾å¿ã§ããããã§ãã
ããããããã°ã©ãã³ã°åå¿è ã®æ¹ã«ã¨ã£ã¦ãã½ã¼ã¹ãããã«ããã¯ãããªããã¼ãã«ãé«ãã§ããã
ããã§ãMySQL 5.1 ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã¦ãMySQL 5.0 ãã¤ã³ã¹ãã¼ã«ãã¦ããããã¨èããã®ã§ãããmysql.com ã®ãã¦ã³ãã¼ããã¼ã¸ã«è¡ã£ã¦ãè¦ã¤ããã¾ããã
å®ã¯ãMySQL 5.0 ã·ãªã¼ãºã¯ãã§ã« EOL (End of Life) æ±ãã«ãªã£ã¦ãã¦ãå©ç¨ãæ¨å¥¨ããã¦ããªããã§ããã
Google ã§æ¢ãã¨ã次ã®URLãããã¦ã³ãã¼ãã§ãããã¨ãåããã¾ããã
mysql-win gem 2.8.2 ãæ£å¼ã«ãªãªã¼ã¹ãããã¾ã§ãWindows ã¦ã¼ã¶ã¼ã®æ¹ã ã«ã¯ MySQL 5.0 ã®å©ç¨ããå§ããããã¾ãã