kennyvb
Posts: 8
Joined: Wed Aug 08, 2012 8:02 pm
Location: Denmark

MySQL wont install

Sat Aug 11, 2012 7:14 pm

hey there
installing this RsP as a Lamp server, but when it comes to installing MySQL it fails
i noticed several guides for the Raspberry Pi for MySQL. So it should work
here's what's going on :

Code: Select all

Sætter libmysqlclient16 (5.1.62-1) op...
Sætter libdbd-mysql-perl (4.021-1) op...
Sætter mysql-client-5.5 (5.5.24+dfsg-6) op...
Sætter mysql-server-core-5.5 (5.5.24+dfsg-6) op...
Sætter mysql-server-5.5 (5.5.24+dfsg-6) op...
[ ok ] Stopping MySQL database server: mysqld.
120811 21:12:45 [Note] Plugin 'FEDERATED' is disabled.
120811 21:12:45 InnoDB: The InnoDB memory heap is disabled
120811 21:12:45 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120811 21:12:45 InnoDB: Compressed tables use zlib 1.2.3
120811 21:12:45 InnoDB: Using Linux native AIO
120811 21:12:45 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(135987200 bytes) failed; errno 12
120811 21:12:45 InnoDB: Completed initialization of buffer pool
120811 21:12:45 InnoDB: Fatal error: cannot allocate memory for the buffer pool
120811 21:12:45 [ERROR] Plugin 'InnoDB' init function returned error.
120811 21:12:45 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
120811 21:12:45 [ERROR] Unknown/unsupported storage engine: InnoDB
120811 21:12:45 [ERROR] Aborting

120811 21:12:45 [Note] /usr/sbin/mysqld: Shutdown complete

[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: fejl under behandling af mysql-server-5.5 (--configure):
 underproces installerede post-installation-script returnerede afslutningsstatus 1
dpkg: afhængighedsproblemer forhindrer konfiguration af mysql-server:
 mysql-server afhænger af mysql-server-5.5, men:
  Pakken mysql-server-5.5 er ikke sat op endnu.
dpkg: fejl under behandling af mysql-server (--configure):
 afhængighedsproblemer - efterlader den ukonfigureret
Der opstod fejl under behandlingen:
 mysql-server-5.5
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Skærmbillede 2012-08-11 kl. 21.12.53.png
Skærmbillede 2012-08-11 kl. 21.12.53.png (15.69 KiB) Viewed 2762 times

kitchensink
Posts: 1
Joined: Wed Aug 15, 2012 12:50 pm

Re: MySQL wont install

Wed Aug 15, 2012 12:52 pm

Hi,
This is from another post:

check for loopback-interface with "ifconfig".
In my case the loopback interface was missing, and since mysql is configured as per default to bind to that, it could not start...

just edit /etc/network/interfaces:

add "lo" to the line with auto
in my case
before:
auto eth0
after:
auto lo eth0

and add the line:
iface lo inet loopback

then reboot.

emmevideo
Posts: 2
Joined: Sun Dec 23, 2012 4:20 pm

Re: MySQL wont install

Mon Dec 24, 2012 7:46 pm

Hi, I've the same problem. It is impossible to install Mysql. I've installed Apache2 and Php with no problem, for Mysql is two days that I try. Every time ask for the new password and at the end of installation give the error.
I try also to install libmysql but is the same think.

emmevideo
Posts: 2
Joined: Sun Dec 23, 2012 4:20 pm

Re: MySQL wont install

Wed Dec 26, 2012 1:34 pm

emmevideo wrote:Hi, I've the same problem. It is impossible to install Mysql. I've installed Apache2 and Php with no problem, for Mysql is two days that I try. Every time ask for the new password and at the end of installation give the error.
I try also to install libmysql but is the same think.
I resolved with rewrite the SD. But I'm not shure of what was the problem because I don't remember if I'd strart SSH service and I have the fisrt apt-get crash because I dont expand the partition to the entire SD memory space. So I rewrite SD, start SSH, expand the partition then install all I need for my web server like MySql, Apche2 and Php with Lamp.
Now it work Great !!!!!
Thank to the Raspberry staff !

Return to “Debian”