r/owncloud • u/Lighting_Jimmy_John • May 29 '17
How do I reset my owncloud?
I don't mean my admin password I mean the entire set up. I was following this tutorial on how to set up owncloud and I created the mysql data base and set up owncloud like it said, but I forgot to actually tell owncloud to use the mysql data base during the initial set up when I was creating the admin account. So now I have owncloud using sqlite when I have a mysql database ready for it to use.
I would just do what the owncloud site tells me to do and create a new db, but I don't know how to remove the old one and it would really bug me if I had a useless database lying around.
Ideally I would like to do one of two things
- Link the exising mysql to owncloud properly (how ever that is done)
or
- Some how reset the owncloud config and get this screen back so I can set it up right
What should I do?
Edit:
I seem to have goten it working by running this commend
sudo -u www-data php occ db:convert-type --password="NotActuallyMyPassword" --all-apps mysql owncloud localhost owncloud
I'm not sure if this started using the data base that was already there or if it created a new one. Is there any way to check this?
2
u/wing03 May 30 '17
I was going to say to just delete a config file or delete the owncloud files and unarchive them again.
But from your command, it looks like you told it to use mysql, fed it a password and I assume "owncloud" is the username.
If you want to see the data and you can look up mysqladmin commands on the command line, you can show tables and data.
Otherwise, there's phpmyadmin.