Score:0

Issue installing mysql in Ubuntu 22.04 LTS

cx flag

I am new to Ubuntu and I have been trying to install mysql on Ubuntu 22.04 LTS -hosted on a virtualbox but I keep on getting the same message regardless of what I try. I have tried to uninstall mysql completely and re-install it using the methods proposed by @aquilla <here>. I tried to add resources to /etc/apt/resources.list . I even tried to upgrade the OS from 20.04 to 22.04 but none of them have worked so far. This error message is what comes up. I really appreciate any help. Thanks!

● *mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: oom-kill) since Fri 2023-02-17 09:55:40 UTC; 55ms ago
    Process: 3089 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
    Process: 3097 ExecStart=/usr/sbin/mysqld (code=killed, signal=KILL)
   Main PID: 3097 (code=killed, signal=KILL)
     Status: "Server startup in progress"
        CPU: 1.028s
Feb 17 09:55:40 vagrant-ubuntu-trusty-64 systemd[1]: mysql.service: A process of this unit has been killed by the OOM killer.
Feb 17 09:55:40 vagrant-ubuntu-trusty-64 systemd[1]: mysql.service: Main process exited, code=killed, status=9/KILL
Feb 17 09:55:40 vagrant-ubuntu-trusty-64 systemd[1]: mysql.service: Failed with result 'oom-kill'.
Feb 17 09:55:40 vagrant-ubuntu-trusty-64 systemd[1]: Failed to start MySQL Community Server.
Feb 17 09:55:40 vagrant-ubuntu-trusty-64 systemd[1]: mysql.service: Consumed 1.028s CPU time.
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 mysql-server-8.0*
user535733 avatar
cn flag
Did you look up what `Failed with result 'oom-kill'` means?
hr flag
Yeah how much base memory did you allocate to the VM?
Habtamu S avatar
cx flag
I had allocated 40GB and so far I have used only 11.53GB.
Habtamu S avatar
cx flag
Thank you both for directing me to the base memory; that was the main problem all along. When I increased the base memory of the VM, the problem was solved.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.