Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MYSQL server instance 8.0.13 automatically turned off and on randomly

I have installed mysql 8.0.13 server with mysql community edition on Mac OS (10.14.1) Mojava. Next day i was unable to connect with mysql server. I start mysql instance and it turned to OFF mode as shown in figure.

enter image description here

I tried multiple solutions like;

  1. Update file com.oracle.oss.mysql.mysqld.plist keepAlive attribute to true

  2. change connection timeout from 180 to 280.

  3. No port is listening to 3306

  4. Firewall disable

Kindly tell what could be the issue?

like image 210
moez Avatar asked Nov 10 '18 19:11

moez


People also ask

What causes MySQL server has gone away?

The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. In this case, you normally get one of the following error codes (which one you get is operating system-dependent). The client couldn't send a question to the server.

How do I stop MySQL from stopping?

Windows – Start and Stop Server Now search for MySQL service based on the version that is installed. Click on 'stop', 'start' or 'restart' the service option.

Does MySQL server start automatically?

systemd, the mysqld_safe and mysql. server scripts, Solaris SMF, and the macOS Startup Item (or MySQL Preference Pane) can be used to start the server manually, or automatically at system startup time.


1 Answers

This worked for me in MAC...

open Terminal and write the following

This will check all the instances that are currently running.

1) ps -ef | grep mysql

If you found any process Id with the above command.

2) sudo kill -9 [PID]

Where [PID] is the process id next to username like 5098

so it will be kill 5098

now you will restart again using the mysql server pane or by command

mysql.server start

like image 181
moez Avatar answered Sep 16 '22 21:09

moez