<div dir="ltr"><div>Thank you for your advice.</div><div>I ran the command on my Windows 11 PC and received the following error message:-</div><div>mysqldump: Got error: 2002: "Can't connect to server on 'localhost' (10061)" when trying to connect</div><div>I assumed that it was because digikam wasn't running, but when I tried again with digikam running the same thing happened.<br></div><div>As you know, I don't know much about MySql/MariaDB, so I don't know how to fix this.</div><div>Regards</div><div>Steve</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, 30 Mar 2025 at 13:58, Art Zemon <<a href="mailto:art@zemon.name">art@zemon.name</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">Steve,</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">When you use a database like MariaDB, you need to export the data in a format that can be re-imported. Saving all 720 files is one option but a poor one. Should you miss a single file, or try to restore it to a different machine or a different version of MariaDB then the restore might fail.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">I use the mysqldump tool to export all of the tables. Check that out and test restoring it before you trust that your backups are valid.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">The command that I use is: <span style="font-family:monospace">mysqldump -hlocalhost --opt digikam > digikam.sql</span></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">I then back up the digikam.sql file to my NAS box.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">To restore the database, I would first create it and then reload the data with: <span style="font-family:monospace">mysql < digikam.sql</span></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">I am running on Linux and I named my database "digikam" so you may need to tweak this command to suit your own situation.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"> -- Art Z.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 30, 2025 at 6:32 AM Steve Franks <<a href="mailto:stevef48@gmail.com" target="_blank">stevef48@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>The internal sql database consists of 4 files, but the Mariadb database on my Windows PC now has 720 files in 7 folders taking up 46.3gb of space.</div><div>Do I need to retain all of these files? 439 of them are named mysql-bin.99999 and
mysql-bin.99999.idx (99999 means a 5 digit number), are these necessary?</div><div>Thanks in advance</div><div>Steve <br></div><div><br></div></div>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="georgia, serif">My blog: <a href="https://CheerfulCurmudgeon.com/" target="_blank">CheerfulCurmudgeon.com</a></font></div><div dir="ltr"><div dir="ltr"><div dir="ltr"><i style="color:rgb(34,34,34);font-family:georgia,serif"><span style="color:rgb(0,0,0)"></span></i><i style="color:rgb(34,34,34);font-family:georgia,serif"><span style="color:rgb(0,0,0)">In a place where there are no humans, strive to be human. [Pirkei Avot 2:5]</span></i></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>