Closed Bug 1614511 Opened 4 years ago Closed 2 years ago

Table named 'groups' is a reserved keyword as of Mysql 8.0.2+

Categories

(Bugzilla :: Database, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1424043

People

(Reporter: haydnozisp, Unassigned)

Details

I cannot install Bugzilla on Redhat 7.6 with Mysql 8.0.19

This is because 'groups' is a reserved keyword and the table 'groups' is causing big problems trying to be queried against.


  • This is Bugzilla 5.0.6 on perl 5.16.3
  • Running on Linux 3.10.0-514.21.2.el7.x86_64 #1 SMP Sun May 28 17:08:21 EDT 2017

Checking perl modules...
Checking for CGI.pm (v3.51) ok: found v3.63
Checking for Digest-SHA (any) ok: found v5.85
Checking for TimeDate (v2.23) ok: found v2.24
Checking for DateTime (v0.75) ok: found v1.04
Checking for DateTime-TimeZone (v1.64) ok: found v1.70
Checking for DBI (v1.614) ok: found v1.627
Checking for Template-Toolkit (v2.24) ok: found v2.24
Checking for Email-Sender (v1.300011) ok: found v1.300031
Checking for Email-MIME (v1.904) ok: found v1.946
Checking for URI (v1.55) ok: found v1.60
Checking for List-MoreUtils (v0.32) ok: found v0.33
Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004
Checking for JSON-XS (v2.01) ok: found v3.01

Checking available perl DBD modules...
Checking for DBD-Pg (v2.7.0) not found
Checking for DBD-mysql (v4.001) ok: found v4.023
Checking for DBD-SQLite (v1.29) not found
Checking for DBD-Oracle (v1.19) not found

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.49
Checking for Chart (v2.4.1) ok: found v2.4.10
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for MIME-tools (v5.406) ok: found v5.505
Checking for libwww-perl (any) ok: found v6.05
Checking for XML-Twig (any) ok: found v3.44
Checking for PatchReader (v0.9.6) ok: found v0.9.6
Checking for perl-ldap (any) ok: found v0.56
Checking for Authen-SASL (any) ok: found v2.15
Checking for Net-SMTP-SSL (v1.01) ok: found v1.01
Checking for RadiusPerl (any) ok: found v0.26
Checking for SOAP-Lite (v0.712) ok: found v1.10
Checking for XMLRPC-Lite (v0.712) ok: found v0.717
Checking for JSON-RPC (any) ok: found v1.03
Checking for Test-Taint (v1.06) ok: found v1.06
Checking for HTML-Parser (v3.67) ok: found v3.71
Checking for HTML-Scrubber (any) ok: found v0.15
Checking for Encode (v2.21) ok: found v2.98
Checking for Encode-Detect (any) ok: found v1.01
Checking for Email-Reply (any) ok: found v1.203
Checking for HTML-FormatText-WithLinks (v0.13) ok: found v0.14
Checking for TheSchwartz (v1.07) ok: found v1.13
Checking for Daemon-Generic (any) ok: found v0.85
Checking for mod_perl (v1.999022) ok: found v2.000011
Checking for Apache-SizeLimit (v0.96) ok: found v0.97
Checking for File-MimeInfo (any) ok: found v0.21
Checking for IO-stringy (any) ok: found v2.110
Checking for Cache-Memcached (any) ok: found v1.30
Checking for File-Copy-Recursive (any) ok: found v0.45
Checking for File-Which (any) ok: found v1.09
WARNING: We could not check the configuration of Apache. This sometimes
happens when you are not running checksetup.pl as root. To see the
problem we ran into, run: /sbin/apachectl -t -D DUMP_MODULES

Reading ./localconfig...
Checking for DBD-mysql (v4.001) ok: found v4.023
Checking for MySQL (v5.0.15) ok: found v8.0.19

Removing existing compiled templates...
Precompiling templates...done.
Fixing file permissions...
DBD::mysql::db selectrow_array failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''groups' WHERE 'name' IS NULL' at line 1 [for Statement "SELECT 'id' FROM 'groups' WHERE 'name' IS NULL"] at Bugzilla/Install/DB.pm line 2497.
Bugzilla::Install::DB::_fix_group_with_empty_name() called at Bugzilla/Install/DB.pm line 358
Bugzilla::Install::DB::update_table_definitions('HASH(0x12cf3d8)') called at ./checksetup.pl line 175


See other people tackling this issue here: https://github.com/pkp/pkp-lib/issues/4615
and here: https://bugzilla.mozilla.org/show_bug.cgi?id=1424043

Alias: mysql8-groups-error

Also edited DB.pm to say things like
groups where name = ''
groups where name is null

Nothing containing the word 'groups' will work on any MySQL past MySQL 8.0.2

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Alias: mysql8-groups-error
Type: task → defect
You need to log in before you can comment on or make changes to this bug.