English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Auto create new database
#7812
Auto create new database 12 Years, 9 Months ago Karma: 0
Is there any way in the config for a new database name, user and password to be created automatically when a user creates a new site? Currently it uses the same database as the master website.
locofede
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7826
Re: Auto create new database 12 Years, 9 Months ago Karma: 54
Yes this is possible but you have to use a MySQL user with "root" privileges.
See the user manual page 14 that speak about the "multisites.cfg.php" configuration file where you can setup the MySQL root login and password.
This MySQL root login is used when a new DB is defined and also used to automaitcally create the MySQL users with its password.

See also the "keywords" that can be used in the setup of a JMS Template rules.
You have some of them that can be used like {user_id}, {rnd_psw}, ...
They can help creating unique DB name, users and passwords.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7841
Re:Auto create new database 12 Years, 9 Months ago Karma: 0
We added the user with root privileges to "multisites.cfg.php" but now returns the following error:
"JDatabase::getInstance: Could not connect to database
joomla.library:2 - Could not connect to MySQL host=[localhost] with user="
locofede
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla