mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
[5529] Mysql HA: table creation error using InnoDB and utf8 charset (#5543)
This commit is contained in:
parent
51bb46302a
commit
e8d435340d
@ -150,7 +150,7 @@ func NewMySQLBackend(conf map[string]string, logger log.Logger) (physical.Backen
|
||||
// Create the required table if it doesn't exists.
|
||||
if !lockTableExist {
|
||||
create_query := "CREATE TABLE IF NOT EXISTS " + dbLockTable +
|
||||
" (node_job varchar(512), current_leader varchar(512), PRIMARY KEY (node_job))"
|
||||
" (node_job varbinary(512), current_leader varbinary(512), PRIMARY KEY (node_job))"
|
||||
if _, err := db.Exec(create_query); err != nil {
|
||||
return nil, errwrap.Wrapf("failed to create mysql table: {{err}}", err)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user