Quantcast
Channel: nwlinux » MySQL
Viewing all articles
Browse latest Browse all 10

Change ownCloud from sqlite to MySQL database

0
0

I was unhappy with the performance from SQLite3 on my Ubuntu 10.04.4 box. Time for a change to MySQL. After consulting documentation and forums on the ownCloud site, the conversion required changing a line or two on the config/config.php file. Here are the steps that I took to convert my ownCloud installation to MySQL.

First, install the required new packages. I also installed a PHP cache called APC. Instructions on configuring APC are also found on nwlinux.

sudo apt-get install mysql-server php5-mysql php-apc
sudo apt-get purge sqlite
sudo service apache2 restart

Things to note about converting to MySQL:
1. you lose your bookmarks (if enabled)
2. you lose your contacts

Now, edit your config/config.php and change the installed => true to installed => false.

My install screen kept showing the only option of sqlite. After restarting Apache again, the MySQL option came back to life.

Performance with MySQL is remarkably better. The site is snappy and happy to store my files.

 

 


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images