I switched the development environment to Ubuntu last night. I felt the atmosphere. I used to develop it in Linux and then switched it to Windows for DOTNET development. Now we can see that Ubuntu has been upgraded to 7.04, which is a great improvement. My video card and Sound Card have been installed automatically. I configured my system based on the previous items. The Chinese interface and everything are pretty. I don't feel that there is a bad Vista. The fonts are all Mac fonts, the interface is a Mac imitation, and the overall feeling is good. Here is the radrails on my Ubuntu system.
the problem with rails on Ubuntu is to enter the following command:
rake DB: migrate
will get the following error
no such file or directory-/tmp/MySQL. sock
it looks like a problem with MySQL. After I reinstalled MySQL, I still had the problem. After testing, I found that MySQL was okay. It seems like it was a problem with rails and MySQL. I searched from the Internet and found out that it was a special problem on Ubuntu. Set it in database. ym to OK. Code :
development:
adapter: mysql
Database: sdroad_development
Username: root
password:
HOST: localhost
socket:/var/run/mysqld. sock
test:
adapter: mysql
Database: sdroad_test
Username: Root
password:
HOST: localhost
socket: /var/run/mysqld. sock
production:
development
you can see it, that is, re-set S. The ocket attribute is OK. The reason should be that the configuration of MySQL in Ubuntu is incorrect. The specific reason is unknown.