canmove, Confirmed users
1,173
edits
(changing the modified column to decimal) |
(new constants for mysql to accommodate replication setups) |
||
Line 68: | Line 68: | ||
<pre> | <pre> | ||
define(' | define('WEAVE_MYSQL_STORE_READ_HOST', 'localhost') | ||
define(' | define('WEAVE_MYSQL_STORE_READ_DB', 'weave') | ||
define(' | define('WEAVE_MYSQL_STORE_READ_USER', 'weave') | ||
define(' | define('WEAVE_MYSQL_STORE_READ_PASS', 'weave'); } | ||
define('WEAVE_MYSQL_STORE_WRITE_HOST', WEAVE_MYSQL_STORE_READ_HOST) | |||
define('WEAVE_MYSQL_STORE_WRITE_DB', WEAVE_MYSQL_STORE_READ_DB) | |||
define('WEAVE_MYSQL_STORE_WRITE_USER', WEAVE_MYSQL_STORE_READ_USER) | |||
define('WEAVE_MYSQL_STORE_WRITE_PASS', WEAVE_MYSQL_STORE_READ_PASS); } | |||
</pre> | </pre> | ||
(Note that you don't need to define the second set of constants if you are using the same db for reads and writes) | |||
You can create users directly in mysql with the following command: | You can create users directly in mysql with the following command: |