-
Committer:
Adam Gandelman
-
Date:
2011-07-20 20:54:56 UTC
-
mfrom:
(54.1.7 mysql)
-
Revision ID:
adamg@canonical.com-20110720205456-azhlu2yhep6tbm6j
Provide shared-db functionality to allow multiple peers to use the same
database.
At join, peer requests access to $DATABASE for $USERNAME@$REMOTE_IP. If
$DATABASE does not exist, it is created. If grant for $USERNAME@$REMOTE_IP on
$DATABASE.* does not exist, it is created with a random password. The peer
receives the password and the IP of the mysql server.
TODO: Cleanup grants for peers that have left the relation