Waiting mysql running,一件部署卡在这里了

一件部署开在mysql安装环节


重复安装还是一样的效果;
查了下论坛没找到答案;
这种情况能否使用分布式安装中mysql的安装命令单独执行呢?

求指导

1 个赞

使用下面的命令看一下 mysql 的 pod 是否正常启动

kubectl get po -n c7n-system
kubectl get deploy -n c7n-system

都没启动,c7n-mysql也没启动

那你就看一下是什么远原因导致的 pod 没有正常启动啊!

看了下日志,报错信息如下:
2020-09-02T02:37:22.321788Z 0 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it
2020-09-02T02:37:22.322389Z 0 [Warning] Can’t open and lock time zone table: Table ‘mysql.time_zone_leap_second’ doesn’t exist trying to live without them
2020-09-02T02:37:22.327385Z 0 [Warning] Table ‘mysql.procs_priv’ does not exist. Please run mysql_upgrade.
2020-09-02T02:37:22.331594Z 0 [ERROR] Native table ‘performance_schema’.‘cond_instances’ has the wrong structure
2020-09-02T02:37:22.331669Z 0 [ERROR] Native table ‘performance_schema’.‘events_waits_current’ has the wrong structure
2020-09-02T02:37:22.331716Z 0 [ERROR] Native table ‘performance_schema’.‘events_waits_history’ has the wrong structure
2020-09-02T02:37:22.331751Z 0 [ERROR] Native table ‘performance_schema’.‘events_waits_history_long’ has the wrong structure
2020-09-02T02:37:22.331788Z 0 [ERROR] Native table ‘performance_schema’.‘events_waits_summary_by_host_by_event_name’ has the wrong structure
2020-09-02T02:37:22.331823Z 0 [ERROR] Native table ‘performance_schema’.‘events_waits_summary_by_instance’ has the wrong structure

1、mysql的问题卡了两天了,昨天尝试使用分部署式部署,也报错了,同样是在mysql上,安装mysql的时候会报“Missing system table mysql.proxies_priv; please run mysql_upgrade to create it”的警告,然后安装hzero-platform的时候发现sql写不进去,看了日志是create-c7nfw-db环节失败了,mysql的pod已经crash了。
2、还有个问题,一键安装输入mysql的密码,安装后出现密码错误,连不上mysql,分布式安装设定mysqlroot密码为123456则可以正常连接,但是在create-c7nfw-db环节会出错,就是上述1点描述的情况。
3、我是使用修改coredns的方式自定义域名解析的,参考https://blog.csdn.net/kunyus/article/details/88841159
而且一键安装前面部分都正常,卡在 Waiting mysql running很久,后面步骤报错,安装失败(试过全新安装问题依旧);
4、之前我们在华为云服务器上部署了一套比较顺利,但是因为资源不够及其他客观原因,被迫重新在公司自有服务器上安装(网络只能出不能进),折腾了三四天了还没搞定,如果可以恳求官方能够远程支援下,万分感谢。

一键安装 我这边也出现了mysql密码错误的问题

2020-09-03T03:25:02.432345Z 5918 [Note] Access denied for user ‘root’@‘localhost’ (using password: YES)

直接登陆容器里面用mysql命令登陆也是报这个错误。

求大神回复
@TimeBye

是吧,我反反复复至少装了4遍,一键部署和分布式都是必现的

难不成最新版的都没什么人安装

你的mysql 密码是不是用特殊字符?

你重新安装的时候有删掉 pvc 吗?

小写的字母加数字


是删除mysql的pvc目录么
图片上是我删除后的,重新部署mysql都无法生成mysql的文件夹了

c7n-mysql-pvc和/u01/prod/下mysql相关的都删掉的,还有mysql-service也删了

使用类似于Abcd123456格式

不是你这样操作的。使用kubectl 命令删除

kubectl get pvc -n c7n-system
kubectl delete pvc -n c7n-system <mysql's pvc >

然后重新安装 mysql

你这个问题有点奇怪。我微信私信你了

重新安装mysql? 我是一键安装脚本的。
要改成分步执行么

上面 @huuisc 不是说分布也会遇到这个问题么

微信号:fghj_lif