Skip to content

Instantly share code, notes, and snippets.

@adierebel
Last active August 14, 2020 17:50
Show Gist options
  • Save adierebel/6b08284db33d9a584a4e6c0e4d99a305 to your computer and use it in GitHub Desktop.
Save adierebel/6b08284db33d9a584a4e6c0e4d99a305 to your computer and use it in GitHub Desktop.
Install Mariadb / MySQL on Alpine Linux 3.8

Install

apk add mysql mysql-client

Setup

  • Add user group for /var/lib/mysql: chown -R mysql:root /var/lib/mysql
  • Edit config, add datadir=/var/lib/mysql to /etc/mysql/my.cnf
  • Uncomment innodb_buffer_pool_size=16M, Save
  • Setup database: service mariadb setup
  • Start: service mariadb start
@adierebel
Copy link
Author

adierebel commented Aug 14, 2020

Need this for running my server into production

  • Install: apk add nginx certbot-nginx python3 python3-dev supervisor sudo nano htop
  • Setup user: Alpine Post-Install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment