Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a MySQL Server Instance?

I'm trying to understand what is meant by a Server Instance in MySQL. Googling for the term "MySQL Server Instance" reveals nothing, and the only reference I can find in the documentation refers to using the New Server Instance Wizard, but doesn't seem to explain why I'd ever want to use this.

Coming from a Microsoft SQL Server background, a (named) instance is a completely separate and isolated installation of the server, running in its own process and on its own port. However, in MySQL a (server) instance seems to be a different beast, as for starters it seems to use the same port as my "existing" "instance".

From the Home page of MySQL Workbench, I have the option on the right hand side to create a New Server Instance. What is a MySQL Server Instance, and why would I ever want to create a new one?

like image 452
Mike Chamberlain Avatar asked Nov 03 '11 23:11

Mike Chamberlain


1 Answers

A server instance is a MySQL server running somewhere, and also how to connect to it. See the reference manual, which says:

A server instance is created to provide a way of connecting to a server to be managed.

Though it is somewhat circular, it makes sense from configuring the control manager's connection options where one can choose to connect to any number of MySQL servers, or connect to the same server in several different ways (like through a VPN or secondary network).

like image 101
wallyk Avatar answered Oct 12 '22 21:10

wallyk