forked from ether/etherpad-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
How to use Etherpad Lite with MySQL
fourplusone edited this page Jun 8, 2012
·
7 revisions
- Connect to mysql by opening a command prompt and typing the following:
mysql -u root -p - Once logged in, issue the following command to create the database:
create database `etherpad-lite`; - Grant permissions to a new database account. Replace
<user>and<password>with your own values.grant all privileges on `etherpad-lite`.* to '<user>'@'localhost' identified by '<password>'; - Leave the mysql client
exit - Edit settings.json in your Etherpad Lite root folder and change the database settings (if you have a non-default port configured for MySQL you will have to add the "port" setting).
- Run etherpad lite
- Exit etherpad-lite, connect again to mysql and run:
ALTER DATABASE `etherpad-lite` CHARACTER SET utf8 COLLATE utf8_bin;
USE `etherpad-lite`;
ALTER TABLE `store` CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;