显示permission denied,不知道咋弄,请帮我一下,谢谢!
2025-01-19 08:12:32+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
2025-01-19 08:12:32+00:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
2025-01-19 08:12:32+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-19 08:12:32+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
2025-01-19 08:12:32+00:00 [Note] [Entrypoint]: Initializing database files
2025-01-19 8:12:32 0 [Warning] Can't create test file '/var/lib/mysql/6b9e7d99be3d.lower-test' (Errcode: 13 "Permission denied")
2025-01-19 8:12:32 0 [ERROR] mariadbd: Can't create/write to file './ddl_recovery.log' (Errcode: 13 "Permission denied")
2025-01-19 8:12:32 0 [ERROR] DDL_LOG: Failed to create ddl log file: ./ddl_recovery.log
2025-01-19 8:12:32 0 [ERROR] Aborting
Installation of system tables failed! Examine the logs in
/var/lib/mysql/ for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
shell> /usr/bin/mariadb-install-db --defaults-file=~/.my.cnf
You can also try to start the mariadbd daemon with:
shell> /usr/sbin/mariadbd --skip-grant-tables --general-log &
and use the command line tool /usr/bin/mariadb
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mariadb -u root mysql
MariaDB> show tables;
Try '/usr/sbin/mariadbd --help' if you have problems with paths. Using
--general-log gives you a log in /var/lib/mysql/ that may be helpful.
The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss
Please check all of the above before submitting a bug report
at https://mariadb.org/jira