I’m trying to start phpmyadmin, but i can’t seem to start mariadb first.
here is the command i’m trying to do :
systemctl start mariadb
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xeu mariadb.service" for details.
other commands :
journalctl -xeu mariadb.service
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] InnoDB: 10.6.4 started; log sequence number 33110; transaction id 4
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [ERROR] Could not open mysql.plugin table: "Table 'mysql.plugin' doesn't exist". Some plugins may be not loaded
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] InnoDB: Buffer pool(s) load completed at 210930 9:00:45
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] Server socket created on IP: '0.0.0.0'.
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [Note] Server socket created on IP: '::'.
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
Sep 30 09:00:45 vincent mariadbd[5314]: 2021-09-30 9:00:45 0 [ERROR] Aborting
Sep 30 09:00:46 vincent mariadbd[5314]: Warning: Memory not freed: 280
Sep 30 09:00:46 vincent systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
pacman -Qs mariadb
local/mariadb 10.6.4-1
Fast SQL database server, derived from MySQL
local/mariadb-clients 10.6.4-1
MariaDB client tools
local/mariadb-libs 10.6.4-1
MariaDB libraries
I can’t seem to understand what’s wrong, is it because "mysql.db" doesn’t exist ? if yes, how can i create it ?
All the best
2
Answers
Can i suggest you to use dockerised versions and link them in docker-compose environment ,
your file will be like this:
mariadb-install-db --user mysql
will install into that directory. Its unclear why its blank. Usually the package managerpacman
would of done this already.