Skip to content

Instantly share code, notes, and snippets.

@rogerbush8
Last active May 17, 2017 01:31
Show Gist options
  • Save rogerbush8/945baf7a3f1a9ae99ab1 to your computer and use it in GitHub Desktop.
Save rogerbush8/945baf7a3f1a9ae99ab1 to your computer and use it in GitHub Desktop.
Clean interactive install of MariaDB 10.0+ on Debian Wheezy.
# 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