Skip to content

isgroup/selfoss_sqlite2mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fbaa3da · Jan 14, 2014

History

6 Commits
Jan 13, 2014
Jan 13, 2014
Jan 14, 2014

Repository files navigation

selfoss_sqlite2mysql

Convert the Selfoss DB from Sqlite to MySQL

Installation

Create a new istance of Selfoss by moving the old installation from "feed" to "feed_old".

Create a new database

CREATE DATABASE `feed` CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON `feed`.* TO `feed`@localhost IDENTIFIED BY '[CHANGEME]';
FLUSH PRIVILEGES;

Selfoss configuration

In the new installation copy and edit the default configuration.

cp defaults.ini config.ini

The values to be changed are the following:

db_type=mysql
db_host=localhost
db_database=feed
db_username=feed
db_password=[CHANGEME]
db_port=3306

And the password protection data:

username=feed
password=[CHANGEME]
salt=[CHANGEME]

Upload the selfoss_sqlite2mysql.php in the old installation.

./selfoss_sqlite2mysql.php 127.0.0.1 feed feed [CHANGEME]

See http://selfoss.aditu.de/ for more detailed documentation.

Fix corrputed tables

mysqlcheck -e feed -u root -p

About

Convert the Selfoss DB from Sqlite to MySQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published