I am basically curious about if it is possible to continue a table that has been created in one database to be continued in another. For example, if a table has been created for users ,each one having a unique id that increments, is in one database but becomes “full”, can that same table be continued in another database with the unique ids still being incremented even if that database is on another server.
I apologize in advance if this is a noob question. I am new to MySql.
Tables never get full unless you run out of physical disk space. They can get really loaded down with data, though, if you have a large volume of users.
What you’re talking about in general terms is either partitioning, sharding or clustering. Usually this is done for performance reasons, not because any particular table is physically too large. Be wary about doing this, though, because the overhead of this change is significant and will require a very disciplined effort to use correctly throughout your application.
If you’re using some kind of Object Relationship Mapper (ORM) to interface with your database, this may have a feature that makes this easier from a programming perspective.
Unless you have tens of millions of rows there’s probably ways to tune your database to get the performance you require.