mirror of
https://github.com/idanoo/go-mastodon-stats
synced 2025-07-01 22:02:20 +00:00
Test adding MySQL
This commit is contained in:
parent
44a6a2b634
commit
ee2ab2b7a2
9 changed files with 111 additions and 11 deletions
|
@ -6,7 +6,7 @@ Setup a new application, use the ID/SECRET in your .env with some user creds
|
|||
|
||||
|
||||
|
||||
Create readonly account with access to stats DB
|
||||
Create readonly account with access to stats DB on postgres
|
||||
|
||||
```
|
||||
CREATE USER gomastodonstats WITH PASSWORD 'superrandompassword';
|
||||
|
@ -42,3 +42,9 @@ CREATE UNIQUE INDEX service_lookup ON statsdb USING btree (service,metric_name,
|
|||
GRANT ALL ON ALL TABLES IN SCHEMA public TO gomastodonstats;
|
||||
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO gomastodonstats;
|
||||
```
|
||||
|
||||
For write.as stats on MySQL
|
||||
```
|
||||
create user gomastodonstats@'%' identified by '<pass>';
|
||||
grant SELECT on writeasdb.* to 'gomastodonstats';
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue