[SOLVED] Error Installing MariaDB on Model B Rev.1

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] Error Installing MariaDB on Model B Rev.1

Postby ajhlinuxuser » Tue Feb 25, 2014 7:15 am

Hello,

I wanted to post the solution to an error I encountered while installing MariaDB on a revision 1 board. This is the one with 256MB of RAM, so I don't know if it occurs on the revision 2 (512MB RAM) units.

$this->bbcode_second_pass_code('', '[ERROR] mysqld: Out of memory (Needed 130760704 bytes)')

My solution:

Create a swapfile that is 256MB in size (if you have this error, you probably are too late to make a swap partition).
$this->bbcode_second_pass_code('', '# dd if=/dev/zero of=/swapfile bs=1M count=256
# mkswap /swapfile
# swapon /swapfile
')

And then retry starting mysqld. Should work without errors.
ajhlinuxuser
 
Posts: 5
Joined: Sun Jan 19, 2014 2:55 am

Re: [SOLVED] Error Installing MariaDB on Model B Rev.1

Postby moonman » Tue Feb 25, 2014 9:49 am

swap on an sd card is a bad idea. A possible solution if you are running headless is to decrease GPU assigned memory to a minimum of 48MB and disable dynamic memory split in config.txt Also there were several threads on optimizing MariaDB memory usage in armv5 forums.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests