I am having a mess around with installing different things on my Raspberry Pi 2. My latest project is installing a MySQL server on it. I have this working fine, but once I implement the MySQL server for the purpose I will use it for, the database will be rather large. Therefore, I would like to move the MySQL data files onto my Sandisk Cruzer Blade 64GB USB stick formatted to ext4. I have followed the following guide to do it:
http://gagsap37.blogspot.co.uk/2014/11/ ... -data.html
However, after copying the data folder to the USB drive and changing the datadir in the /etc/mysql/my.cnf file, I get the following message when trying to restart the MySQL server:
Code: Select all
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!Code: Select all
pi@raspberrypi /mnt/disk1/mysql $ ls -lrt
total 28692
-rw-rw-rw- 1 root root 0 Jun 16 23:27 debian-5.5.flag
-rw-rw-rw- 1 root root 18874368 Jun 16 23:27 ibdata1
-rw-rw-rw- 1 root root 5242880 Jun 16 23:27 ib_logfile1
-rw-rw-rw- 1 root root 6 Jun 16 23:27 mysql_upgrade_info
drwxrwxrwx 2 root root 4096 Jun 16 23:27 mysql
drwxrwxrwx 2 root root 4096 Jun 16 23:27 performance_schema
drwxrwxrwx 2 root root 4096 Jun 16 23:27 testdb
drwxrwxrwx 2 root root 4096 Jun 16 23:27 phpmyadmin
-rw-rw-rw- 1 root root 5242880 Jun 17 12:48 ib_logfile0Any help would be greatly appreciated!