Site NavigationQuicksearchMy del.icio.us
|
Friday, March 3. 2006Enabling and using the MySQL Instance Manager (IM)Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
I have always been intrigued by the instance manager. I was able to use it to start some instances but not to use the interface.
This is as far as I have gone so far, in two different distributions (FC4, Debian 3.1).
# --------------- CUT
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 0.2-alpha
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Segmentation fault
# --------------- CUT
The instance manager has been in version 0.2-alpha since MySQL 5.0.3, so I don't think it's wise to make it the default method of starting a server.
There was a bug report about this problem, and it was closed as if it was solved.
One more reason why I would not use the instance manager instead of mysqld_safe is because the IM is not as flexible. With mysqld_safe I can put a configuration file in /etc/my.cnf (if I am root), in the base directory, or in the home directory of the user starting the mysqld instance. To do the same with the instance manager I should modify the mysql.server script, which is not an easy task.
I hope that 5.1 can bring some strenghtening to this utility, which I love in principle, although I can't yet appreciate in practice.
Giuseppe
Hi Giuseppe, thanks for your comment!
<p>
I too experienced the problem with the MySQL client crashing when connecting to the IM - I managed to get rid of the crashes by not modifying the mysql command prompt - see http://bugs.mysql.com/bug.php?id=17485 for my report about this.
<p>
As for your other reason: have you considered filing this as an enhancement request yet?
Hi Lenz,
Thanks for the valuable info. Now I can use it.
I submitted a bug report ( <a href="http://bugs.mysql.com/17962"> #17962</a>) about the problem, and more to follow ...
Giuseppe
Hi Lenz,
instead of editing the start script directly (setting <strong>use_mysqld_safe</strong> to *0*) I'd suggest to add the option <strong>use-manager</strong> instead to the *my.cnf*.
The start script seems to parse and respect this setting and that way it won't get lost when you do an update of the script (I use a symlink in the /etc/init.d/ directory that points directly to the start script in the mysql installation directory to always use the most recent version of the start script as well, when I do an update of MySQL).
However on our production servers I still use <strong>mysqld_safe</strong> until the instance manager has matured a little bit.
Regards,
Beat
Hi Beat, thanks for the suggestion! I fully agree with you, this has bitten me a few times as well. Now filed in our bugs DB: http://bugs.mysql.com/bug.php?id=17953
Lenz, maybe it doesn't work in 5.1 yet (if this hasn't been merged into that tree, didn't check), but for me it seems to work at least in recent 5.0 releases. As I wrote: Just add <strong>use-manager</strong> to /etc/my.cnf. I looked into the code of the init.d script and found that it respects this setting. Maybe it's just not documented. I added a comment to your bug report.
One more issue about the IM.
Thanks to your tip about the prompt, I am now using it, although it still has some small problems.
Mainly, I want to use it with many different versions of MySQL, since I need to have several of them available in the same server. However, I don't want them to start all together. To be able to use them on demand, I put the "nonguarded" option in each of them, so that I can start the ones I need with a "START INSTANCE" command. However, it seems that, when an instance is started that way, it is not checked at all, and it isn't even stopped when I close the instance manager. This is according to the docs, however, but then I don't understand how I am supposed to prepare five instances and to run them on demand without restarting the IM.
Before submitting a bug report, is there any useful tip about this fact? And, BTW, to which forum should I ask questions about the IM?
Thanks for any comments.
Giuseppe
Hi Giuseppe, thanks for these comments. I don't think we have a dedicated IM forum yet, but it might be a good idea to create one, to get some more traction behind the IM. With regards to your other question, I'd like to encourage you to file this as an enhancement request in our Bugs DB. This sounds like a good idea for improvement. Thanks!
|
Blog AdministrationCalendar
CategoriesShow tagged entries article award baby backup betatest blog book bzr cebit cluster cms collaborating community compiling conference configuration contributing databases development distribution drivers drupal eclipse email engine event falcon forge fosdem froscon gallery groupware gui Hardware hint installation interview java licensing life linux lvm magazines mailinglist meeting mylvmbackup mysql news opengis openoffice opensolaris OSS packaging perl Personal php pictures planetmysql plugins presentation programming proxy python RPM rss sfd Site News slides snapshots solaris subversion sun survey suse thinkpad trackball trademarks travel tweak university update usergroup utility virtualization web webinar wiki windows writings |
|||||||||||||||||||||||||||||||||||||||||||||||||