Services/Sync/Server/Archived/0.3/Setup/Server: Difference between revisions

new constants for mysql to accommodate replication setups
(changing the modified column to decimal)
(new constants for mysql to accommodate replication setups)
Line 68: Line 68:


<pre>
<pre>
define('WEAVE_MYSQL_AUTH_HOST', '<db host>');
define('WEAVE_MYSQL_STORE_READ_HOST', 'localhost')
define('WEAVE_MYSQL_AUTH_DB', '<db name>');
define('WEAVE_MYSQL_STORE_READ_DB', 'weave')
define('WEAVE_MYSQL_AUTH_USER', '<db username>');
define('WEAVE_MYSQL_STORE_READ_USER', 'weave')
define('WEAVE_MYSQL_AUTH_PASS', '<db password>');
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:
canmove, Confirmed users
1,173

edits