Support Forums

Full Version: PHP automatically create new database after x tables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Is it possible to create a whole new mysql database, after one database reaches a certain amount of tables?

For example, if one database reaches over 200 tables, automatically create a new table.

Thanks
Why would you want to do this? Curious because I don't see how this is a benefit.

However it should be possible as long as the DB user has the proper permissions with MySQL.
(02-24-2010, 08:48 PM)Omniscient Wrote: [ -> ]Why would you want to do this? Curious because I don't see how this is a benefit.

However it should be possible as long as the DB user has the proper permissions with MySQL.

I am looking in to doing this because I am working on opening a MyBB web host, and I don't want to overload one MySQL database with all the tables.
Why not just create a new database for every site?
I agree with Omni, Creating a new database for every site would be a wiser idea.
I can't do that, because I only have a limit of 170 databases.