LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2012, 04:25 AM   #1
raystar
LQ Newbie
 
Registered: Jan 2012
Location: mombasa, Kenya
Distribution: ubuntu lucid
Posts: 3

Rep: Reputation: Disabled
Problems starting MySQL server


i have a big problem running any data management app.ive tried lemonpos open erp.am suspecting it all has to do with mysql server which has refused to start.can someone help?
ray@ray-laptop:~$ sudo /etc/init.d/mysql start
[sudo] password for ray:
sudo: /etc/init.d/mysql: command not found
ray@ray-laptop:~$ sudo /etc/init.d/mysql start
sudo: /etc/init.d/mysql: command not found
ray@ray-laptop:~$
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-05-2012, 04:36 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Exclamation

First off I would suggest not placing "urgent" in your subject line. That is a relative term and not very descriptive to what your concern is. If you would like some help please post some more information so members can have a better understanding of the issue.

Questions to start -->

Is mysql installed ? ( sudo aptitude install mysql )

If so where is it ? ( sudo find / -iname mysql )

Is it in your path ? ( echo $PATH )

What distro are you using ? ( I assume Ubuntu )
 
Old 01-05-2012, 05:06 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
deleted

APOLOGIES

Last edited by deep27ak; 01-05-2012 at 09:38 PM.
 
Old 01-05-2012, 11:06 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by deep27ak View Post
The first thing for a system administrator is PATIENCE which if you don't have you might face problem. So writing urgent won't make any difference instead use appropriate heading which will be helpful for both of us. make sure the path you are using is appropriate

use this command to lookout for the path of command
Code:
#which mysql
/usr/bin/mysql   <---you will get output something similar to this
I don't think mysql lies inside
Code:
/etc/init.d
Code:
#/usr/bin/mysql start
Sorry, no. Starting MySQL like that isn't the recommended way.../etc/init.d/mysql start is the correct command most of the time. Starting the daemon that way requires a bunch of different variables, like the PID file, sockets, etc. The start script does this for you.

If the start script is missing (an "ls /etc/init.d/my*" will tell you), and it WAS there, then it somehow got deleted. If this is 'urgent', how about some actual details?? Version/distro of Linux, who has access to the system, any recent changes/patches/updates, etc.
 
2 members found this post helpful.
Old 01-05-2012, 09:49 PM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Thanks for the info TB0ne

In that case I believe the package is missing because in my workstation even I was getting the same error while trying to run
Code:
#/etc/init.d/mysql start
/etc/init.d/mysql No such file or directory
after I did a bit of google and fond that I need to install a package mysql-server

after which
Code:
# /etc/init.d/mysqld start
Starting MySQL:                                            [  OK  ]

# service mysqld start
Starting MySQL:                                            [  OK  ]
Is it because I installed mysql-server, I am getting mysqld instead of mysql or both are same thing?
Can you help me removing my confusion?
 
Old 01-05-2012, 11:02 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
mysqld = "mysql daemon" aka server
 
Old 01-06-2012, 01:32 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. Moreover, demanding urgent help from a community of volunteers that spend some of their free time to help others, is considered rude. Title edited.
 
1 members found this post helpful.
Old 01-06-2012, 10:15 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by deep27ak View Post
Thanks for the info TB0ne
In that case I believe the package is missing because in my workstation even I was getting the same error while trying to run
Code:
#/etc/init.d/mysql start
/etc/init.d/mysql No such file or directory
after I did a bit of google and fond that I need to install a package mysql-server after which
Code:
# /etc/init.d/mysqld start
Starting MySQL:                                            [  OK  ]
# service mysqld start
Starting MySQL:                                            [  OK  ]
Is it because I installed mysql-server, I am getting mysqld instead of mysql or both are same thing? Can you help me removing my confusion?
Chrism01 answered it already. And obviously if you don't install mysql-server, you won't be able to RUN a MySQL server, anymore than you could run a mail server without installing one. Which is why I asked what I did to the OP.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting MySQL Server gjagadish Linux - Server 4 06-24-2008 12:16 PM
Problems starting MySQL jeberga Linux - Software 1 03-11-2007 01:58 PM
problems starting up mysql Robin01 Linux - Software 4 10-07-2004 10:33 AM
mysql starting server landonmkelsey Linux - General 0 12-20-2003 09:20 AM
MySQL server not starting bige Linux - Software 5 07-02-2003 06:19 PM


All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration