I''m in chapter 16 of the book _Agile Web Development with Rails_. I was able to get Apache/Passenger working, but now I''m stuck on MySQL. When I enter "mysql -u root", I get the message: ERROR 2002 (HY000): Can''t connect to local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' I created the /var/run/mysqld directory and the /var/run/mysqld/ mysqld.sock file. However, I was not able to grant ownership of this file to mysql, because the user mysql doesn''t exist. What exactly do I need to do? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Jason, Is your MySQL service running? (/etc/init.d/mysql start or ''service mysql start'') If all else fails, you may want to consider uninstalling and reinstalling your mysql package with your distro''s package manager. David On Sun, Oct 2, 2011 at 9:33 AM, Jason Hsu, Mr. Swift Linux < jhsu802701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m in chapter 16 of the book _Agile Web Development with Rails_. I > was able to get Apache/Passenger working, but now I''m stuck on MySQL. > When I enter "mysql -u root", I get the message: > ERROR 2002 (HY000): Can''t connect to local MySQL server through socket > ''/var/run/mysqld/mysqld.sock'' > > I created the /var/run/mysqld directory and the /var/run/mysqld/ > mysqld.sock file. However, I was not able to grant ownership of this > file to mysql, because the user mysql doesn''t exist. > > What exactly do I need to do? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
/etc/init.d/mysql doesn''t exist, and ''service mysql start'' gives me the error message "mysql: unrecognized service". I''m using Ubuntu 11.04 as my OS. What packages do I need installed? I already have mysql-client-core-5.1 and mysql-common. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You are missing the obvious: $ sudo apt-get install mysql-server :D HTH Norbert 2011/10/2 Jason Hsu, Mr. Swift Linux <jhsu802701-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> /etc/init.d/mysql doesn''t exist, and ''service mysql start'' gives me > the error message "mysql: unrecognized service". > > I''m using Ubuntu 11.04 as my OS. What packages do I need installed? > I already have mysql-client-core-5.1 and mysql-common. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Actually i installed mysql-workbench on ubuntu, unable to start mysql. Whenever i type service mysql start or service mysqld start, i get " mysql is unrecognized command". -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/47d2c7fa8a8e9fe5622694d669cb2e7c%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
akash d. wrote in post #1128893:> Actually i installed mysql-workbench on ubuntu, unable to start mysql. > Whenever i type service mysql start or service mysqld start, i get " > mysql is unrecognized command".Actually it means that mysql server is not installed try to re-install it by this command: sudo apt-get install mysql-server i did that and my problem resolved, :) Regards, -Akash -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8200cbab01ddb93cdfe6a9baa39f365d%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Jason Hsu, Mr. Swift Linux wrote in post #1024613:> /etc/init.d/mysql doesn''t exist, and ''service mysql start'' gives me > the error message "mysql: unrecognized service". > > I''m using Ubuntu 11.04 as my OS. What packages do I need installed? > I already have mysql-client-core-5.1 and mysql-common.It means that mysql server is not installed. Try to re-install it by this command: sudo apt-get install mysql-server And start mysql server: service mysql start This will resolve your problem.. :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c7cce07b268204a1e215b57039193088%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.