Unix Technical Forum

Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

This is a discussion on Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters? within the MySQL forums, part of the Database Server Software category; --> I'm trying to use the same mysqld-nt.exe file in the same /bin folder to start multiple MySQL services on ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2008, 03:49 PM
Meglio
 
Posts: n/a
Default Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

I'm trying to use the same mysqld-nt.exe file in the same /bin folder
to start multiple MySQL services on Windows.

* I use mysqld-nt.exe --install to install services
* I use different service names
* I use different --defaults-file parameter (where I setup different
port and database location)

When I run one service the second one always terminates itself.

Thanks,
Anton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-03-2008, 03:49 PM
Kees Nuyt
 
Posts: n/a
Default Re: Can I use the same mysqld-nt.exe file to start multiple MySQL services on Windows by specifying different port/database parameters?

On Fri, 28 Mar 2008 04:43:56 -0700 (PDT), Meglio
<x.meglio@gmail.com> wrote:

>I'm trying to use the same mysqld-nt.exe file in the same /bin folder
>to start multiple MySQL services on Windows.
>
>* I use mysqld-nt.exe --install to install services
>* I use different service names
>* I use different --defaults-file parameter (where I setup different
>port and database location)
>
>When I run one service the second one always terminates itself.
>
>Thanks,
>Anton


Look in the error log.
Did you change the socket name and/or port number in
the defaults file?
Sockets and ports can't be shared by different
instances of MySQL.
--
( Kees
)
c[_] I used up all my sick days, so I'm calling in dead. (#420)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 03:50 PM
Meglio
 
Posts: n/a
Default Re: Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

On Mar 28, 10:40 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Fri, 28 Mar 2008 04:43:56 -0700 (PDT), Meglio
>
> <x.meg...@gmail.com> wrote:
> >I'm trying to use the same mysqld-nt.exe file in the same /bin folder
> >to start multiple MySQL services on Windows.

>
> >* I use mysqld-nt.exe --install to install services
> >* I use different service names
> >* I use different --defaults-file parameter (where I setup different
> >port and database location)

>
> >When I run one service the second one always terminates itself.

>
> >Thanks,
> >Anton

>
> Look in the error log.
> Did you change the socket name and/or port number in
> the defaults file?
> Sockets and ports can't be shared by different
> instances of MySQL.
> --
> ( Kees
> )
> c[_] I used up all my sick days, so I'm calling in dead. (#420)


The port and the path to the database are different. What is the
socket?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-03-2008, 03:50 PM
Meglio
 
Posts: n/a
Default Re: Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

On Mar 28, 10:40 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Fri, 28 Mar 2008 04:43:56 -0700 (PDT), Meglio
>
> <x.meg...@gmail.com> wrote:
> >I'm trying to use the same mysqld-nt.exe file in the same /bin folder
> >to start multiple MySQL services on Windows.

>
> >* I use mysqld-nt.exe --install to install services
> >* I use different service names
> >* I use different --defaults-file parameter (where I setup different
> >port and database location)

>
> >When I run one service the second one always terminates itself.

>
> >Thanks,
> >Anton

>
> Look in the error log.
> Did you change the socket name and/or port number in
> the defaults file?
> Sockets and ports can't be shared by different
> instances of MySQL.
> --
> ( Kees
> )
> c[_] I used up all my sick days, so I'm calling in dead. (#420)


I use different port number values and different path to the database
in my .ini files. What are sockets?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-03-2008, 03:50 PM
Meglio
 
Posts: n/a
Default Re: Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

On Mar 28, 10:40 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Fri, 28 Mar 2008 04:43:56 -0700 (PDT), Meglio
>
> <x.meg...@gmail.com> wrote:
> >I'm trying to use the same mysqld-nt.exe file in the same /bin folder
> >to start multiple MySQL services on Windows.

>
> >* I use mysqld-nt.exe --install to install services
> >* I use different service names
> >* I use different --defaults-file parameter (where I setup different
> >port and database location)

>
> >When I run one service the second one always terminates itself.

>
> >Thanks,
> >Anton

>
> Look in the error log.
> Did you change the socket name and/or port number in
> the defaults file?
> Sockets and ports can't be shared by different
> instances of MySQL.
> --
> ( Kees
> )
> c[_] I used up all my sick days, so I'm calling in dead. (#420)


Thanks, I just found the problem and I'm running the same .exe file as
2 services with different options.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-03-2008, 03:50 PM
Jerry Stuckle
 
Posts: n/a
Default Re: Can I use the same mysqld-nt.exe file to start multiple MySQLservices on Windows by specifying different port/database parameters?

Meglio wrote:
> On Mar 28, 10:40 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
>> On Fri, 28 Mar 2008 04:43:56 -0700 (PDT), Meglio
>>
>> <x.meg...@gmail.com> wrote:
>>> I'm trying to use the same mysqld-nt.exe file in the same /bin folder
>>> to start multiple MySQL services on Windows.
>>> * I use mysqld-nt.exe --install to install services
>>> * I use different service names
>>> * I use different --defaults-file parameter (where I setup different
>>> port and database location)
>>> When I run one service the second one always terminates itself.
>>> Thanks,
>>> Anton

>> Look in the error log.
>> Did you change the socket name and/or port number in
>> the defaults file?
>> Sockets and ports can't be shared by different
>> instances of MySQL.
>> --
>> ( Kees
>> )
>> c[_] I used up all my sick days, so I'm calling in dead. (#420)

>
> Thanks, I just found the problem and I'm running the same .exe file as
> 2 services with different options.
>


That shouldn't be a problem, as long as you have different config files.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com