openSUSE Forums > Applications » MySQL Problem

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read


Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-Jul-2009, 23:41
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
waheed2008 hasn't been rated much yet
Red face MySQL Problem

Hi all,
I am using Suse 11.1 and the standard package of MySQL along with it. But when I run mysql it is giving me error
Quote:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I am new to suse that is why I could not sought it out. Perhaps MySQL server is not running. I it is so, How to run it??

Please help me.

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-Jul-2009, 01:12
Puzzled Penguin
 
Join Date: Jul 2009
Posts: 22
korvirlol hasn't been rated much yet
Default Re: MySQL Problem

try rcmysql status to see if the process is running.

if it isnt... rcmysql start
Reply With Quote
  #3 (permalink)  
Old 03-Jul-2009, 01:24
Camaleón
Guest
 
Posts: n/a
Default Re: MySQL Problem

waheed2008 wrote:

> Hi all,
> I am using Suse 11.1 and the standard package of MySQL along with it.
> But when I run mysql it is giving me error
>>
>> ERROR 2002 (HY000): Can't connect to local MySQL server through socket
>> '/var/lib/mysql/mysql.sock' (2)
>>

> I am new to suse that is why I could not sought it out. Perhaps MySQL
> server is not running. I it is so, How to run it??


You can start mysql service by opening a terminal and running (as
root): "rcmysql start"

Greetings,

--
Camaleón
Reply With Quote
  #4 (permalink)  
Old 03-Jul-2009, 02:31
Wise Penguin
 
Join Date: Jun 2008
Location: West Yorkshire, UK
Posts: 1,177
john_hudson is on a distinguished reputation roadjohn_hudson is on a distinguished reputation road
Default Re: MySQL Problem

Go to YaST>System>System Services and check mysqld for a permanent solution.
Reply With Quote
  #5 (permalink)  
Old 03-Jul-2009, 02:35
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,200
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: MySQL Problem

BTW, check that you haven't got a factory version of mysql, I have seen that a couple of people got caught by this because they enabled every repo in sight. Do:

rpm -q mysql

It should be version 5.0.x, not 5.1.x.
Reply With Quote
  #6 (permalink)  
Old 03-Jul-2009, 04:30
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
waheed2008 hasn't been rated much yet
Default Re: MySQL Problem

Thanks a lot for all of your valueable responses. I have used
$ rcmysql start
command to start it. I also opened up Yast and set the mysql tu run level 2, 3, & 5. Thanks

I want to ask a general question. I have use RedHad-9 and in that, I used to start it through "service mysql start". Why different flavours use changed basic application commands.
Perhaps this is a nonsense question , but it sometimes confused me.
Reply With Quote
  #7 (permalink)  
Old 03-Jul-2009, 04:53
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,200
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: MySQL Problem

"service" is a Redhat-ism. The standard way which works with all distros is actually

/etc/init.d/mysql start

Remember this if you ever have to take any Linux exams. "rcmysql start" is a SUSE-ism. However as a shortcut it's more useful than "service mysql start" because you can use TAB completion after the rc.
Reply With Quote
  #8 (permalink)  
Old 03-Jul-2009, 06:42
Puzzled Penguin
 
Join Date: May 2009
Posts: 9
waheed2008 hasn't been rated much yet
Default Re: MySQL Problem

Thank you so much for this explanation.
Have a nice day
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2