Test adding MySQL

This commit is contained in:
Daniel Mason 2023-05-08 22:59:39 +12:00
parent 44a6a2b634
commit ee2ab2b7a2
Signed by: idanoo
GPG key ID: 387387CDBC02F132
9 changed files with 111 additions and 11 deletions

View file

@ -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';
```