소스 검색

Do not suggest to login into the GitLab database (#13084)

As pointed out on Discourse:

https://discourse.joinmastodon.org/t/obscure-wtf-error-message-running-migrations-for-3-1/2524

The message the administrators were getting was telling them
to log in to the "GitLab database" and also mentions MySQL
master^2
Marcin Cieślak 4 년 전
committed by GitHub
부모
커밋
bd4bbba98a
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. +2
    -6
      lib/mastodon/migration_helpers.rb

+ 2
- 6
lib/mastodon/migration_helpers.rb 파일 보기

@@ -886,16 +886,12 @@ module Mastodon
Your database user is not allowed to create, drop, or execute triggers on the
table #{table}.

If you are using PostgreSQL you can solve this by logging in to the GitLab
If you are using PostgreSQL you can solve this by logging in to the Mastodon
database (#{dbname}) using a super user and running:

ALTER USER #{user} WITH SUPERUSER

For MySQL you instead need to run:

GRANT ALL PRIVILEGES ON *.* TO #{user}@'%'

Both queries will grant the user super user permissions, ensuring you don't run
The query will grant the user super user permissions, ensuring you don't run
into similar problems in the future (e.g. when new tables are created).
EOF
end


불러오는 중...
취소
저장