Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.
This repository was archived by the owner on May 28, 2021. It is now read-only.

How to reset super-read-only option? It prevents database creation #257

@devdattakulkarni

Description

@devdattakulkarni

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

Versions

MySQL Operator Version:
Latest SHA c98210b

Environment:

  • Kubernetes version (use kubectl version): 1.10.0
  • Cloud provider or hardware configuration: Minikube
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Others:

What happened?

Trying to create a database gives error. Here is exact output. I created cluster with name 'mysql1'.

kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never -- mysql -h mysql1 -uroot -pfy5VYHCUtgpHS9Z1p -e 'create database testdb;'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1290 (HY000) at line 1: The MySQL server is running with the --super-read-only option so it cannot execute this statement.

What you expected to happen?

The database 'testdb' should have been created.

How to reproduce it (as minimally and precisely as possible)?

  1. Create cluster
  2. Once cluster is ready, execute above command

Anything else we need to know?

Before creating the cluster I did create a configMap with following my.cnf to reset the ready-only and super-read-only flags. But it did not help as you can see in above error.

my.cnf

[mysqld]

read_only = 0
super_read_only = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions