Skip to content

Instantly share code, notes, and snippets.

@plencovich
Created October 14, 2016 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plencovich/58fc23f76f5669d0e16cff9b507b46df to your computer and use it in GitHub Desktop.
Save plencovich/58fc23f76f5669d0e16cff9b507b46df to your computer and use it in GitHub Desktop.
DigitalOcean Fix MySQL for Wordpress
root@myserver:~# dd if=/dev/zero of=/swap.dat bs=1024 count=512k
root@myserver:~# mkswap /swap.dat
root@myserver:~# swapon /swap.dat
root@myserver:~# nano /etc/fstab
agregar:
/swap.dat none swap sw 0 0
root@myserver:~# nano /etc/mysql/my.cnf
agregar en [mysqld]
innodb_buffer_pool_size=64M
root@myserver:~# service mysqld reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment