[root@XIANG data]# docker run --name mysql5735 -v /mnt/c/develop/data/mysql5735/data/:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root --privileged=true percona:5.7.35
Initializing database
2021-09-13T08:20:49.822230Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-09-13T08:20:49.833563Z 0 [Warning] Setting lower_case_table_names=2 because file system for /var/lib/mysql/ is case insensitive
2021-09-13T08:20:50.589278Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-09-13T08:20:50.716218Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-09-13T08:20:50.787137Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 8178b7fc-146b-11ec-aa00-0242ac110002.
2021-09-13T08:20:50.796367Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
mysqld: Can't change permissions of the file 'private_key.pem' (Errcode: 1 - Operation not permitted)
2021-09-13T08:20:50.854306Z 0 [ERROR] Could not set file permission for private_key.pem
2021-09-13T08:20:50.854328Z 0 [ERROR] Aborting
[root@XIANG data]# pwd
/mnt/c/develop/data/mysql5735/data
[root@XIANG data]# ll
total 110596
-rwxrwxrwx 1 root root 56 Sep 13 16:20 auto.cnf
-rwxrwxrwx 1 root root 221 Sep 13 16:20 ib_buffer_pool
-rwxrwxrwx 1 root root 12582912 Sep 13 16:20 ibdata1
-rwxrwxrwx 1 root root 50331648 Sep 13 16:20 ib_logfile0
-rwxrwxrwx 1 root root 50331648 Sep 13 16:20 ib_logfile1
-rwxrwxrwx 1 root root 1676 Sep 13 16:20 private_key.pem
[root@XIANG data]# umask
0000
[root@XIANG data]#
或是出现这样的错误提示
[root@XIANG data]# docker run --name mysql5735 \
develop/data/mys> -v /mnt/c/develop/data/mysql5735/data/:/var/lib/mysql \
/data/my> -v /mnt/c/develop/data/mysql5735/log/:/var/log/mysql \
3306 -e > -p 5735:3306 -e MYSQL_ROOT_PASSWORD=root --privileged=true percona:5.7.35
Initializing database
mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (Errcode: 13 - Permission denied)
2021-09-13T15:54:59.193833Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-09-13T15:54:59.194912Z 0 [ERROR] --initialize specified but the data directory exists and is not writable. Aborting.
2021-09-13T15:54:59.194920Z 0 [ERROR] Aborting
请问这个问题如何解决呀。困扰好几天了。