Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:42:40+00:00 2026-06-17T21:42:40+00:00

I have LAMP setup running on ubuntu. I am using this setup to run

  • 0

I have LAMP setup running on ubuntu. I am using this setup to run torrentflux with a web interface that requires mysql.

All works as expected for a few days, and then I get ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111)’

I rebooted to fix the problem, but now the inconvenience of doing so has surpassed the reward of solving the problem, and I would like to find another way to solve the problem.

Mysql is the only failure in the LAMP setup for torrentflux. Torrentflux still leeches and seeds as it should; I simply lose the control interface without mysql. Apache still does its thing as expected.

Yes, mysql is running until the error is output when I try to use the web interface, and then it is impossible to restart the mysql server.

$ sudo service mysql start
start: Job failed to start

Ubuntu version:

Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:   precise

G/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
130126 14:42:15 [Note] Plugin 'FEDERATED' is disabled.
130126 14:42:15 InnoDB: The InnoDB memory heap is disabled
130126 14:42:15 InnoDB: Mutexes and rw_locks use GCC atomic builtins
130126 14:42:15 InnoDB: Compressed tables use zlib 1.2.3.4
130126 14:42:16 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
130126 14:42:16 InnoDB: Completed initialization of buffer pool
130126 14:42:16 InnoDB: Fatal error: cannot allocate memory for the buffer pool
130126 14:42:16 [ERROR] Plugin 'InnoDB' init function returned error.
130126 14:42:16 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
130126 14:42:16 [ERROR] Unknown/unsupported storage engine: InnoDB
130126 14:42:16 [ERROR] Aborting

mysql was running until I shut it down.

Rebooting fixes the problem for a while. I wish for a less drastic solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:42:41+00:00Added an answer on June 17, 2026 at 9:42 pm

    EDIT: You changed your question around a bit, so moved the old answer down below.

    Either way, what you’re getting in the log is fairly clear;

    130126 14:42:16 InnoDB: Initializing buffer pool, size = 128.0M
    InnoDB: mmap(137363456 bytes) failed; errno 12
    130126 14:42:16 InnoDB: Fatal error: cannot allocate memory for the buffer pool
    

    errno 12 means you’re out of memory. MySQL tries to allocate 128MB for the buffer pool, but can’t find that much free memory.

    I’m not sure what kind of machine you’re running on, but you basically have 3 options;

    • Find whichever application is hogging memory and see if you can update or swap it out.
    • Get more memory for the machine (probably the best option if the first fails)
    • Add some swap space (may slow things down quite a bit)

    Old answer before edit;

    You’re getting that message because you’re trying to start MySQL as your normal user, not as root as required.

    Try;

    sudo service mysql start
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP script running on my LAMP server that requires certain files
I have a WAMP (windows (7), apache, mysql, php) stack all setup and running.
I have been using the LAMP stack on a Ubuntu setup. It has been
I have an offline kiosk computer that will be running a LAMP web server
We have a number of servers running various different LAMP setups. One thing that
My setup: Ubuntu LAMP, application built w/ zend framework My Problem: I have a
I have setup the basic LAMP server on Ubuntu 11.10 and had a few
I have a LAMP (Linux/Apache/MySQL/Php) application that I should release soon. Even if I've
I have setup an Ubuntu LAMP server, and I have had phpmyadmin working fine
My work setup is a Windows XP host, running an Ubuntu VM LAMP stack.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.