-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restoring Database #67
Comments
I can help you out. You have it saved as a SQL file? I can give you restore coanda for it. Will just be tomorrow when I'm back at my desk If you're backing up the SQL folders I'm actually not sure how to restore that but I can test it out |
I had a backup of the whole VM drive, I haven't tried but I should be able to boot Ampache correctly from that instance. Edit: Confirmed, previous instance is working and healthy. |
I managed in the end to solve the issue, by packing the backed-up database into a tar file, and using it as a container to preserve the permissions and ownerships, when unpacking back in the new server. |
Hello! I am a klutz and deleted my mysql database from my binded drive! Yes praise me more.
Luckily, I know I am a klutz, and had a backup ready, a couple of weeks old. So I tried putting back the folders where they are meant to be, but Ampache has still issues trying to connect to it.
I am not familiar with how to restore sql databases, nor how they work actually. Last time I had something like this happening on me (yeah it's not the first time...) I had to give up after two weeks of looking around and restart my database from scratch.
I would really really like to get my database back this time though, so this time I am asking for the help of somebody more competent than me.
Here are some probably useful informations:
Version is Ampache 4.4.3-release, running as a docker container in a Ubuntu Server OS, within a VM. It has been working as expected until I messed up.
I activated debug in the ampache.cfg.php file, the logs are full of this:
I use Portainer to manage my docker containers, its log say this:
Three bound drives, aside from the media, are outside of the container:
And this is the content of mysql folder, mounted as
/var/lib/mysql
:going in the container with
docker exec -it ampache /bin/bash
I seem able to correctly read and write said folders.Database Connection and Database Tables return an error state in /test.php.
As always I am most likely missing something obvious, but I still need your help to figure it out.
I hope opening an issue here on Github, here on the Docker-specific fork, is the right thing to do to ask help, if not please redirect me to a more suitable place. If it is...
Please help me 😄
The text was updated successfully, but these errors were encountered: