I’m trying to install mysql 5.6.28 (not 5.6.14, so Error installing MySQL 5.6 doesn’t help me). This is on a LAMP stack. I give up on apt-get install (which may have been incorrect) and started attempting to install .deb files.
Unfortunately, When I uninstall mysql and then attempt to install the deb, I get this error:
A data directory ‘/var/lib/mysql’ is present on this system when no MySQL server package is currently installed on the system.
the build was canceled`
Changing to to headless just means that the script bails.
This error seems to persist regardless of if I remove the data directory or not.
dependencies: cache_directories: - mysql-2.6.28 # relative to the build directory pre: - if [[ ! -e mysql-2.6.28/mysql-common_5.6.28-1ubuntu12.04_amd64.deb ]]; then mkdir mysql-2.6.28; cd mysql-2.6.28; wget -O mysql-5.6.deb.tar http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-server_5.6.28-1ubuntu12.04_amd64.deb-bundle.tar && tar -xf mysql-5.6.deb.tar && cd ..; fi - sudo apt-get remove --purge mysql-server mysql-client mysql-common - sudo apt-get purge mysql-server-core-5.5 - sudo apt-get purge mysql-client-core-5.5 - rm -rf /var/lib/mysql - sudo dpkg -i mysql-2.6.28/*.deb - pecl install -f memcached-2.0.1
I assume that /var/lib/mysql is not owned by the default user, so you will probably need sudo to remove it completely. Sounds silly, but still—could you please try that out? Thanks.