Get MariaDB SQL Up and Running
If you read the previous article you will see that we installed the LAMP stack as is. We are going to be removing the MySQL component today and replacing it with MariaDB.
Remove MySQL
- Start the server in headless mode
- right click the context menu
- choose start headless
- SSH into it
- See what is installed
dpkg --get-selections | grep -v deinstall > installedFiles.txt
- Open the file
...
mysql-client-5.7 install
mysql-client-core-5.7 install
mysql-common install
mysql-server install
mysql-server-5.7 install
mysql-server-core-5.7 install
mysql-client-5.7 install
mysql-client-core-5.7 install
mysql-common install
...
- Remove these with apt-get remove
- remove /etc/mysql
When that doesn't work
sudo service mysql stop #or mysqld
sudo killall -9 mysql
sudo killall -9 mysqld
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo apt-get purge mysql-server-core-5.5
sudo apt-get purge mysql-client-core-5.5
sudo rm -rf /var/log/mysql
sudo rm -rf /etc/mysql
http://stackoverflow.com/questions/10853004/removing-mysql-5-5-completely
Install MariaDB
sudo apt-get install --force-reinstall true mariadb-server
sudo mysql_secure_installation
Grant localhost
https://dev.mysql.com/doc/refman/5.5/en/adding-users.html
Fix the bind address
File:
/etc/mysql/mariadb.conf.d/50-server.cnf
Allow any
do not do this in production or on an internet accessible machine:
bind-address:0.0.0.0
VirtualBox
- map a port to connect
- if you want it locked to your host you could put a host IP of 127.0.0.1
No comments:
Post a Comment