报错和启动失败 2024-12-06T13:49:32.979529+08:00 4 [Note] [MY-011649] [Repl] Plugin group_replication reported: 'Requesting to leave the group despite of not being a member' 2024-12-06T13:49:32.979581+08:00 4 [System] [MY-011566] [Repl] Plugin group_replication reported: 'Setting super_read_only=OFF.' 2024-12-06T13:49:33.992744+08:00 13 [Note] [MY-010926] [Server] Access denied for user 'root'@'localhost' (using password: NO) 2024-12-06T13:49:35.027794+08:00 14 [Note] [MY-010926] [Server] Access denied for user 'root'@'localhost' (using password: NO) 1. .install.sh的chown命令如下,这个时候容器还没启动,chown -R mysql:mysql 会报错无效用户,是需要把chown放在greatsql-init.sh里吗 chmod 755 $CURDIR/../../data/greatsql/sh/greatsql-init.sh chown -R mysql:mysql $CURDIR/../../data/greatsql/data chmod -R 755 $CURDIR/../../data/greatsql/data chown mysql:mysql /etc/my.cnf docker-compose -f $CURDIR/../../config/docker-compose-yml/greatsql.yml -p greatsql up -d greatsql 2. greatsql-init.sh 如下: 但是按道理是能直接用root + 无密码进行初始化数据库的呀?毕竟是initialize-insecure初始化的啊? 请问为什么呀 echo 'Initializing database' "$@" --initialize-insecure echo 'Database initialized' if command -v mysql_ssl_rsa_setup > /dev/null && [ ! -e "$DATADIR/server-key.pem" ]; then echo 'Initializing certificates' mysql_ssl_rsa_setup --datadir="$DATADIR" echo 'Certificates initialized' fi SOCKET="$(_get_config 'socket' "$@")" echo "Socket path: ${SOCKET}" "$@" --skip-networking --socket="${SOCKET}" & pid="$!" # 输出进程 ID echo "greatsql server started with PID: $pid" mysql=( mysql -f --protocol=socket -uroot -hlocalhost --socket="${SOCKET}" --password="" ) |
yejr
2024-12-6 16:56:14
| ||
Jnu2021
2024-12-6 18:00:55
| ||
yejr
2024-12-6 19:37:38
| ||
合作电话:010-64087828
社区邮箱:greatsql@greatdb.com