Starting mysql error the server quit without updating pid file

On Mac OS X v10.6 (Snow Leopard), starting MySQL gives the following error: The server quit without updating PID file File my.cnf [mysqld] port = 3306 socket = /tmp/mysql.sock

Try to find your log file with suffix «.err». There should be more information. It might be in:

/usr/local/var/mysql/your_computer_name.local.err

It’s probably a problem with permissions

  1. Check if any MySQL instance is running

    ps -ef | grep mysql
    

    If yes, you should stop it, or kill the process:

    kill -9 PID
    

    where PID is the number displayed next to the username on the output of the previous command

  2. Check ownership of /usr/local/var/mysql/

    ls -laF /usr/local/var/mysql/
    

    If it is owner by root, you should change it to mysql or your_user

    sudo chown -R mysql /usr/local/var/mysql/
    

Peter Mortensen's user avatar

answered Nov 15, 2011 at 13:56

Tombart's user avatar

TombartTombart

29.6k15 gold badges122 silver badges132 bronze badges

15

Follow the instructions from brew install mysql.

Set up databases to run as your user account with:

For MySQL 5.x:

unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

To set up base tables in another folder, or use a different user to run mysqld, view the help for mysqld_install_db:

mysql_install_db --help

And view the MySQL documentation:

  • 4.4.3 mysql_install_db — Initialize MySQL Data Directory
  • 2.10.4 Securing the Initial MySQL Accounts

For MySQL 8.x:

unset TMPDIR
mysqld --initialize-insecure --log-error-verbosity --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

Make sure the data directory /usr/local/var/mysql above is empty. Back it up if necessary.

To run as, for instance, user «mysql», you may need to sudo:

sudo mysql_install_db ...options...

Start mysqld manually with:

mysql.server start

Note: if this fails, you probably forgot to run the first two steps up above

Peter Mortensen's user avatar

answered Jun 16, 2012 at 6:57

svs's user avatar

svssvs

2,4151 gold badge13 silver badges10 bronze badges

17

I had the same issue on my Mac machine (correctly followed all the installation steps suggested by brew install).

Deleting the error file fixed it for me:

sudo rm -rf /usr/local/var/mysql/dev.work.err (dev.work is my hostname)

This worked because dev.work.err was owned by _mysql:wheel instead of my own username.
CHOWN-ing the error file would have probably fixed it as well.

answered Mar 25, 2013 at 9:46

ukliviu's user avatar

ukliviuukliviu

3,1061 gold badge23 silver badges30 bronze badges

9

After rebooting I had the same issue. Here is how I fixed it:

sudo chown -R _mysql /usr/local/var/mysql

Peter Mortensen's user avatar

answered Aug 23, 2013 at 14:15

Sam Ruberti's user avatar

Sam RubertiSam Ruberti

1,5191 gold badge12 silver badges10 bronze badges

8

This worked for me…

Check all of the MySQL processes running:

$ ps aux | grep mysql

USER     PID    %CPU  %MEM 
_mysql   5970   0.0   0.4 ...

Then kill all the processes listed from the above command using the following:

$ sudo kill -9 [PID]

Replace [PID] with the individual PID from the list above, e.g. 5970.

Do that for all of the lines you see with the first command.

Then you can startup your MySQL server again:

mysql.server start

Joshua Pinter's user avatar

Joshua Pinter

43.9k23 gold badges239 silver badges243 bronze badges

answered Nov 27, 2014 at 22:11

mikoop's user avatar

mikoopmikoop

1,9211 gold badge17 silver badges18 bronze badges

2

Try to remove the ib_logfile0 and ib_logfile1 files and then run MySQL again:

rm /usr/local/var/mysql/ib_logfile0
rm /usr/local/var/mysql/ib_logfile1

It works for me.

Peter Mortensen's user avatar

answered Jun 1, 2018 at 5:40

user3890355's user avatar

user3890355user3890355

97112 silver badges13 bronze badges

5

This error can occur when trying to start MySQL after it was improperly shut down.

  1. Take a look at the MySQL error log file. If it mentions something like «Check that you do not already have another mysqld process using the same data or log files.», then you need to properly shutdown that process.

  2. See what process MySQL is running on. Use the command lsof -i:3306 (the default port number for MySQL is 3306).

    Your output should look like this:

    COMMAND   PID      USER  FD   TYPE  DEVICE             SIZE/OFF NODE NAME
    mysqld   4249  username  17u  IPv4  0x7843d9d130469c0b      0t0 TCP  localhost:mysql (LISTEN)
    
  3. Terminate the process running mysql: kill -15 4249

    Kill -15 sends a signal to the process to free up any resources it is locking and terminate the process after.

  4. Now MySQL should start up with no problems: mysql.server start

Peter Mortensen's user avatar

answered Jan 28, 2016 at 19:57

cosbor11's user avatar

cosbor11cosbor11

13.6k10 gold badges52 silver badges67 bronze badges

4

⚠️ This will erase your data, so make sure it’s backed up first.

If no one answer helped you, just remove folder /usr/local/var/mysql and then install MySQL again using brew reinstall mysql.

Peter Mortensen's user avatar

answered Feb 7, 2018 at 2:22

user3890355's user avatar

user3890355user3890355

97112 silver badges13 bronze badges

4

My error file told me also that the port may be being used by another process, but simply running sudo mysql.server start fixed the issue for me.

answered Dec 12, 2013 at 18:48

jaredsmith's user avatar

jaredsmithjaredsmith

7,1963 gold badges20 silver badges31 bronze badges

2

I recently came across this issue, however it was working before, then stopped.

This was because I initially started mysql.server as root instead of myself.

The fix was to delete the err log file (which was owned by _mysql). Starting it again got it passed.

Kevin Panko's user avatar

Kevin Panko

8,26919 gold badges51 silver badges61 bronze badges

answered Oct 3, 2013 at 17:46

Roland Parnaso's user avatar

1

For me the fix was simple.

top

showed that mysqld was already running.

sudo killall mysqld 

then allowed the process to start.

Peter Mortensen's user avatar

answered Jan 7, 2016 at 18:18

Luke Madhanga's user avatar

Luke MadhangaLuke Madhanga

6,4232 gold badges42 silver badges45 bronze badges

1

For me I had to reinstall MySQL:

brew reinstall mysql

And then the below to have launchd start MySQL now and restart at login:

brew services start mysql

Peter Mortensen's user avatar

answered May 7, 2018 at 8:55

sumit's user avatar

sumitsumit

14.7k11 gold badges64 silver badges108 bronze badges

0

The solution that worked for me was here: Can’t create PID file on MySQL server, permission denied

Changing some of my permissions seemed to do the trick. I’m running a mid-2012 MacBook Air with Mac OS X v10.8.2 (Mountain Lion) and MySQL was installed with Homebrew.

chmod 0755 /var
chown root:wheel /var/tmp
sudo chmod 0771 /usr/local/var/mysql/*

Peter Mortensen's user avatar

answered Jan 28, 2013 at 21:20

Gabe's user avatar

GabeGabe

2,1171 gold badge15 silver badges13 bronze badges

0

This worked for me:

Note: This a hard reinstall. Use when all other options have been exhausted.

On a Mac with Homebrew:

List all instances of MySQL that exists by running

brew services

Remove each instance by running

brew uninstall <instance_name>

Delete the MySQL directory in /usr/local/var/mysql:

rm -rf /usr/local/var/mysql

Reinstall MySQL using Homebrew:

brew install mysql
brew install mysql@<version> #Optional

Rerun mysql.server start:

mysql.server start

answered May 31, 2020 at 2:25

Dave Kalu's user avatar

Dave KaluDave Kalu

1,4203 gold badges17 silver badges33 bronze badges

2

I’m using

  • a brand new MacBook Pro with OS X v10.7.3.x (Lion)
  • GCC via the OS X GCC installer

I installed MySQL using Homebrew (‘brew install mysql’). It installed a couple of dependencies and then MySQL.

When I tried to start it up,

mysql.server start

Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/west.local.pid).

I ran this command,

/usr/local/Cellar/mysql/5.5.25/scripts/mysql_install_db

and MySQL works.

Please take note that you need to run mysql_install_db from the top level of the MySQL directory (e.g., usr/local/Cellar/mysql/5.5.25). Running it directly within the /scripts directory does not give it enough context for it to run.

Peter Mortensen's user avatar

answered Jun 21, 2012 at 0:22

westonplatter's user avatar

westonplatterwestonplatter

1,4752 gold badges19 silver badges30 bronze badges

1

I had this problem while trying to brew upgrade on Mac OS X v10.7.5 (Lion).

Unfortunately MySQL was also upgraded to 5.6.10 from 5.5.14. I tried the new version, but it did not work.

I decided to go back to my old setup and did a

brew switch mysql 5.5.14

This did not solve the problem. Elsewhere I read and did this, voila! All was back :)

cd /usr/local/var/mysql
mv ib_logfile0 ib_logfile0.bak
mv ib_logfile1 ib_logfile1.bak

Peter Mortensen's user avatar

answered Feb 19, 2013 at 22:28

cenk's user avatar

cenkcenk

1,37814 silver badges27 bronze badges

1

With the help of a few answers posted here, I was able to find the issue

First I run

sudo -i

So I could have root access.

Then I deleted the xxxx.err file:

rm -rf /usr/local/mysql/data/xxxx.err

After I started MySQL in SafeMode,

/usr/local/mysql/bin/mysqld_safe start

It will try to start and will exit because of an error… a new xxx.err file will be created and you need to read it to see the cause of the error:

tail -f /usr/local/mysql/data/mysqld.local.err

In my case, for some reason, it was missing some folder and file inside /var/log/ folder… So I created both:

cd /var/log

mkdir mysql

touch mysql-bin.index

After the new file was created, then you need to change permissions:

chown -R _mysql /var/log/mysql

When all those steps were taken, my database started working immediately…

The key is to read the error and log and find what’s is wrong…

answered Aug 18, 2016 at 17:34

Paulo Griiettner's user avatar

For me the solution was to override/correct the data directory in /etc/my/cnf.

I built MySQL 5.5.27 from source with the directions provided in the readme file:


# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions

# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data

# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &

# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

mysqld_safe terminated itself without explanation. running /etc/init.d/mysql.server start resulted in the error:

«The server quit without updating PID file»

I noticed something odd in the installation instructions though. It has ownership changed to mysql for the directory «data», but not to «var»; this is unusual because for years I have had to ensure that var directory was mysql writable. So I manually ran chown -R mysql /usr/local/mysql/var and then attempted to start it again. Still no luck. But worse, no .err file in the var dir — it was in the «data» dir! so scripts/mysql_install_db sets up camp in /usr/local/mysql/var, but the rest of the application seems to want to do its work in /usr/local/mysql/data!

So I just edited /etc/my.cnf and under the section [mysqld] I added a directive to explicitly point mysql’s data directory to var (as I normally expect it to be any how), and after doing so, mysqld starts up just fine. The directive to add looks like this:

datadir = /usr/local/mysql/var

Worked for me. Hope it helps for you.

answered Aug 12, 2012 at 7:38

SKelly's user avatar

SKellySKelly

711 silver badge1 bronze badge

0

If your system has multiple version of MySQL then you are likely going to hit this PID error:

We can begin with killing all MySQL processes:

sudo killall mysqld

Go to /usr/local and choose which MySQL version you want to have, and then provide the MySQL permission to that. In my case I needed version 8.

sudo chown -R mysql mysql-8.0.21-macos10.15-x86_64

Go to the folder /usr/local/mysql-8.0.21-macos10.15-x86_64 and start the SQL server:

sudo ./mysql.server start (Enter your laptop password)

If it gives the below output… the PID issue is solved

sudo ./mysql.server start

Starting MySQL
.. SUCCESS!

Peter Mortensen's user avatar

answered Aug 13, 2020 at 16:11

SANGEETHA P.H.'s user avatar

It seems that the MySQL process is running, hence you are unable to use the port. You can check the running MySQL process using following command:

ps auxf | grep mysql

If you get any MySQL process, kill that process ID using kill -9 PID and then try to start MySQL.

Peter Mortensen's user avatar

answered Jul 8, 2013 at 20:00

colin2328's user avatar

colin2328colin2328

611 silver badge4 bronze badges

1

Start MySQL in safe mode:

/usr/local/mysql/bin/mysqld_safe start

Or on the Mac, end any mysql or mysqld task (or other) in your Activity Monitor application.

Or check you error by

tail -f /usr/local/mysql/data/XXXXX-XXXXX-Pro.local.err

Peter Mortensen's user avatar

answered Sep 9, 2015 at 3:12

Saurabh Chandra Patel's user avatar

Somehow I screwed up my permissions on Mac OS X v10.11 (El Capitan) and decided to reinstall MySQL from scratch.

I use Homebrew on El Capitan and decided to reinstall:

brew uninstall mysql
sudo rm -rf /usr/local/var/mysql
brew install mysql
mysql.server start # ... SUCCESS

The file permissions on a fresh install changed from _mysql to include my username:

ls -alh /usr/local/var/mysql
drwxr-xr-x   22 lfender  admin   748B Mar 22 09:58 .
# ... etc.

Peter Mortensen's user avatar

answered Mar 22, 2016 at 14:06

lfender6445's user avatar

lfender6445lfender6445

32.2k11 gold badges117 silver badges98 bronze badges

1

In my case, the error happens due to the accessing problem of the error log file.

The following two commands help me address the problem.

sudo chown <user> /usr/local/var/mysql/<my-host-name>.err
sudo chmod 666 /usr/local/var/mysql/<my-host-name>.err

Peter Mortensen's user avatar

answered Jul 6, 2016 at 10:27

FrankSu's user avatar

FrankSuFrankSu

3311 gold badge4 silver badges10 bronze badges

What’s the error log saying? I got this error, and it ended up being an old invalid setting in the my.cnf file, which the MySQL error log indicated. If not a bad configuration setting, the error log should at least point you in the right direction.

Peter Mortensen's user avatar

answered Nov 11, 2011 at 3:36

Brian Ray's user avatar

Brian RayBrian Ray

1,2571 gold badge13 silver badges19 bronze badges

Check if you have space left in your drive. I got this problem when no space left in my drive.

answered Nov 29, 2013 at 11:39

thavan's user avatar

thavanthavan

2,37123 silver badges32 bronze badges

1

I hope this works for you.

After checking the error log, I found this:

120309 17:42:49 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
120309 17:42:50 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
120309 17:42:50 [Warning] You need to use --log-bin to make --binlog-format work.
120309 17:42:50 [Note] Plugin 'FEDERATED' is disabled.
120309 17:42:50 InnoDB: The InnoDB memory heap is disabled
120309 17:42:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120309 17:42:50 InnoDB: Compressed tables use zlib 1.2.3
120309 17:42:50 InnoDB: Initializing buffer pool, size = 16.0M
120309 17:42:50 InnoDB: Completed initialization of buffer pool
120309 17:42:50  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /usr/local/mysql/data/ib_logfile0
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
120309 17:42:50 mysqld_safe mysqld from pid file /usr/local/mysql/data/lu1s.local.pid ended

And to solve it, I gave ownership rights to the entire mysql folder:

cd /usr/local
sudo chown mysql mysql
sudo chown mysql mysql-5.5.21-osx10.6-x86_64
sudo chown _mysql mysql
sudo chown _mysql mysql-5.5.21-osx10.6-x86_64

Then (you can do it command-line too), I applied the permissions (once I gave that ownership to _mysql and mysql users) to all enclosed folders from within the «get info» menu of the folder at /usr/local/mysql-5.5.21-osx10.6-x86_64 . You don’t need to tho that to the alias since it’s only an alias.

The name of the folder depends of the installation version of MySQL that you have.

Peter Mortensen's user avatar

answered Mar 10, 2012 at 2:00

lu1s's user avatar

lu1slu1s

5,3603 gold badges22 silver badges37 bronze badges

I had the same problem. Moving my /etc/my.cnf file worked for me. I got the information here.

Peter Mortensen's user avatar

answered Jan 5, 2013 at 13:33

Nealv's user avatar

NealvNealv

6,7968 gold badges56 silver badges87 bronze badges

0

I had the same issue. For me it was doing a brew remove while having a previous install of the mysqld running. It seems Homebrew (brew) does not stop a service before uninstalling.

After checking the .err file I saw the logged error that another copy of MySQL may be running, after terminating the old service. I was then able to restart the new MySQL install.

Peter Mortensen's user avatar

answered Jun 6, 2013 at 11:53

Nudge's user avatar

NudgeNudge

312 bronze badges

2

Simple…

Fix the 2002 MySQL socket error.

Fix the looming 2002 socket error – which is linking where MySQL places the socket and where OS X thinks it should be. MySQL puts it in /tmp and OS X looks for it in /var/mysql. The socket is a type of file that allows MySQL client/server communication.

sudo mkdir /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

Well done :) This helped me a lot!

I took this guide from the guys on http://coolestguidesontheplanet.com/

Peter Mortensen's user avatar

answered Oct 25, 2014 at 18:48

carloslozada's user avatar

Move the log file named “ib_logfile” in “/var/lib/mysql” and restart mysql. Sometimes mysql will fail because it faces difficulty updating the log file

mv /var/lib/mysql/ib_logfile* /some/tmp/folder/

You can also remove ib_logfile as it will be created automatically after mysql restart

now restart mysql server

answered Jan 21, 2015 at 19:57

Zangetsu's user avatar

ZangetsuZangetsu

1,80016 silver badges25 bronze badges

Try to find your log file with suffix «.err». There should be more information. It might be in:

/usr/local/var/mysql/your_computer_name.local.err

It’s probably a problem with permissions

  1. Check if any MySQL instance is running

    ps -ef | grep mysql
    

    If yes, you should stop it, or kill the process:

    kill -9 PID
    

    where PID is the number displayed next to the username on the output of the previous command

  2. Check ownership of /usr/local/var/mysql/

    ls -laF /usr/local/var/mysql/
    

    If it is owner by root, you should change it to mysql or your_user

    sudo chown -R mysql /usr/local/var/mysql/
    

Peter Mortensen's user avatar

answered Nov 15, 2011 at 13:56

Tombart's user avatar

TombartTombart

29.6k15 gold badges122 silver badges132 bronze badges

15

Follow the instructions from brew install mysql.

Set up databases to run as your user account with:

For MySQL 5.x:

unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

To set up base tables in another folder, or use a different user to run mysqld, view the help for mysqld_install_db:

mysql_install_db --help

And view the MySQL documentation:

  • 4.4.3 mysql_install_db — Initialize MySQL Data Directory
  • 2.10.4 Securing the Initial MySQL Accounts

For MySQL 8.x:

unset TMPDIR
mysqld --initialize-insecure --log-error-verbosity --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

Make sure the data directory /usr/local/var/mysql above is empty. Back it up if necessary.

To run as, for instance, user «mysql», you may need to sudo:

sudo mysql_install_db ...options...

Start mysqld manually with:

mysql.server start

Note: if this fails, you probably forgot to run the first two steps up above

Peter Mortensen's user avatar

answered Jun 16, 2012 at 6:57

svs's user avatar

svssvs

2,4151 gold badge13 silver badges10 bronze badges

17

I had the same issue on my Mac machine (correctly followed all the installation steps suggested by brew install).

Deleting the error file fixed it for me:

sudo rm -rf /usr/local/var/mysql/dev.work.err (dev.work is my hostname)

This worked because dev.work.err was owned by _mysql:wheel instead of my own username.
CHOWN-ing the error file would have probably fixed it as well.

answered Mar 25, 2013 at 9:46

ukliviu's user avatar

ukliviuukliviu

3,1061 gold badge23 silver badges30 bronze badges

9

After rebooting I had the same issue. Here is how I fixed it:

sudo chown -R _mysql /usr/local/var/mysql

Peter Mortensen's user avatar

answered Aug 23, 2013 at 14:15

Sam Ruberti's user avatar

Sam RubertiSam Ruberti

1,5191 gold badge12 silver badges10 bronze badges

8

This worked for me…

Check all of the MySQL processes running:

$ ps aux | grep mysql

USER     PID    %CPU  %MEM 
_mysql   5970   0.0   0.4 ...

Then kill all the processes listed from the above command using the following:

$ sudo kill -9 [PID]

Replace [PID] with the individual PID from the list above, e.g. 5970.

Do that for all of the lines you see with the first command.

Then you can startup your MySQL server again:

mysql.server start

Joshua Pinter's user avatar

Joshua Pinter

43.9k23 gold badges239 silver badges243 bronze badges

answered Nov 27, 2014 at 22:11

mikoop's user avatar

mikoopmikoop

1,9211 gold badge17 silver badges18 bronze badges

2

Try to remove the ib_logfile0 and ib_logfile1 files and then run MySQL again:

rm /usr/local/var/mysql/ib_logfile0
rm /usr/local/var/mysql/ib_logfile1

It works for me.

Peter Mortensen's user avatar

answered Jun 1, 2018 at 5:40

user3890355's user avatar

user3890355user3890355

97112 silver badges13 bronze badges

5

This error can occur when trying to start MySQL after it was improperly shut down.

  1. Take a look at the MySQL error log file. If it mentions something like «Check that you do not already have another mysqld process using the same data or log files.», then you need to properly shutdown that process.

  2. See what process MySQL is running on. Use the command lsof -i:3306 (the default port number for MySQL is 3306).

    Your output should look like this:

    COMMAND   PID      USER  FD   TYPE  DEVICE             SIZE/OFF NODE NAME
    mysqld   4249  username  17u  IPv4  0x7843d9d130469c0b      0t0 TCP  localhost:mysql (LISTEN)
    
  3. Terminate the process running mysql: kill -15 4249

    Kill -15 sends a signal to the process to free up any resources it is locking and terminate the process after.

  4. Now MySQL should start up with no problems: mysql.server start

Peter Mortensen's user avatar

answered Jan 28, 2016 at 19:57

cosbor11's user avatar

cosbor11cosbor11

13.6k10 gold badges52 silver badges67 bronze badges

4

⚠️ This will erase your data, so make sure it’s backed up first.

If no one answer helped you, just remove folder /usr/local/var/mysql and then install MySQL again using brew reinstall mysql.

Peter Mortensen's user avatar

answered Feb 7, 2018 at 2:22

user3890355's user avatar

user3890355user3890355

97112 silver badges13 bronze badges

4

My error file told me also that the port may be being used by another process, but simply running sudo mysql.server start fixed the issue for me.

answered Dec 12, 2013 at 18:48

jaredsmith's user avatar

jaredsmithjaredsmith

7,1963 gold badges20 silver badges31 bronze badges

2

I recently came across this issue, however it was working before, then stopped.

This was because I initially started mysql.server as root instead of myself.

The fix was to delete the err log file (which was owned by _mysql). Starting it again got it passed.

Kevin Panko's user avatar

Kevin Panko

8,26919 gold badges51 silver badges61 bronze badges

answered Oct 3, 2013 at 17:46

Roland Parnaso's user avatar

1

For me the fix was simple.

top

showed that mysqld was already running.

sudo killall mysqld 

then allowed the process to start.

Peter Mortensen's user avatar

answered Jan 7, 2016 at 18:18

Luke Madhanga's user avatar

Luke MadhangaLuke Madhanga

6,4232 gold badges42 silver badges45 bronze badges

1

For me I had to reinstall MySQL:

brew reinstall mysql

And then the below to have launchd start MySQL now and restart at login:

brew services start mysql

Peter Mortensen's user avatar

answered May 7, 2018 at 8:55

sumit's user avatar

sumitsumit

14.7k11 gold badges64 silver badges108 bronze badges

0

The solution that worked for me was here: Can’t create PID file on MySQL server, permission denied

Changing some of my permissions seemed to do the trick. I’m running a mid-2012 MacBook Air with Mac OS X v10.8.2 (Mountain Lion) and MySQL was installed with Homebrew.

chmod 0755 /var
chown root:wheel /var/tmp
sudo chmod 0771 /usr/local/var/mysql/*

Peter Mortensen's user avatar

answered Jan 28, 2013 at 21:20

Gabe's user avatar

GabeGabe

2,1171 gold badge15 silver badges13 bronze badges

0

This worked for me:

Note: This a hard reinstall. Use when all other options have been exhausted.

On a Mac with Homebrew:

List all instances of MySQL that exists by running

brew services

Remove each instance by running

brew uninstall <instance_name>

Delete the MySQL directory in /usr/local/var/mysql:

rm -rf /usr/local/var/mysql

Reinstall MySQL using Homebrew:

brew install mysql
brew install mysql@<version> #Optional

Rerun mysql.server start:

mysql.server start

answered May 31, 2020 at 2:25

Dave Kalu's user avatar

Dave KaluDave Kalu

1,4203 gold badges17 silver badges33 bronze badges

2

I’m using

  • a brand new MacBook Pro with OS X v10.7.3.x (Lion)
  • GCC via the OS X GCC installer

I installed MySQL using Homebrew (‘brew install mysql’). It installed a couple of dependencies and then MySQL.

When I tried to start it up,

mysql.server start

Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/west.local.pid).

I ran this command,

/usr/local/Cellar/mysql/5.5.25/scripts/mysql_install_db

and MySQL works.

Please take note that you need to run mysql_install_db from the top level of the MySQL directory (e.g., usr/local/Cellar/mysql/5.5.25). Running it directly within the /scripts directory does not give it enough context for it to run.

Peter Mortensen's user avatar

answered Jun 21, 2012 at 0:22

westonplatter's user avatar

westonplatterwestonplatter

1,4752 gold badges19 silver badges30 bronze badges

1

I had this problem while trying to brew upgrade on Mac OS X v10.7.5 (Lion).

Unfortunately MySQL was also upgraded to 5.6.10 from 5.5.14. I tried the new version, but it did not work.

I decided to go back to my old setup and did a

brew switch mysql 5.5.14

This did not solve the problem. Elsewhere I read and did this, voila! All was back :)

cd /usr/local/var/mysql
mv ib_logfile0 ib_logfile0.bak
mv ib_logfile1 ib_logfile1.bak

Peter Mortensen's user avatar

answered Feb 19, 2013 at 22:28

cenk's user avatar

cenkcenk

1,37814 silver badges27 bronze badges

1

With the help of a few answers posted here, I was able to find the issue

First I run

sudo -i

So I could have root access.

Then I deleted the xxxx.err file:

rm -rf /usr/local/mysql/data/xxxx.err

After I started MySQL in SafeMode,

/usr/local/mysql/bin/mysqld_safe start

It will try to start and will exit because of an error… a new xxx.err file will be created and you need to read it to see the cause of the error:

tail -f /usr/local/mysql/data/mysqld.local.err

In my case, for some reason, it was missing some folder and file inside /var/log/ folder… So I created both:

cd /var/log

mkdir mysql

touch mysql-bin.index

After the new file was created, then you need to change permissions:

chown -R _mysql /var/log/mysql

When all those steps were taken, my database started working immediately…

The key is to read the error and log and find what’s is wrong…

answered Aug 18, 2016 at 17:34

Paulo Griiettner's user avatar

For me the solution was to override/correct the data directory in /etc/my/cnf.

I built MySQL 5.5.27 from source with the directions provided in the readme file:


# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions

# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data

# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &

# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

mysqld_safe terminated itself without explanation. running /etc/init.d/mysql.server start resulted in the error:

«The server quit without updating PID file»

I noticed something odd in the installation instructions though. It has ownership changed to mysql for the directory «data», but not to «var»; this is unusual because for years I have had to ensure that var directory was mysql writable. So I manually ran chown -R mysql /usr/local/mysql/var and then attempted to start it again. Still no luck. But worse, no .err file in the var dir — it was in the «data» dir! so scripts/mysql_install_db sets up camp in /usr/local/mysql/var, but the rest of the application seems to want to do its work in /usr/local/mysql/data!

So I just edited /etc/my.cnf and under the section [mysqld] I added a directive to explicitly point mysql’s data directory to var (as I normally expect it to be any how), and after doing so, mysqld starts up just fine. The directive to add looks like this:

datadir = /usr/local/mysql/var

Worked for me. Hope it helps for you.

answered Aug 12, 2012 at 7:38

SKelly's user avatar

SKellySKelly

711 silver badge1 bronze badge

0

If your system has multiple version of MySQL then you are likely going to hit this PID error:

We can begin with killing all MySQL processes:

sudo killall mysqld

Go to /usr/local and choose which MySQL version you want to have, and then provide the MySQL permission to that. In my case I needed version 8.

sudo chown -R mysql mysql-8.0.21-macos10.15-x86_64

Go to the folder /usr/local/mysql-8.0.21-macos10.15-x86_64 and start the SQL server:

sudo ./mysql.server start (Enter your laptop password)

If it gives the below output… the PID issue is solved

sudo ./mysql.server start

Starting MySQL
.. SUCCESS!

Peter Mortensen's user avatar

answered Aug 13, 2020 at 16:11

SANGEETHA P.H.'s user avatar

It seems that the MySQL process is running, hence you are unable to use the port. You can check the running MySQL process using following command:

ps auxf | grep mysql

If you get any MySQL process, kill that process ID using kill -9 PID and then try to start MySQL.

Peter Mortensen's user avatar

answered Jul 8, 2013 at 20:00

colin2328's user avatar

colin2328colin2328

611 silver badge4 bronze badges

1

Start MySQL in safe mode:

/usr/local/mysql/bin/mysqld_safe start

Or on the Mac, end any mysql or mysqld task (or other) in your Activity Monitor application.

Or check you error by

tail -f /usr/local/mysql/data/XXXXX-XXXXX-Pro.local.err

Peter Mortensen's user avatar

answered Sep 9, 2015 at 3:12

Saurabh Chandra Patel's user avatar

Somehow I screwed up my permissions on Mac OS X v10.11 (El Capitan) and decided to reinstall MySQL from scratch.

I use Homebrew on El Capitan and decided to reinstall:

brew uninstall mysql
sudo rm -rf /usr/local/var/mysql
brew install mysql
mysql.server start # ... SUCCESS

The file permissions on a fresh install changed from _mysql to include my username:

ls -alh /usr/local/var/mysql
drwxr-xr-x   22 lfender  admin   748B Mar 22 09:58 .
# ... etc.

Peter Mortensen's user avatar

answered Mar 22, 2016 at 14:06

lfender6445's user avatar

lfender6445lfender6445

32.2k11 gold badges117 silver badges98 bronze badges

1

In my case, the error happens due to the accessing problem of the error log file.

The following two commands help me address the problem.

sudo chown <user> /usr/local/var/mysql/<my-host-name>.err
sudo chmod 666 /usr/local/var/mysql/<my-host-name>.err

Peter Mortensen's user avatar

answered Jul 6, 2016 at 10:27

FrankSu's user avatar

FrankSuFrankSu

3311 gold badge4 silver badges10 bronze badges

What’s the error log saying? I got this error, and it ended up being an old invalid setting in the my.cnf file, which the MySQL error log indicated. If not a bad configuration setting, the error log should at least point you in the right direction.

Peter Mortensen's user avatar

answered Nov 11, 2011 at 3:36

Brian Ray's user avatar

Brian RayBrian Ray

1,2571 gold badge13 silver badges19 bronze badges

Check if you have space left in your drive. I got this problem when no space left in my drive.

answered Nov 29, 2013 at 11:39

thavan's user avatar

thavanthavan

2,37123 silver badges32 bronze badges

1

I hope this works for you.

After checking the error log, I found this:

120309 17:42:49 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
120309 17:42:50 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
120309 17:42:50 [Warning] You need to use --log-bin to make --binlog-format work.
120309 17:42:50 [Note] Plugin 'FEDERATED' is disabled.
120309 17:42:50 InnoDB: The InnoDB memory heap is disabled
120309 17:42:50 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120309 17:42:50 InnoDB: Compressed tables use zlib 1.2.3
120309 17:42:50 InnoDB: Initializing buffer pool, size = 16.0M
120309 17:42:50 InnoDB: Completed initialization of buffer pool
120309 17:42:50  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /usr/local/mysql/data/ib_logfile0
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
120309 17:42:50 mysqld_safe mysqld from pid file /usr/local/mysql/data/lu1s.local.pid ended

And to solve it, I gave ownership rights to the entire mysql folder:

cd /usr/local
sudo chown mysql mysql
sudo chown mysql mysql-5.5.21-osx10.6-x86_64
sudo chown _mysql mysql
sudo chown _mysql mysql-5.5.21-osx10.6-x86_64

Then (you can do it command-line too), I applied the permissions (once I gave that ownership to _mysql and mysql users) to all enclosed folders from within the «get info» menu of the folder at /usr/local/mysql-5.5.21-osx10.6-x86_64 . You don’t need to tho that to the alias since it’s only an alias.

The name of the folder depends of the installation version of MySQL that you have.

Peter Mortensen's user avatar

answered Mar 10, 2012 at 2:00

lu1s's user avatar

lu1slu1s

5,3603 gold badges22 silver badges37 bronze badges

I had the same problem. Moving my /etc/my.cnf file worked for me. I got the information here.

Peter Mortensen's user avatar

answered Jan 5, 2013 at 13:33

Nealv's user avatar

NealvNealv

6,7968 gold badges56 silver badges87 bronze badges

0

I had the same issue. For me it was doing a brew remove while having a previous install of the mysqld running. It seems Homebrew (brew) does not stop a service before uninstalling.

After checking the .err file I saw the logged error that another copy of MySQL may be running, after terminating the old service. I was then able to restart the new MySQL install.

Peter Mortensen's user avatar

answered Jun 6, 2013 at 11:53

Nudge's user avatar

NudgeNudge

312 bronze badges

2

Simple…

Fix the 2002 MySQL socket error.

Fix the looming 2002 socket error – which is linking where MySQL places the socket and where OS X thinks it should be. MySQL puts it in /tmp and OS X looks for it in /var/mysql. The socket is a type of file that allows MySQL client/server communication.

sudo mkdir /var/mysql
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

Well done :) This helped me a lot!

I took this guide from the guys on http://coolestguidesontheplanet.com/

Peter Mortensen's user avatar

answered Oct 25, 2014 at 18:48

carloslozada's user avatar

Move the log file named “ib_logfile” in “/var/lib/mysql” and restart mysql. Sometimes mysql will fail because it faces difficulty updating the log file

mv /var/lib/mysql/ib_logfile* /some/tmp/folder/

You can also remove ib_logfile as it will be created automatically after mysql restart

now restart mysql server

answered Jan 21, 2015 at 19:57

Zangetsu's user avatar

ZangetsuZangetsu

1,80016 silver badges25 bronze badges

When you try to start MySQL server from the terminal, you may get an error message as shown below:

$ sudo /usr/local/mysql/support-files/mysql.server start
Starting MySQL
.. ERROR! 
The server quit without updating PID file (/usr/local/mysql/data/nts-mac.pid).

This tutorial will try to help you to fix the error above and start your MySQL server successfully.

Before you try to fix the error, please don’t forget to create a backup of your MySQL database before trying any of the suggested solutions below.

I’m not responsible for any loss of data as you try to fix this error.

Fix MySQL server quit without updating PID file by killing any running processes

The PID (process identification) file is used by MySQL server to store the process ID number. When you need to run MySQL related commands, the PID file is needed to execute the command properly.

For example, you use the PID file when you want to stop the MySQL server. This is why when you run the mysql.server stop command when there’s no running MySQL instance, the response would be like this:

$ sudo /usr/local/mysql/support-files/mysql.server stop
ERROR! MySQL server PID file could not be found!

In the MySQL error above, the PID file could not be found because it has been deleted when MySQL server stops running previously.

Some common causes that cause the server to quit without updating the PID file are as follows:

  • You upgraded your MySQL version to the latest version
  • Your MySQL service didn’t stop properly the last time it was running
  • There’s already a running mysqld process that’s using a different PID file name.

In my local MySQL server, the third case happens because I started MySQL server using the MySQL Preference Pane that comes bundled with MySQL server installation file for Mac:

When I started the server using the Preference Pane, MySQL generates a PID file named mysqld.local.pid in the /usr/local/mysql/data/ folder.

When I tried to start the server again using the terminal, MySQL tries to find the nts-mac.pid file, which is generated when MySQL is started from the terminal (nts-mac is the name of my Mac computer)

The PID file name mismatch causes MySQL to respond with “the server quit without updating PID file” above.

To fix the error, I needed to stop the currently running MySQL thread from the Preferences Pane before running the mysql.server start command again.

Now you may not be using MySQL Preferences Pane, but it’s possible that you have a MySQL process running in your computer or Linux server that uses a different PID file name than the one generated by the terminal.

To check if there are running MySQL processes in your computer, you can run the ps -e | grep mysql command from your terminal.

Here’s the output from my computer:

$ ps -e | grep mysql 
24836 ttys001    0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe
24920 ttys001    0:01.04 /usr/local/mysql/bin/mysqld
24946 ttys001    0:00.01 grep mysql

The result tells me that there are running mysqld processes on my computer. If you found the same in your computer, then you need to kill the running process using one by one using the kill -9 <PID> command.

The PID code number is the first number on the left, so in my case, they are 24836 and 24920:

$ kill -9 24836
$ kill -9 24920

With that, there should be no running MySQL process on your computer. You can now try to start the MySQL server again:

$ sudo /usr/local/mysql/support-files/mysql.server start
Starting MySQL
 SUCCESS!

Now the MySQL server should be able to start and run properly.

Fix MySQL server by changing the ownership of MySQL data directory

When you install MySQL server on your computer or server, the data/ directory is generated by the installer to store your data, including the PID file.

The data directory must be owned by _mysql in order for MySQL instance to work properly, so one possible cause of the PID file not updated error is that the data/ directory somehow got owned by a different user.

You can check this by running the ls -la command from the terminal to check the owner of the files in your mysql/ directory:

Here’s the result from my computer:

drwxr-xr-x  13 root    wheel      416 Aug 15 21:34 .
drwxr-xr-x  20 root    wheel      640 Aug 15 21:34 ..
-rw-r--r--   1 root    wheel   276551 Jul  1 14:53 LICENSE
-rw-r--r--   1 root    wheel      666 Jul  1 14:53 README
drwxr-xr-x  35 root    wheel     1120 Aug 15 21:34 bin
drwxr-x---  59 _mysql  _mysql    1888 Sep  4 18:03 data
drwxr-xr-x   5 root    wheel      160 Jul  1 16:42 docs
drwxr-xr-x  16 root    wheel      512 Jul  1 16:42 include
drwxr-x---   3 _mysql  _mysql      96 Sep  4 18:02 keyring
drwxr-xr-x  17 root    wheel      544 Aug 15 21:34 lib
drwxr-xr-x   4 root    wheel      128 Jul  1 16:42 man
drwxr-xr-x  34 root    wheel     1088 Jul  1 16:42 share
drwxr-xr-x   5 root    wheel      160 Jul  1 16:42 support-files

If you have another owner than _mysql for the data/ directory, then you need to run the chown command to change the owner of the directory.

The following command will change the owner of the data/ directory along with all files and subdirectories below it:

sudo chown -R _mysql:_mysql /usr/local/mysql/data

Next, run the ls -la again and you should see the data/ directory owner got changed to _msql in the terminal output.

You can try to run the MySQL server again now.

Fix MySQL server quit by reinstalling the server

If the solutions above fail, then I can only recommend you to try and reinstall MySQL server on your computer.

When installing MySQL server, please use the official installation file provided by mysql.com.

While you may want to install the server from package managers like Homebrew, Chocolatey, or any other Linux package repository, the installation from these third-party providers may cause unnecessary problems like wrong files or folders owner assignments.

If you don’t want to reinstall the server yet, then you may find other suggestions in StackOverflow. I only write what works for me in this tutorial.

And those are my suggestions for fixing the server quit without updating PID file error in MySQL database server. Good luck fixing the error! 👍

Server Quit Without Updating PID File. I am getting this error with my MySQL server. Please fix it asap!

That was a recent HelpDesk request we received in our Server Management Services.

This error occurs when MySQL upgraded to a later version.

Today, let’s check the error and see how our Support Engineers fix this for our customers.

When does MySQL Server Quit Without Updating PID File

Let’s begin by checking the typical scenario at which the error occurs.

This server quit without updating PID file error usually pops up when MySQL fails to start. This occurs after a recent MySQL upgrade or due to insufficient permission and ownership issues in the MySQL data directory.

In such cases, the PID file in the MySQL data directory goes missing and MySQL won’t work without it.

Recently one of our customers contacted us with the error server quit without updating PID file. When he tried to start the MySQL service it returned the error message.

Server Quit Without Updating PID File

How we fix Server Quit Without Updating PID File error in MySQL?

MySQL startup errors are quite common. Let’s see how our Support Engineers fix this error for our customers.

1. Restart the MySQL service to fix Server Quit Without Updating PID File.

To solve this error, we begin by restarting the MySQL service. Usually, it resolves this MySQL error.

To do this, we run this below command from the terminal.

We log into the server via SSH.

Then we run this command on the server terminal.

/etc/init.d/mysqld restart

Or

service mysqld restart

Then we check if the MySQL service is already running on the server

For this, we type the following command to determine if there is MySQL service running already.

ps -aux | grep mysql

If MySQL service is already running, we get the list of MySQL processes with PIDs. And then, we kill those processes.

kill -9 PID

// where PID is the process ID of the MySQL processes and restart the MySQL service again.

2. Remove Your MySQL Config File and start again.

Sometimes the modification of the MySQL configuration file also may cause this error. It can be the problem of using an unsupported variable, or something similar.

So the easiest way is to remove the conf file and restart the MYSQL again. The MySQL conf file is automatically rebuilt after the restart of MYSQL service.

1. First we backup the MySQL configuration file using the below command.

mv /etc/my.cnf /etc/my.cnf.backup

2. Then we restart the MYSQL service again.

And, MySQL starts with the following message:

    Starting MySQL. SUCCESS!

3. Check ownership of /var/lib/mysql/ directory

Often bad permissions of the MySQL directory can also end up in the error. Here, we check the ownership using:

ll -aF /var/lib/mysql/

If we find it’s the owner is root, then we change the ownership to MySQL using the below command.

chown -R mysql /var/lib/mysql/

4. Removing the error files

At times, the fix may also involve removing any .err files in the data folder or create missing .pid.

For this, we use the below command.

rm *.err /usr/local/mysql/data/

5. Check the MySQL error log file

In all scenarios, we check the MySQL log files to get more details about the error.

/var/lib/mysql/your_doamin_name.err

Or

/var/log/mysql/error.log

From these logs, we get pointers to the exact error and we proceed further.

6. Upgrade to latest MySQL version

Finally, when MySQL service is running in safe mode and displays invalid PID error, then we upgrade the service to latest version.

To ensure this, we first edit the /etc/rc.conf and put the following into the file:

mysql_enable="YES"
mysql_args="--skip-grant-tables --skip-networking"

Then we restart MySQL through rc.d:

/usr/local/etc/rc.d/mysql-server start

Starting MySQL.. SUCCESS!

Then we upgrade the MySQL to the latest version using the following command

mysql_upgrade

That completes the various ways by which we fix the MySQL error for our customers.

[Still having trouble in fixing Server Quit Without Updating PID File error in MySQL? We’ll fix it for you.]

Conclusion

In short, Server Quit Without Updating PID File error happens when MySQL fails to start due to insufficient permission and ownership issues in the MySQL data directory. Today, we saw how our Support Engineers sort out the MYSQL error for our customers.

150423 02:24:44 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150423 2:24:44 [Note] /usr/sbin/mysqld (mysqld 5.5.43) starting as process 3115 …
150423 2:24:44 [Note] Plugin ‘FEDERATED’ is disabled.
150423 2:24:44 InnoDB: The InnoDB memory heap is disabled
150423 2:24:44 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150423 2:24:44 InnoDB: Compressed tables use zlib 1.2.3
150423 2:24:44 InnoDB: Using Linux native AIO
150423 2:24:44 InnoDB: Initializing buffer pool, size = 128.0M
150423 2:24:44 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file ./ibdata1
150423 2:24:44 InnoDB: Could not open or create data files.
150423 2:24:44 InnoDB: If you tried to add new data files, and it failed here,
150423 2:24:44 InnoDB: you should now edit innodb_data_file_path in my.cnf back
150423 2:24:44 InnoDB: to what it was, and remove the new ibdata files InnoDB created
150423 2:24:44 InnoDB: in this failed attempt. InnoDB only wrote those files full of
150423 2:24:44 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
150423 2:24:44 InnoDB: remove old data files which contain your precious data!
150423 2:24:44 [ERROR] Plugin ‘InnoDB’ init function returned error.
150423 2:24:44 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
150423 2:24:44 [ERROR] Unknown/unsupported storage engine: InnoDB
150423 2:24:44 [ERROR] Aborting

150423 2:24:44 [Note] /usr/sbin/mysqld: Shutdown complete

150423 02:24:44 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.gigabox.tw.pid ended
150423 02:25:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150423 2:25:01 [Note] /usr/sbin/mysqld (mysqld 5.5.43) starting as process 3279 …
150423 2:25:01 [Note] Plugin ‘FEDERATED’ is disabled.
150423 2:25:01 InnoDB: The InnoDB memory heap is disabled
150423 2:25:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150423 2:25:01 InnoDB: Compressed tables use zlib 1.2.3
150423 2:25:01 InnoDB: Using Linux native AIO
150423 2:25:01 InnoDB: Initializing buffer pool, size = 128.0M
150423 2:25:01 InnoDB: Completed initialization of buffer pool
InnoDB: Error: space header page consists of zero bytes in data file ./ibdata1
150423 2:25:01 InnoDB: Could not open or create data files.
150423 2:25:01 InnoDB: If you tried to add new data files, and it failed here,
150423 2:25:01 InnoDB: you should now edit innodb_data_file_path in my.cnf back
150423 2:25:01 InnoDB: to what it was, and remove the new ibdata files InnoDB created
150423 2:25:01 InnoDB: in this failed attempt. InnoDB only wrote those files full of
150423 2:25:01 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
150423 2:25:01 InnoDB: remove old data files which contain your precious data!
150423 2:25:01 [ERROR] Plugin ‘InnoDB’ init function returned error.
150423 2:25:01 [ERROR] Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed.
150423 2:25:01 [ERROR] Unknown/unsupported storage engine: InnoDB
150423 2:25:01 [ERROR] Aborting

150423 2:25:01 [Note] /usr/sbin/mysqld: Shutdown complete

150423 02:25:01 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.gigabox.tw.pid ended
150423 02:25:07 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150423 2:25:07 [Note] /usr/sbin/mysqld (mysqld 5.5.43) starting as process 3425 …
150423 2:25:07 [Note] Plugin ‘FEDERATED’ is disabled.
150423 2:25:07 InnoDB: The InnoDB memory heap is disabled
150423 2:25:07 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150423 2:25:07 InnoDB: Compressed tables use zlib 1.2.3

  • Показать ответ
  • Ссылка

Понравилась статья? Поделить с друзьями:
  • Starting mysql error manager of pid file quit without updating file
  • Start error mercedes a170
  • Stark pro12 ошибки
  • Stardew valley как изменить внешность персонажа
  • Stardew valley smapi error