PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > running a second mysql server
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
running a second mysql server

Réponse
 
LinkBack Outils de la discussion
Vieux 25/10/2007, 19h26   #1
Naufal Sheikh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut running a second mysql server

Hi List,

Though new to mysql server, I was pretty happy with what I was doing till I
needed to run another instance of mysql server on the same machine.

My first installation is running on port 3307 instead of default which I
achieved by adding a port attribute in /etc/my.cnf file. Rest of the
/etc/my.cnf file contains the basedir, data dir . logs and pid etc. Now I
need to install a second server running on 3306 and all different pid,
datadir paths etc...

When I install the second version giving all the enw paths to configure and
then run mysqld, it always say mysqld is already running. I have tried other
ways using the default-files option, changing the cnf file locations.... and
none if it working.

I will appreciate any pointers please!

Thanks

  Réponse avec citation
Vieux 26/10/2007, 02h22   #2
Mathieu Bruneau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: running a second mysql server

Naufal Sheikh a écrit :
> Hi List,
>
> Though new to mysql server, I was pretty happy with what I was doing till I
> needed to run another instance of mysql server on the same machine.
>
> My first installation is running on port 3307 instead of default which I
> achieved by adding a port attribute in /etc/my.cnf file. Rest of the
> /etc/my.cnf file contains the basedir, data dir . logs and pid etc. Now I
> need to install a second server running on 3306 and all different pid,
> datadir paths etc...
>
> When I install the second version giving all the enw paths to configure and
> then run mysqld, it always say mysqld is already running. I have tried other
> ways using the default-files option, changing the cnf file locations.... and
> none if it working.
>
> I will appreciate any pointers please!
>
> Thanks
>

Hi,
One of the best way to run multiple instance on the same box is by
using mysqld_multi.

I'll suggest looking at the doc for it :
http://dev.mysql.com/doc/refman/5.0/...qld-multi.html

Basically you need to redeclare the pid, datadir etc (looks at the
exemple). You'll probably need to work out a bit the init script for
your distribution too!

Another one is the instance manager for which I have no experience. The
documentation should provide the information needed however:
http://dev.mysql.com/doc/refman/5.0/...d-options.html

Regards,

--
Mathieu Bruneau
aka ROunofF

===
GPG keys available @ http://rounoff.darktech.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09624 seconds with 10 queries