-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD #654
Comments
Hi! thanks for your contribution! great first issue! |
check the env
|
kubectl get po mysql-mysql-0 -n uat -o custom-columns='ENV:.spec.initContainers[1].env' ENV |
env looks no problem,may be your password do not meet the specifications(^[A-Za-z0-9@#$%^&*_+\-=]{8,32}$) |
No, I tried a more complex password 7X^c29y&QyeuwQLXeW |
After modifying the password, you need to delete the POD and PVCs that have been created. |
yes, I follow the delete and create steps to recreate, but it is still an error |
1 similar comment
please check : kubectl get pods -o jsonpath="{.items[*].spec.containers[*].image}" kubectl get cm sample-mysql -o yaml |
check the config |
kubectl get cm mysql-mysql -n uat -o yaml|grep innodb_use_native_aio it exists |
which version of the operator? it should not exist the |
mysql-operator-2.2.0 |
check the all node has the sample image. please, in |
In fact, I have successfully run 2 instances of the same configuration kubectl get mysql --all-namespaces Run three instance error |
Re-opened an issue |
minikube下同样遇到一样的报错 |
Add kernel optimization parameter solution |
apiVersion: mysql.radondb.com/v1alpha1
kind: MysqlCluster
metadata:
name: mysql
namespace: uat
spec:
replicas: 2
mysqlVersion: "5.7"
mysqlOpts:
rootPassword: "dasfdasmk1"
rootHost: localhost
user: radondb_usr
password: RadonDB@123
database: radondb
initTokuDB: false
Create MysqlCluster error:
2022-08-15T10:26:43.717189615+08:00 error: database is uninitialized and password option is not specified
2022-08-15T10:26:43.717223701+08:00 You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
The text was updated successfully, but these errors were encountered: