After set up a new virtual machine on my MAC OS I tried to install the new mysql 5.6 and, for my surprise, I kept getting an error from the dpkg.

Everytime I tried to run

$ sudo apt-get install mysql-server-5.6

I was getting the error below:

E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

After searching on the web I found out the problem was memory. Reducing the number of connections in the my.cnf did not help. The issue relies on the fact MySQL 5.6 needs at least 1MB to install. So,

1)  I stopped my virtual machine;

2) Increased the memory to 1MB in the Virtual Box;

3) Run vagrant up again.

This time the mysql’s installation was completed with success. I hope this tip helps you too.

Happy Coding!

Vagrant: MySQL 5.6 on Ubuntu 14.04 failshttps://i2.wp.com/blog.mdnsolutions.com/wp-content/uploads/2013/11/download.jpeg?fit=275%2C183&ssl=1https://i2.wp.com/blog.mdnsolutions.com/wp-content/uploads/2013/11/download.jpeg?resize=150%2C150&ssl=1Renato MedinaDatabaseMySQLUBUNTUVagrant5.6,DPKG,error,MySQL,Ubuntu,VagrantAfter set up a new virtual machine on my MAC OS I tried to install the new mysql 5.6 and, for my surprise, I kept getting an error from the dpkg. Everytime I tried to run $ sudo apt-get install mysql-server-5.6 I was getting the error below: E: Sub-process /usr/bin/dpkg returned an error code (1) W:...A Magento Craftsman in Melbourne