Fix TRIGGER checks for MySQL

This ensures we can check if the user has TRIGGER permissions without
querying restricted tables. Thanks to Steve Norman
(https://gitlab.com/stevenorman) for helping out with this merge
request.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/38372
86 jobs for fix-mysql-grant-check in 50 minutes and 17 seconds (queued for 7 seconds)
Status Job ID Name Coverage
  Build
manual #39267817
allowed to fail manual
build-package
manual #39267818
allowed to fail manual
review-docs-deploy
 
  Prepare
passed #39267819
gitlab-org
retrieve-tests-metadata

00:00:28

passed #39267820
gitlab-org
setup-test-env

00:11:00

 
  Test
passed #39267897
codequality

00:07:44

passed #39267894
gitlab-org
db:check-schema-pg

00:02:45

passed #39267887
gitlab-org
db:migrate:reset-mysql

00:03:30

passed #39267886
gitlab-org
db:migrate:reset-pg

00:03:18

passed #39267891
gitlab-org
db:rollback-mysql

00:03:41

passed #39267890
gitlab-org
db:rollback-pg

00:04:05

passed #39267893
gitlab-org
db:seed_fu-mysql

00:03:35

passed #39267892
gitlab-org
db:seed_fu-pg

00:02:10

passed #39267883
gitlab-org
docs lint

00:01:03

passed #39267884
gitlab-org
downtime_check

00:02:04

passed #39267885
gitlab-org allowed to fail
ee_compat_check

00:11:10

passed #39267895
gitlab-org
gitlab:assets:compile

00:14:55

passed #39267898
gitlab_git_test

00:02:11

passed #39267896
gitlab-org
karma

00:07:36

52.47%
passed #39267889
gitlab-org
migration:path-mysql

00:14:22

passed #39267888
gitlab-org
migration:path-pg

00:12:16

passed #39267848
gitlab-org
rspec-mysql 0 26

00:29:40

passed #39267849
gitlab-org
rspec-mysql 1 26

00:16:25

passed #39267858
gitlab-org
rspec-mysql 10 26

00:16:17

passed #39267859
gitlab-org
rspec-mysql 11 26

00:32:02

passed #39267860
gitlab-org
rspec-mysql 12 26

00:19:48

passed #39267861
gitlab-org
rspec-mysql 13 26

00:13:09

passed #39267862
gitlab-org
rspec-mysql 14 26

00:21:35

passed #39267863
gitlab-org
rspec-mysql 15 26

00:21:03

passed #39267864
gitlab-org
rspec-mysql 16 26

00:20:48

passed #39267865
gitlab-org
rspec-mysql 17 26

00:17:30

passed #39267866
gitlab-org
rspec-mysql 18 26

00:21:14

passed #39267867
gitlab-org
rspec-mysql 19 26

00:20:37

passed #39267850
gitlab-org
rspec-mysql 2 26

00:22:39

passed #39267868
gitlab-org
rspec-mysql 20 26

00:12:44

passed #39267869
gitlab-org
rspec-mysql 21 26

00:14:10

passed #39267870
gitlab-org
rspec-mysql 22 26

00:15:38

passed #39267871
gitlab-org
rspec-mysql 23 26

00:19:14

passed #39267872
gitlab-org
rspec-mysql 24 26

00:21:00

passed #39267873
gitlab-org
rspec-mysql 25 26

00:21:18

passed #39267851
gitlab-org
rspec-mysql 3 26

00:17:01

passed #39267852
gitlab-org
rspec-mysql 4 26

00:25:03

passed #39267853
gitlab-org
rspec-mysql 5 26

00:31:30

passed #39267854
gitlab-org
rspec-mysql 6 26

00:23:22

passed #39267855
gitlab-org
rspec-mysql 7 26

00:18:27

passed #39267856
gitlab-org
rspec-mysql 8 26

00:17:05

passed #39267857
gitlab-org
rspec-mysql 9 26

00:35:51

passed #39267822
gitlab-org
rspec-pg 0 26

00:15:32

passed #39267823
gitlab-org
rspec-pg 1 26

00:25:37

passed #39267832
gitlab-org
rspec-pg 10 26

00:25:06

passed #39267833
gitlab-org
rspec-pg 11 26

00:32:13

passed #39267834
gitlab-org
rspec-pg 12 26

00:26:08

passed #39267835
gitlab-org
rspec-pg 13 26

00:22:49

passed #39267836
gitlab-org
rspec-pg 14 26

00:24:56

passed #39267837
gitlab-org
rspec-pg 15 26

00:33:21

passed #39267838
gitlab-org
rspec-pg 16 26

00:25:51

passed #39267839
gitlab-org
rspec-pg 17 26

00:25:49

passed #39267840
gitlab-org
rspec-pg 18 26

00:33:20

passed #39267841
gitlab-org
rspec-pg 19 26

00:28:25

passed #39267824
gitlab-org
rspec-pg 2 26

00:19:28

passed #39267842
gitlab-org
rspec-pg 20 26

00:16:03

passed #39267843
gitlab-org
rspec-pg 21 26

00:28:37

passed #39267844
gitlab-org
rspec-pg 22 26

00:25:28

passed #39267845
gitlab-org
rspec-pg 23 26

00:39:05

passed #39267846
gitlab-org
rspec-pg 24 26

00:17:17

passed #39267847
gitlab-org
rspec-pg 25 26

00:30:33

passed #39267825
gitlab-org
rspec-pg 3 26

00:24:00

passed #39267826
gitlab-org
rspec-pg 4 26

00:15:52

passed #39267827
gitlab-org
rspec-pg 5 26

00:22:18

passed #39267828
gitlab-org
rspec-pg 6 26

00:15:25

passed #39267829
gitlab-org
rspec-pg 7 26

00:15:47

passed #39267830
gitlab-org
rspec-pg 8 26

00:23:39

passed #39267831
gitlab-org
rspec-pg 9 26

00:22:59

passed #39267878
gitlab-org
spinach-mysql 0 4

00:10:41

passed #39267879
gitlab-org
spinach-mysql 1 4

00:11:30

passed #39267880
gitlab-org
spinach-mysql 2 4

00:22:10

passed #39267881
gitlab-org
spinach-mysql 3 4

00:12:01

passed #39267874
gitlab-org
spinach-pg 0 4

00:12:28

passed #39267875
gitlab-org
spinach-pg 1 4

00:09:05

passed #39267876
gitlab-org
spinach-pg 2 4

00:14:45

passed #39267877
gitlab-org
spinach-pg 3 4

00:15:19

failed #39269585
gitlab-org
static-analysis

00:11:24

failed #39267882
gitlab-org
static-analysis

00:08:22

 
  Post Test
skipped #39267900
gitlab-org
coverage
skipped #39267899
gitlab-org allowed to fail
flaky-examples-check
skipped #39267901
gitlab-org
lint:javascript:report
 
  Post Cleanup
skipped #39267902
allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
static-analysis Test There is an unknown failure, please try again
**** bundle exec rake scss_lint failed with the following error:

app/assets/stylesheets/pages/note_form.scss:124:5 [W] BorderZero: `border: 0` is preferred over `border: none`

scss-lint found one or more lints
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.3-compliant syntax, but you are running 2.3.5.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
ERROR: Job failed: exit code 1