[Solved] MYSQL backup question

Post

Posted
Rating:
#5170 (In Topic #1166)
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’

includes the table_prefix?

Hello,

I used the Composr database backup tool today and then checked the log and it shows a success, but in naming each table it does not mention that I am using a table_prefix "new_" 

My database contains two sets, the original database and then a new one with the prefix of "new_" ....  

So I investigating by then doing a mysqldump and comparing the file sizes of the two database backups.

The mysqldump backup is twice as big as the Composr backup.

My guess is that the Composr backup is doing a backup of the normal tables and not including the new tables which use the prefix "new_" which is in my config.php file.

The site runs correctly, so no problem there, it is using the new tables.

I just wanted to check in on this matter

Thank you,

Stevyn



 

Last edit: by ironfeather


———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top

Post

Posted
Rating:
#5174
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
High-level Composr queries do not involve the table prefix. The table prefix is added at a lower level. The backup works at the higher-level.

So it is backing up the right tables, you just won't see the table prefixes in the PHP/Composr-API-based query code.

Only tables referenced in the Composr site's meta-database are backed up (db_meta table).


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5175
Avatar
Standard member
ironfeather is in the usergroup ‘Well-settled’


Ok cool,   Thank you for clarification on that.     :rockon:  





 

———–
Publisher of IronFeather Journal since 1987.  Host of KGNU Colorado Radio for 20 years. 
Currently in Japan & decided to focus on Composr as my number one CMS.
Composr site for community of Hokkaido:  Nandalow.com
Composr site for my freelance work: Futurecode.jp
My Compsr edits : 
http://ironfeather.com/bbs/viewtopic.php?f=12&t=2862
Twitter: https://twitter.com/futurecodejp

 
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top