dbTalk Databases Forums  

how to restart mysql and apache?

mailing.database.myodbc mailing.database.myodbc


Discuss how to restart mysql and apache? in the mailing.database.myodbc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default how to restart mysql and apache? - 05-09-2006 , 01:00 PM






hi again,
I have to restart as soon as possible mysql and apache on our web server
(mandrake cooker 10) - since our admin is "out of office" for today.

if someone can ive me some instructions, please?

1. what I have to restart first apaceh or mysql - or desn't matter?
2. I have sudo access (if I understand it correct, I have root privilages
even I loged in as "regular" user) to web server - enough or I have to
have root access to do restart?

Thanks for any help.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-09-2006 , 01:45 PM






found this:
/etc/rc.d/init.d/mysqld restart
/etc/rc.d/init.d/httpd2 restart

I think it should work?

-afan


Quote:
On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:

hi again,
I have to restart as soon as possible mysql and apache on our web server
(mandrake cooker 10) - since our admin is "out of office" for today.

if someone can ive me some instructions, please?

1. what I have to restart first apaceh or mysql - or desn't matter?
2. I have sudo access (if I understand it correct, I have root
privilages
even I loged in as "regular" user) to web server - enough or I have to
have root access to do restart?

Thanks for any help.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/mysql?unsub=r...mail (DOT) com



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-09-2006 , 01:50 PM



On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:
Quote:
hi again,
I have to restart as soon as possible mysql and apache on our web server
(mandrake cooker 10) - since our admin is "out of office" for today.
Are you sure you MUST restart those services? AFAIK you run Linux
exactly because you don't wanna do that

Quote:
if someone can ive me some instructions, please?

1. what I have to restart first apaceh or mysql - or desn't matter?
Anyway:
/etc/init.d/mysql restart
/etc/init.d/apache2 restart (or apache, depends on your version)

Quote:
2. I have sudo access (if I understand it correct, I have root privilages
even I loged in as "regular" user) to web server - enough or I have to
have root access to do restart?
If you have enough privileges using sudo (all privileges to be exact),
you can run sudo su and "become root", but that's just a security flaw
and you should blame your admin for that! Try it:

sudo su -c "/etc/init.d/mysql restart"
or simply
sudo su
and performe the commands listed for your first question.

If it succeed, you restart the server, but then you have an insecure
and bad configured system.

Quote:
Thanks for any help.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Ddanieldaveiga@gma=
il.com



--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-09-2006 , 01:52 PM



On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:
Quote:
found this:
/etc/rc.d/init.d/mysqld restart
/etc/rc.d/init.d/httpd2 restart

I think it should work?

Yeah, different systems, different locations, but the same purpose...

--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-09-2006 , 02:28 PM



On 5/9/06, Edward Vermillion <evermillion (AT) doggydoo (DOT) net> wrote:
Quote:
On May 9, 2006, at 1:50 PM, Daniel da Veiga wrote:

On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:
hi again,
I have to restart as soon as possible mysql and apache on our web
server
(mandrake cooker 10) - since our admin is "out of office" for today.

Are you sure you MUST restart those services? AFAIK you run Linux
exactly because you don't wanna do that


Um... you run linux because you *can* do that. IE. you don't have to
reboot the server to restart the services...

From another point of view, Yeah, true!

--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-09-2006 , 02:45 PM



Thanks Daniel!

-afan



Quote:
On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:
found this:
/etc/rc.d/init.d/mysqld restart
/etc/rc.d/init.d/httpd2 restart

I think it should work?


Yeah, different systems, different locations, but the same purpose...

--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=a...afan (DOT) net



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
  #7  
Old   
AT
 
Posts: n/a

Default Re: how to restart mysql and apache? - 05-10-2006 , 04:35 AM



Hi,

If it is your default apache /usr/sbin/apachectl start

and mysql

/etc/init.d/mysql.server start


This might help you out.


Daniel da Veiga wrote:

Quote:
On 5/9/06, afan (AT) afan (DOT) net <afan (AT) afan (DOT) net> wrote:

found this:
/etc/rc.d/init.d/mysqld restart
/etc/rc.d/init.d/httpd2 restart

I think it should work?


Yeah, different systems, different locations, but the same purpose...

--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------


--
Thanks & Regards,
Dilipkumar
DBA Support

********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin (AT) sifycorp (DOT) com

Watch India vs. England LIVE, Hot videos and more only on Sify Max! Click Here. www.sifymax.com

Get to see what's happening in your favourite City on Bangalore Live! www.bangalorelive.in


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.