Created
November 16, 2023 19:24
-
-
Save cfbastarz/2c00f9f6373d3ade7ce8ec890bd1c302 to your computer and use it in GitHub Desktop.
Switch KDE Akonadi from MySQL to PostGRES
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akonadi stop | |
sudo apt-get install akonadi-server akonadi-backend-postgresql | |
cd $HOME/.config/akonadi/ | |
cp akonadiserverrc akonadiserverrc.bak | |
cat << EOF > $HOME/.config/akonadi/akonadiserverrc | |
[Debug] | |
Tracer=null | |
[%General] | |
Driver=QPSQL | |
[QPSQL] | |
Host=/run/user/1000/akonadi | |
InitDbPath=/usr/lib/postgresql/14/bin/initdb | |
Name=akonadi | |
Options= | |
ServerPath=/usr/lib/postgresql/14/bin/pg_ctl | |
StartServer=true | |
EOF | |
cd $HOME/.local/share/akonadi | |
mv db_data db_data.bak-mysql | |
mkdir db_data | |
akonadi start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment