Last active
May 17, 2017 01:31
-
-
Save rogerbush8/945baf7a3f1a9ae99ab1 to your computer and use it in GitHub Desktop.
Clean interactive install of MariaDB 10.0+ on Debian Wheezy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell commands to interactively install MariaDB 10.0 on Debian Wheezy | |
# This is not an automatic script (but could be easily converted). Assumes you have root. | |
# Update | |
apt-get update | |
apt-get upgrade | |
# Add MariaDB repo and key for Debian Wheezy MariaDB 10.0 (SF mirror) | |
apt-get install python-software-properties | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db | |
add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/debian wheezy main' | |
apt-get update | |
# Install MariaDB and run interactive setup script (choose new root password) | |
apt-get install mariadb-server | |
# Now smoketest the install. Note that mysqld is now running: | |
ps auxwww | grep mysqld | |
# Login using root password | |
mysql -u root -p | |
[ENTER PASSWORD] | |
# MariaDB is now installed. Next steps are typically creating a new database, | |
# users, and granting permissions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment