okay so I did a fresh install of Mariaddb (to teach myself SQL and for Prelude) It won’t start. if I run
systemctl start mariadb.service
I get errors, if I run
journalctl -xeu mariadb.service
I get
Dec 27 16:28:59 DebianTim mariadbd[45308]: Warning: Memory not freed: 280
Dec 27 16:28:59 DebianTim systemd[1]: mariadb.service: Main process exited, cod>
Subject: Unit process exited
Defined-By: systemd
Support: Debian -- User Support
An ExecStart= process belonging to unit mariadb.service has exited.
The process’ exit code is ‘exited’ and its exit status is 1.
Dec 27 16:28:59 DebianTim systemd[1]: mariadb.service: Failed with result 'exit>
Subject: Unit failed
Defined-By: systemd
Support: Debian -- User Support
The unit mariadb.service has entered the ‘failed’ state with result 'exit-co>
Dec 27 16:28:59 DebianTim systemd[1]: Failed to start MariaDB 10.6.11 database > Subject: A start job for unit mariadb.service has failed
Defined-By: systemd Support: Debian -- User Support
A start job for unit mariadb.service has finished with a failure.
The job identifier is 9298 and the job result is failed.
checklog shows:
2022-12-27T16:28:53.751970-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] mariadbd: Can’t create/write to file ‘/tmp/user/0/ib6BTPP5’ (Errcode: 13 “Permission denied”)
2022-12-27T16:28:53.752208-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2022-12-27T16:28:53.752294-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] mariadbd: Can’t create/write to file ‘/tmp/user/0/ibpX1e2i’ (Errcode: 13 “Permission denied”)
2022-12-27T16:28:53.752352-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2022-12-27T16:28:53.752399-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2022-12-27T16:28:53.852282-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] Plugin ‘InnoDB’ init function returned error.
2022-12-27T16:28:53.852444-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
2022-12-27T16:28:53.852517-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2022-12-27T16:28:53.852609-06:00 DebianTim mariadb-server-10.6.postinst[45164]: 2022-12-27 16:28:53 0 [ERROR] Aborting
2022-12-27T16:28:53.911648-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.911808-06:00 DebianTim mariadb-server-10.6.postinst[45164]: Installation of system tables failed! Examine the logs in
2022-12-27T16:28:53.911870-06:00 DebianTim mariadb-server-10.6.postinst[45164]: /var/lib/mysql for more information.
2022-12-27T16:28:53.911922-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.911971-06:00 DebianTim mariadb-server-10.6.postinst[45164]: The problem could be conflicting information in an external
2022-12-27T16:28:53.912022-06:00 DebianTim mariadb-server-10.6.postinst[45164]: my.cnf files. You can ignore these by doing:
2022-12-27T16:28:53.912073-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.912118-06:00 DebianTim mariadb-server-10.6.postinst[45164]: shell> /usr/bin/mysql_install_db --defaults-file=~/.my.cnf
2022-12-27T16:28:53.912178-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.917781-06:00 DebianTim mariadb-server-10.6.postinst[45164]: You can also try to start the mysqld daemon with:
2022-12-27T16:28:53.917919-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.918132-06:00 DebianTim mariadb-server-10.6.postinst[45164]: shell> /usr/sbin/mariadbd --skip-grant-tables --general-log &
2022-12-27T16:28:53.918224-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.918279-06:00 DebianTim mariadb-server-10.6.postinst[45164]: and use the command line tool /usr/bin/mariadb
2022-12-27T16:28:53.918332-06:00 DebianTim mariadb-server-10.6.postinst[45164]: to connect to the mysql database and look at the grant tables:
2022-12-27T16:28:53.918388-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.918438-06:00 DebianTim mariadb-server-10.6.postinst[45164]: shell> /usr/bin/mysql -u root mysql
2022-12-27T16:28:53.918489-06:00 DebianTim mariadb-server-10.6.postinst[45164]: mysql> show tables;
2022-12-27T16:28:53.918550-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.918599-06:00 DebianTim mariadb-server-10.6.postinst[45164]: Try ‘mysqld --help’ if you have problems with paths. Using
2022-12-27T16:28:53.918650-06:00 DebianTim mariadb-server-10.6.postinst[45164]: --general-log gives you a log in /var/lib/mysql that may be helpful.
2022-12-27T16:28:53.918704-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.918753-06:00 DebianTim mariadb-server-10.6.postinst[45164]: The latest information about mysql_install_db is available at
2022-12-27T16:28:53.918804-06:00 DebianTim mariadb-server-10.6.postinst[45164]: Installing System Tables (mariadb-install-db) - MariaDB Knowledge Base
2022-12-27T16:28:53.918854-06:00 DebianTim mariadb-server-10.6.postinst[45164]: You can find the latest source at https://downloads.mariadb.org and
2022-12-27T16:28:53.918903-06:00 DebianTim mariadb-server-10.6.postinst[45164]: the maria-discuss email list at Maria Discuss in Launchpad
2022-12-27T16:28:53.918956-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:53.919009-06:00 DebianTim mariadb-server-10.6.postinst[45164]: Please check all of the above before submitting a bug report
2022-12-27T16:28:53.919059-06:00 DebianTim mariadb-server-10.6.postinst[45164]: at https://mariadb.org/jira
2022-12-27T16:28:53.919126-06:00 DebianTim mariadb-server-10.6.postinst[45164]:
2022-12-27T16:28:54.044998-06:00 DebianTim kernel: [22048.428144] audit: type=1400 audit(1672180133.995:78): apparmor=“STATUS” operation=“profile_remove” info=“profile does not exist” error=-2 profile=“unconfined” name=“/usr/sbin/mariadbd” pid=45204 comm=“apparmor_parser”
systemctl status mariadb.service
× mariadb.service - MariaDB 10.6.11 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-12-27 16:28:59 CST; 1h 59min ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 45275 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 45276 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 45278 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/…; /usr/bin/galera_recover>
Process: 45308 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Main PID: 45308 (code=exited, status=1/FAILURE)
Status: “MariaDB server is down”
CPU: 157ms
There’s nothing in /var/log/mysql or in /var/lib/mysql either.
Just typing sudo mysql gives this:
ERROR 2002 (HY000): Can’t connect to local server through socket ‘/run/mysqld/mysqld.sock’ (111)
so yeah, I’m confused