-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
How to migrate from MySQL to PostgreSQL
t2d edited this page Jul 4, 2025
·
1 revision
# install packages
apt install postgresql pgloader
# create user and db
sudo -u postgres createuser etherpad
sudo -u postgres createdb -O etherpad etherpad
sudo -u postgres -i
# migrate db
cat <<EOF >>pgloader.load
LOAD DATABASE
FROM mysql://etherpad:MYPASSWORD@127.0.0.1/etherpad
INTO postgresql:///etherpad
WITH
preserve index names,prefetch rows = 100
alter schema 'etherpad' rename to 'public'
;
EOF
pgloader --verbose pgloader.load
psql etherpad
etherpad=# ALTER USER etherpad WITH PASSWORD 'NEW_PASSWORD';
etherpad=# GRANT pg_read_all_data TO etherpad;
etherpad=# GRANT pg_write_all_data TO etherpad;
Now continue normally to configure Etherpad-Lite to use PostgreSQL
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries