View previous topic :: View next topic |
Author |
Message |
guziknr1 n00b

Joined: 23 Jul 2007 Posts: 19 Location: Łaziska Górne
|
Posted: Mon Jul 23, 2007 10:40 pm Post subject: dev-db/mysql start/stop one slot |
|
|
How to start/stop only one MySQL slot? Is it possible?
--
guzik |
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jul 24, 2007 3:04 am Post subject: |
|
|
Moved from Portage & Programming to Networking & Security.
[mod]Since this is not an emerge issue but instead a mysql service issue, I've moved the thread to N&S.[/mod]
Hi.
What do you mean? Do you have more than one instance of mysql running on your system? Do you want to restart just one "database"? _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
guziknr1 n00b

Joined: 23 Jul 2007 Posts: 19 Location: Łaziska Górne
|
Posted: Tue Jul 24, 2007 5:33 am Post subject: |
|
|
I've got few instances of MySQL (0_0, 0_1, 0_2, etc.). I want to restart just one of them using startup scripts, eg. /etc/init.d/mysql restart 0_0 (like restarting jail's in FreeBSD).
--
guzik |
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jul 24, 2007 9:04 am Post subject: |
|
|
Have you tried using one of the following?
Code: | # /etc/init.d/mysql restart 0_0
# /etc/init.d/mysql restart 0 0 |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
guziknr1 n00b

Joined: 23 Jul 2007 Posts: 19 Location: Łaziska Górne
|
Posted: Tue Jul 24, 2007 9:14 am Post subject: |
|
|
abg ~ # /etc/init.d/mysql start 0_0
[...]
* ERROR: wrong args ( 0_0 )
[...]
abg ~ # /etc/init.d/mysql start 0 0
[...]
* ERROR: wrong args ( 0 )
[...]
* Usage: mysql { start|stop|restart }
Usage: mysql [ flags ] < options >
There is nothing about slot after options
--
guzik |
|
Back to top |
|
 |
jmbsvicetto Moderator


Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Tue Jul 24, 2007 9:27 am Post subject: |
|
|
Try switching the slot with the command:
Code: | # /etc/init.d/mysql 0_0 restart
# /etc/init.d/mysql 0 0 restart |
Anyway, due to the negative response from the user base, the mysql team has decided to revert to non-slotted installs. You should read this guide to revert your mysql server. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
 |
guziknr1 n00b

Joined: 23 Jul 2007 Posts: 19 Location: Łaziska Górne
|
Posted: Tue Jul 24, 2007 9:33 am Post subject: |
|
|
---
abg ~ # /etc/init.d/mysql 0_0 start
* ERROR: wrong args ( 0_0 )
* Usage: mysql { start|stop|restart }
* mysql without arguments for full help
abg ~ # /etc/init.d/mysql 0 0 start
* ERROR: wrong args ( 0 )
* Usage: mysql { start|stop|restart }
* mysql without arguments for full help
---
I'm using the same version of MySQL but with different config files (and data locations). This is only reason to use slotted MySQL by me.
--
guzik |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6837 Location: Blighty
|
|
Back to top |
|
 |
|