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 > Name-based virtual servers?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Name-based virtual servers?

Réponse
 
LinkBack Outils de la discussion
Vieux 20/12/2007, 15h00   #1
ryan@iheartryan.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Name-based virtual servers?

Hi. I'd like to set up something like apache's name-based virtual
hosting.

I read the docs for mysqlmanager. It told me how to set it up to run
multiple instances of mysql on one machine, where each instance had its
own port number and socket file.

I'd like to have my users connect to their own servers instead, and not
have to remember a port number. Like:
mysql -h mysql.username.domain.com -u username -p

and then they'd be pointed at their appropriate instance.

Anybody know how I can do that?

Thanks.
--Ryan
  Réponse avec citation
Vieux 20/12/2007, 18h55   #2
ryan@iheartryan.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Name-based virtual servers?

Okay, I've convinced myself that this can't be done. In the http world,
it can be done only because http/1.1 includes the hostname in the request.
If mysql doesn't do that, there's no way to handle all the cases.

So I'll either have to settle for people remembering their own socket
files, or ...

I would settle for a single shared database in which users could create
databases and drop their own databases but not other users'. They'll have
to live with namespace collisions.

Is that possible to do with mysql's permissions?

Thanks.
--Ryan

On Thu, 20 Dec 2007 ryan@iheartryan.com wrote:

> Hi. I'd like to set up something like apache's name-based virtual
> hosting.
>
> I read the docs for mysqlmanager. It told me how to set it up to run
> multiple instances of mysql on one machine, where each instance had its
> own port number and socket file.
>
> I'd like to have my users connect to their own servers instead, and not
> have to remember a port number. Like:
> mysql -h mysql.username.domain.com -u username -p
>
> and then they'd be pointed at their appropriate instance.
>
> Anybody know how I can do that?
>
> Thanks.
> --Ryan
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=ryan@iheartryan.com
>

  Réponse avec citation
Vieux 20/12/2007, 20h58   #3
bruce
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Name-based virtual servers?

ryan...

mysql has the ability to set access rights to a given database/tables for
given users.

so it's easy to create a database, and to only allow a given set of users
access to the database. in fact, if you lock it down enough, only the user
with permissions will know the db exists... unless they have access to the
physical filesystem, and then it's a simple matter of examining the dir or
the files.. (assuming myisam)..

regards...



-----Original Message-----
From: ryan@iheartryan.com [mailto:ryan@iheartryan.com]
Sent: Thursday, December 20, 2007 10:55 AM
To: mysql@lists.mysql.com
Subject: Re: Name-based virtual servers?


Okay, I've convinced myself that this can't be done. In the http world,
it can be done only because http/1.1 includes the hostname in the request.
If mysql doesn't do that, there's no way to handle all the cases.

So I'll either have to settle for people remembering their own socket
files, or ...

I would settle for a single shared database in which users could create
databases and drop their own databases but not other users'. They'll have
to live with namespace collisions.

Is that possible to do with mysql's permissions?

Thanks.
--Ryan

On Thu, 20 Dec 2007 ryan@iheartryan.com wrote:

> Hi. I'd like to set up something like apache's name-based virtual
> hosting.
>
> I read the docs for mysqlmanager. It told me how to set it up to run
> multiple instances of mysql on one machine, where each instance had its
> own port number and socket file.
>
> I'd like to have my users connect to their own servers instead, and not
> have to remember a port number. Like:
> mysql -h mysql.username.domain.com -u username -p
>
> and then they'd be pointed at their appropriate instance.
>
> Anybody know how I can do that?
>
> Thanks.
> --Ryan
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=ryan@iheartryan.com
>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/mysql?unsub=b...@earthlink.net

  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 23h21.


É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,12902 seconds with 11 queries