The development environment is switched to Ubuntu, and a ruby problem is attached.

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.