MySql parando no Ubuntu – Job for mysql.service failed because the control process exited with error code

Se o  MySql estiver parando no Ubuntu e ao tentar levantar novamente você receber a mensagem de erro: “Job for mysql.service failed because the control process exited with error code” Realize os seguintes passos:
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:~# vim /etc/fstab
O Vim será iniciado. Adicione a seguinte linha no final do arquivo /etc/fstab.
/swap.dat      none    swap    sw      0       0
Então edite o arquivo de configuração do MySql.
root@myserver:~# vim /etc/mysql/my.cnf
E adicione a linha abaixo, dentro da configuração [mysqld]
innodb_buffer_pool_size=64M
E finalmente recarregue o MySql.
root@myserver:~#  service mysqld reload

About Author

You may also like

No Comment

You can post first response comment.

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter a message.