Fresh copy of the Rasp Pi 'wheezy' build from the official downloads page.
sudo apt-get install mysql-server
It fails. It does install MySQL 5.5, however spits out a bunch of errors when it's finishing the installation, and then refuses to start MySQL at all.
This is on a fresh installation, with an 8GB SD card (so PLENTY of room) on a 512mb Pi (Also tested on a 256mb Pi).
The output of the installation:
Code: Select all
pi@raspberrypi ~ $ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
heirloom-mailx libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl
mysql-client-5.5 mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
exim4 mail-transport-agent libipc-sharedcache-perl libterm-readkey-perl tinyca
Recommended packages:
mailx
The following NEW packages will be installed:
heirloom-mailx libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl
mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 13 newly installed, 0 to remove and 40 not upgraded.
Need to get 9,560 kB of archives.
After this operation, 91.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libaio1 armhf 0.3.109-3 [8,944 B]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-common all 5.5.24+dfsg-9 [76.3 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libnet-daemon-perl all 0.48-1 [46.2 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libplrpc-perl all 0.2020-2 [36.0 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbi-perl armhf 1.622-1 [895 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmysqlclient16 armhf 5.1.62-1 [1,828 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbd-mysql-perl armhf 4.021-1 [123 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-client-5.5 armhf 5.5.24+dfsg-9 [1,413 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-server-core-5.5 armhf 5.5.24+dfsg-9 [3,021 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-server-5.5 armhf 5.5.24+dfsg-9 [1,714 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main heirloom-mailx armhf 12.5-2 [253 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libhtml-template-perl all 2.91-1 [72.0 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-server all 5.5.24+dfsg-9 [74.5 kB]
Fetched 9,560 kB in 7s (1,329 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libaio1:armhf.
(Reading database ... 58375 files and directories currently installed.)
Unpacking libaio1:armhf (from .../libaio1_0.3.109-3_armhf.deb) ...
Selecting previously unselected package mysql-common.
Unpacking mysql-common (from .../mysql-common_5.5.24+dfsg-9_all.deb) ...
Selecting previously unselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.48-1_all.deb) ...
Selecting previously unselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously unselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.622-1_armhf.deb) ...
Selecting previously unselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.62-1_armhf.deb) ...
Selecting previously unselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.021-1_armhf.deb) ...
Selecting previously unselected package mysql-client-5.5.
Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.24+dfsg-9_armhf.deb) ...
Selecting previously unselected package mysql-server-core-5.5.
Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.24+dfsg-9_armhf.deb) ...
Processing triggers for man-db ...
Setting up mysql-common (5.5.24+dfsg-9) ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 58756 files and directories currently installed.)
Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.24+dfsg-9_armhf.deb) ...
Selecting previously unselected package heirloom-mailx.
Unpacking heirloom-mailx (from .../heirloom-mailx_12.5-2_armhf.deb) ...
Selecting previously unselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.91-1_all.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.24+dfsg-9_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up libaio1:armhf (0.3.109-3) ...
Setting up libnet-daemon-perl (0.48-1) ...
Setting up libplrpc-perl (0.2020-2) ...
Setting up libdbi-perl (1.622-1) ...
Setting up libmysqlclient16 (5.1.62-1) ...
Setting up libdbd-mysql-perl (4.021-1) ...
Setting up mysql-client-5.5 (5.5.24+dfsg-9) ...
Setting up mysql-server-core-5.5 (5.5.24+dfsg-9) ...
Setting up mysql-server-5.5 (5.5.24+dfsg-9) ...
[ ok ] Stopping MySQL database server: mysqld.
121111 19:52:16 [Note] Plugin 'FEDERATED' is disabled.
121111 19:52:16 InnoDB: The InnoDB memory heap is disabled
121111 19:52:16 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121111 19:52:16 InnoDB: Compressed tables use zlib 1.2.7
121111 19:52:16 InnoDB: Using Linux native AIO
121111 19:52:16 InnoDB: Initializing buffer pool, size = 128.0M
121111 19:52:16 InnoDB: Completed initialization of buffer pool
121111 19:52:16 InnoDB: highest supported file format is Barracuda.
121111 19:52:17 InnoDB: Waiting for the background threads to start
121111 19:52:18 InnoDB: 1.1.8 started; log sequence number 1595675
121111 19:52:18 InnoDB: Starting shutdown...
121111 19:52:19 InnoDB: Shutdown completed; log sequence number 1595675
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up heirloom-mailx (12.5-2) ...
update-alternatives: using /usr/bin/heirloom-mailx to provide /usr/bin/mailx (mailx) in auto mode
Setting up libhtml-template-perl (2.91-1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for menu ...
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Things I've tried:
- A fresh install (FOUR TIMES)
- A fresh install with a re-downloaded copy of the OS (TWICE)
- Different SD cards (tried a 4GB Sandisk Class 6, a 8GB Sandisk Class 6 and a 16GB PNY MicroSD Class 10
- Rebooting (numerous times)
- apt-get clean
- Modifying the my.cnf to lower the INNODB memory usage
Now, if you do:
sudo /etc/init.d/mysqld restart
It sits for about 15-20 seconds trying to start mysql, then fails with no error provided.
If you do it without sudo, like so:
/etc/init.d/mysqld restart
It says this:
Code: Select all
[FAIL] /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed!
Code: Select all
pi@raspberrypi /var/lib $ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.3G 1.5G 5.6G 21% /
/dev/root 7.3G 1.5G 5.6G 21% /
devtmpfs 243M 0 243M 0% /dev
tmpfs 49M 196K 49M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 98M 0 98M 0% /run/shm
/dev/mmcblk0p1 56M 17M 40M 30% /boot
I'm stumped. MySQL just does not work on the Pi at all right now.
Any ideas as to what the hell's happening here?
