Page MenuHomePhabricator

Setup MariaDB for Pronlex on Horizon
Closed, ResolvedPublic


  • Create wikispeech-tts-mariadb
  • Install MariaDB
  • Setup Pronlex locally to populate database
  • Populate database from Pronlex

Event Timeline

sudo apt -y update
sudo apt -y install software-properties-common gnupg2
sudo apt -y upgrade
sudo reboot

Setup your your favorite mirror: (I used Kenya for no reason. You might want something more local or more trusted.)

sudo apt-key adv --recv-keys --keyserver 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64] buster main'
sudo apt update

Install MariaDB.

sudo apt install mariadb-server mariadb-client

Secure, but don't set a root password. Pronlex expects this (?! really ?!) and will create a user and databases further down.

sudo mysql_secure_installation

Install and setup GoLang.

sudo apt install build-essential gcc
cd ~
mkdir opt
wget -O /tmp/go1.13.linux-amd64.tar.gz
cd opt
tar xvfz /tmp/go1.13.linux-amd64.tar.gz
export GOROOT=~/opt/go
export GOPATH=~/opt/goProjects
export PATH=${GOPATH}/bin:${GOROOT}/bin:${PATH}

Install and build Pronlex.

cd ~
git clone
cd ~/mediawiki-services-wikispeech-pronlex
go build ./...

Populate MariaDB with Lexdata.

cd ~
git clone
/bin/bash scripts/ -a ~/appdir -e mariadb -l 'speechoid:@tcp(' -f ~/wikispeech-lexdata


(You might want to set a password for the MariaDB user Speechoid at this point)

(You can down delete all GoLang, Pronlex and Lexdata folders if you want.)

Start the Prolex in your Speechoid pointing it at this MariaDB. Something like:

/bin/bash scripts/ -a /srv/appdir -e mariadb -l 'speechoid:password@tcp(wikispeech-tts-pronlex:3306)'