Organising tables mysql
Just wondering if there is a way to store mysql tables in a typical tree dir structure?
So for example, instead of having 20 tables, have 10 tables under an accounts folder, 5 under products, 5 under archives...
My guts tells me you have 1 table for each account. Terribly wrong.
All together you need 3 tables (accounts,products,archives)
No no nooooooooooooooooooooooo!!!!!
I only have one table for accounts etc, but the DB is for a song list web app, so there are a few tables that take care of...
- gig guide
- song book accounts
- public user accounts
- user logged tokens
- password reset keys
- social networking relationships
I just wanted to know if I can set up a dir somewhere in the database to store the archive tables that I create over time?
Use a different database, then.
I do that.
I have a database named "backups".
And when I need to I do something simllar to this:
I should note that storing backups in the same database on the same server on the same disk drive is not a good idea. One disk drive failure and everything is gone.
At the minimum, you should have two disk drives and then tell MySQL to put the backups tables on the backup disk drive. (Yes, MySQL can store different databases on different drives.)
Better is to use mysqldump to create text files as backups and store them offline and/or on some other server.
|All times are GMT +1. The time now is 09:46 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.