Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-db/mysql start/stop one slot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
guziknr1
n00b
n00b


Joined: 23 Jul 2007
Posts: 19
Location: Łaziska Górne

PostPosted: Mon Jul 23, 2007 10:40 pm    Post subject: dev-db/mysql start/stop one slot Reply with quote

How to start/stop only one MySQL slot? Is it possible?

--
guzik
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jul 24, 2007 3:04 am    Post subject: Reply with quote

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
View user's profile Send private message
guziknr1
n00b
n00b


Joined: 23 Jul 2007
Posts: 19
Location: Łaziska Górne

PostPosted: Tue Jul 24, 2007 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jul 24, 2007 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
guziknr1
n00b
n00b


Joined: 23 Jul 2007
Posts: 19
Location: Łaziska Górne

PostPosted: Tue Jul 24, 2007 9:14 am    Post subject: Reply with quote

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
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Tue Jul 24, 2007 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
guziknr1
n00b
n00b


Joined: 23 Jul 2007
Posts: 19
Location: &#321;aziska Górne

PostPosted: Tue Jul 24, 2007 9:33 am    Post subject: Reply with quote

---
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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6837
Location: Blighty

PostPosted: Tue Jul 24, 2007 10:45 am    Post subject: Reply with quote

See https://bugs.gentoo.org/show_bug.cgi?id=175783 for an init script that can multiplex, which is what you need to support service slots.

Commentry on that bug would help too - ie, does it work for you.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum