LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2004, 10:37 PM   #1
jriis
Member
 
Registered: May 2001
Distribution: Debian, Foresight
Posts: 72

Rep: Reputation: 15
Getting MySql to run on startup


Hi

I just succeeded in getting my Debian box up and running. I have installed MySql, but I am not sure how I get it running on startup. On Mandrake you could chose what to run on startup, but with Debian it seems that this should be set up manually ?
 
Old 03-07-2004, 11:18 PM   #2
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
check it whether is it running or not by

ps -ef|grep mysqld

enjoy
 
Old 03-08-2004, 01:13 AM   #3
jriis
Member
 
Registered: May 2001
Distribution: Debian, Foresight
Posts: 72

Original Poster
Rep: Reputation: 15
Hi

It is not running. What I am looking for is how I get it to run on start up, either through Inetd og standalone.

thanks
 
Old 03-08-2004, 08:32 AM   #4
pipio
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian Sid
Posts: 12

Rep: Reputation: 0
Try dpkg-reconfigure mysql
 
Old 03-10-2004, 01:27 PM   #5
restless
Member
 
Registered: Feb 2003
Location: Belgium
Distribution: Debian
Posts: 166

Rep: Reputation: 31
if it's installed then try:

/etc/init.d/mysql start


or you can try to install webmin.. easy managment program.. (www.webmin.com)
 
Old 03-12-2004, 02:03 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
How did you install mysql? Source or apt-get?

1. You probably installed it via source because if you installed it via 'apt-get' then it would've already added a start script in your run level. If you want to start it during boot up, then create a symbolic link (soft link) in your run level (/etc/rcX.d)

-twantrd
 
Old 03-12-2004, 07:09 AM   #7
jogurt666
Member
 
Registered: Nov 2003
Location: Poland => Mazowieckie => Ok'a
Distribution: Gentoo
Posts: 176

Rep: Reputation: 30
well i've installed MySQL from source files, but there is one problem with it. namely when i type /usr/local/mysql/bin/mysqld -uroot , it starts mysql server, but it blocks the screen (or terminal). there is no problem when it is run after starting xserver, because you can easily close the terminal emulator window, but when you run it in text mode, it blocks whole screen. of course you may have more screens (tty's) configured, but if you don't, you cannot restore that screen even by pressing Ctrl+C. if you run it during the system startup it'll stop it after starting mysql demon.
 
Old 03-16-2004, 12:37 AM   #8
jriis
Member
 
Registered: May 2001
Distribution: Debian, Foresight
Posts: 72

Original Poster
Rep: Reputation: 15
Hi, I got it running now. I did what Pipio suggested and it works. Thanks.
 
Old 03-16-2004, 12:20 PM   #9
pipio
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian Sid
Posts: 12

Rep: Reputation: 0
I'm glad that I could be helpfull.

Have fun!
 
  


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
Debian run MySQL on Startup baandar Linux - Software 3 09-02-2004 01:45 AM
hostname, modprobe, run apache + mysql on startup intense Slackware 7 03-19-2004 09:09 AM
I want MySQL to run at startup WorldBuilder Linux - General 12 06-14-2003 01:45 AM
Apache and MySQL servers won't run at startup! dday007 Linux - Newbie 2 02-07-2003 04:01 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM


All times are GMT -5. The time now is 10:28 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration