Came into work this morning to find one of our servers had mysql not running. Checking logs, I found a empty log file for today. It has been created around 530am, the Rackspace server panel says the server was "Last Updated:" around the same time. I rebooted the box to try and see if mysql was just not starting on boot, and it start.. I also ran "sudo update-rc.d mysql defaults" and found it was already in the list. One of the other developers in the office told me this was the 3 time in the last 2 week that the box has turned off mysql without errors or warnings. New Relic shows the server has not gotten over 60% of memory, so I have no idea why it keeps turning off.. Any ideas?
I have removed sudo and changed root passwords just incase someone in the office was turning it of unintentionally or something stupid like that.
Related
I had been running a MySQL server for weeks now. Everything had been working perfectly until yesterday, when the MySQL server simply stopped. I realized the Service had stopped, and whenever I try to start it I get an error message that says "The MySQL80 service on Local Server started and then stopped. Some services stop automatically if they are not in use by other programs or services."
So far, I have done some research online and have found solutions that include modifying the my.ini file. After looking for it for quite a while, I realized it wasn't being stored in Program Files, but in the hidden ProgramData folder. I opened the my.ini file and it was empty (I am not sure if this File is generated every time the service starts or if there should already be something in there).
Other solutions include running the mysqld --install and mysqld --initilize commands, but my Command Prompt won't recognize these commands. I am pretty much lost as to what to attempt now, and I am also pretty much confused since it had been running for weeks without any issues whatsoever.
What are some more troubleshooting steps for this?
I'm trying to get MySQL up and running for some analysis on my Mac.
MySQL version: 8.0.19
MacOS version: 10.14.6
The timeline is:
I installed MySQL successfully from https://dev.mysql.com/downloads/mysql/
It worked fine, I was able to create simple tables, etc. But when I tried to create my real schema, I realized that the default record size of 8k bytes wasn't enough; I had to increase it to the maximum, 65k bytes https://dev.mysql.com/doc/refman/8.0/en/column-count-limit.html#row-size-limits.
After reading the documentation, I learned that the row size can only be set when the database is initialized for the first time. So I wanted to start fresh, ensuring that when I first initialized the DB, the appropriate parameters were set.
So, I uninstalled MySQL using the widget in my Mac's Command Center. I rebooted, ensured no MySQL processes were running, then ran find -iname 'mysql' 2>/dev/null in the terminal, and found nothing. All traces, so far as I can tell, of MySQL were gone.
I downloaded the macOS 10.15 (x86, 64-bit), DMG Archive package again from https://dev.mysql.com/downloads/mysql/, installed it, used all the default settings in the installer, and then opened the MySQL widget from the Command Center again.
Here's where I configured the parameters. There's a place where I can put in a configuration file. So, following the advice in this How to workaround the row size limit of 66 KBytes, I created mysql.cnf in my home directory, put only these three lines in it, and put the filename in the box (checking the tickbox next to it):
innodb_page_size=64k
innodb_log_buffer_size=32M
innodb_buffer_pool_size=512M
I hit "apply". Then I went back to the other tab, hit "initialize database". No errors, seemed to work fine. Then I hit "start MySQL". The lights went briefly green, then red again. Multiple attempts, reboots, etc, don't seem to have any effect. In short, MySQL was trying to start up, but failing.
I also tried removing the mysql.cnf file, hitting "apply" and "initialize" again, and the problem is the same. I don't understand why this all worked before I uninstalled, but won't now.
I checked /var/log/system.log, and all I see is a bunch of lines noting the failure of MySQL to start:
but nowhere is the error from the application itself shown.
I did some Googling and SO'ing and looked in /usr/local/mysql/data/ as root, and I can see files that are in binary. But i do not know how to read these binary logs.
My questions:
How can I tell what error is preventing MySQL from starting?
How can I diagnose this issue? Is there a tool to read these binary files?
Does anyone know why MySQL would fail to start after a full wipe and re-install, though it was working in the first instance?
I experienced MySQL's failing to start from the System Preferences on Mac. It would turn green and red again. I also wiped and reinstalled a few times and it still wouldn't start.
In my case, I realized it was because I had AMPPS stack installed and its MySQL running at the same time. After turning off the MySQL in the AMPPS stack, I was able to start MySQL from the System Preferences successfully. Not sure if you had another software stack running that would cause the problem.
I have installed MYSQL with homebrew and am accessing it via the client in system preferences. When I click "Start MYSQL Server" the only installed instance MySQL 8.0.14 goes from red to green becoming active, but only remains active for a few seconds before flicking back to inactive. This repeats continuously.
Additionally, within Sequel Pro I am able to create new databases and update them with the Query terminal however when trying to load my existing databases from my machine, the client shows an unexpected error message of and becomes completely unresponsive.
I have tried uninstalling/reinstalling to no avail. s
Starting MySQL from the command line with
mysql.server start
Returns an error message of
2019-03-08T17:38:36.6NZ mysqld_safe A mysqld process already exists
I have tried killing all processes (MacOS Can't start MySQL Server) but the error remains.
Apologies if I am missing a glaringly onvious mistake, still quite new to MySQL!
Thanks in advance
Upon working on my computer, I noticed the computer's response started to become very slow. to speed it up, I opened the task manager and ended a few processes that seemed useless (one of which had the label 'MySQL'). Later on, I found out that the MySQL command line on my computer has stopped accepting my password (not sure how much .
I tried uninstalling MySQL (probably failed and uninstalled a different part of MySQL), and I even reinstalled the program, but it keeps asking me for the old password - and denying my access after every time I try typing it in.
Thank you in advance.
I am a new Mac user and trying to set up the development environment with Apache, PHP and MySQL. Initially, after a lot of installs and reinstalls i succeeded in installing MySQL (Apache and PHP came bundled with Mac) but now again mysql refuses to start up and gives the error, The server quit without updating PID file (/usr/local/var/mysql/Nikhils-MacBook-Pro.local.pid).
I have literally gone through entire SO questions regarding this problem but have not found a way to fix this and i mean i have done everything to start this but in vain. I have created the PID file too but it disappears in moments, i did a cleanup and reinstall using this SO Question but it has failed YET again. Please, i need to get my server started, i am really losing on to serious work and time.
Is there any other miraculous way to fix this unattainable feat? Also, if anyone asks what is the error in the log files, please don't as there is no log being registered as the server hasn't started yet.
I’ve got a similar problem with MySQL on a Mac (Mac Os X Could not startup MySQL Server. Reason: 255 and “ERROR! The server quit without updating PID file”) and after a long trial and error process, finally in order to restore the file permissions, I’ve just do that:
launch the Disk Utilities.app
choose my drive on the left panel
click on the “Repair disk permissions” button
This did the trick for me. Hoping this can help someone else.
brew install mysql on mac os
These instructions helped me. There was a my.cnf in /usr/local/opt/mysql/ which seems to have been the problem for me. YMMV.