Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Incomplete
-
10.8.8, 10.5.22, 10.6.14, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 10.4(EOL), 10.7(EOL)
-
None
-
None
Description
When running mysql_install_db with --user=... option all files in the created datadir will be owned by the given user, with the exception of mysql_upgrade_info which is owned by the user that executed the script, e.g.:
# mysql_install_db --user=mysql
|
[...]
|
# ls -l /var/lib/mysql
|
total 111040
|
-rw-rw---- 1 mysql mysql 417792 Sep 14 06:56 aria_log.00000001
|
-rw-rw---- 1 mysql mysql 52 Sep 14 06:56 aria_log_control
|
-rw-rw---- 1 mysql mysql 942 Sep 14 06:56 ib_buffer_pool
|
-rw-rw---- 1 mysql mysql 12582912 Sep 14 06:56 ibdata1
|
-rw-rw---- 1 mysql mysql 100663296 Sep 14 06:56 ib_logfile0
|
drwx------ 2 mysql mysql 4096 Sep 14 06:56 mysql
|
-rw-r--r-- 1 root root 15 Sep 14 06:56 mysql_upgrade_info
|
drwx------ 2 mysql mysql 4096 Sep 14 06:56 performance_schema
|
drwx------ 2 mysql mysql 12288 Sep 14 06:56 sys
|
drwx------ 2 mysql mysql 4096 Sep 14 06:56 test
|
Attachments
Issue Links
- is caused by
-
MDEV-27607 mysql_install_db to install mysql_upgrade_info
- Closed
- relates to
-
MDEV-15207 mysql_upgrade cannot create file mysql_upgrade_info
- Closed
-
MDEV-23008 store mysql_upgrade version info in system table instead of local file
- Open