-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
以上是容器内log:
当operator容器比mysql容器更早起来后,会先进入调协,此时mysql还没启动完毕,所以会connect: connection refused。
临时方案:部署前需要把原本的crd先删除乾净,避免过早进入调协。
E0509 16:38:40.335837 1 db_init.go:25] create databases error: dial tcp 127.0.0.1:3306: connect: connection refused
I0509 16:38:40.335969 1 init_k8s_config.go:16] run in the cluster
I0509 16:38:40.338067 1 controller.go:92] password: 123456
E0509 16:38:40.338158 1 user.go:17] create user error: dial tcp 127.0.0.1:3306: connect: connection refused
E0509 16:38:40.338234 1 user.go:24] set db privileges error: dial tcp 127.0.0.1:3306: connect: connection refused
I0509 16:38:40.338250 1 controller.go:61] test-db-tabledefault
I0509 16:38:40.338257 1 init_k8s_config.go:16] run in the cluster
CREATE USER IF NOT EXISTS testuser IDENTIFIED BY '123456
';
GRANT ALL PRIVILEGES ON test.* TO 'testuser'@'%';
I0509 16:38:40.339992 1 controller.go:67] [CREATE TABLE IF NOT EXISTS runoob_tbl(
runoob_id INT UNSIGNED AUTO_INCREMENT,
runoob_title VARCHAR(100) NOT NULL,
runoob_author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY ( runoob_id )
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS runoob_tbl1(
runoob_id INT UNSIGNED AUTO_INCREMENT,
runoob_title VARCHAR(100) NOT NULL,
runoob_author VARCHAR(40) NOT NULL,
submission_date DATE,
PRIMARY KEY ( runoob_id )
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
]
E0509 16:38:40.340072 1 db_init.go:25] create databases error: dial tcp 127.0.0.1:3306: connect: connection refused
I0509 16:38:40.340163 1 init_k8s_config.go:16] run in the cluster
I0509 16:38:40.344155 1 controller.go:92] password: 123456
E0509 16:38:40.344380 1 user.go:17] create user error: dial tcp 127.0.0.1:3306: connect: connection refused
E0509 16:38:40.344444 1 user.go:24] set db privileges error: dial tcp 127.0.0.1:3306: connect: connection refused
I0509 16:38:40.344455 1 controller.go:61] test-db-table-exampledefault
I0509 16:38:40.344461 1 init_k8s_config.go:16] run in the cluster
I0509 16:38:40.346311 1 controller.go:67] [CREATE TABLE IF NOT EXISTS test(
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working