osx - Mysql 5.6 is not working in Mac OS -
mysql 5.6 creating problem in mac osx.
its disconnecting server.
and throwing errors /tmp/mysql.sock
doesn't exist
the same mysql 5.6.14 installed via dmg: $ mysql error 2013 (hy000): lost connection mysql server @ 'sending authentication information', system error: 32
and authentication packet lost
errors.
i have kill process id every time , had run mysql -u root -p
on again.
but same thing happens again , again.
don't worry if none of online answers in website doesn't work. try this, worked me , team mates charm.
1). install atom in mac.
2). run sudo atom /library/launchdaemons/com.oracle.oss.mysql.mysqld.plist
you might see code
<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>disabled</key> <false/> <key>exittimeout</key> <integer>600</integer> <key>groupname</key> <string>_mysql</string> <key>keepalive</key> <true/> <key>label</key> <string>com.oracle.oss.mysql.mysqld</string> <key>launchonlyonce</key> <false/> <key>processtype</key> <string>interactive</string> <key>program</key> <string>/usr/local/mysql/bin/mysqld</string> <key>programarguments</key> <array> <string>/usr/local/mysql/bin/mysqld</string> <string>--user=_mysql</string> <string>--basedir=/usr/local/mysql</string> <string>--datadir=/usr/local/mysql/data</string> <string>--plugin-dir=/usr/local/mysql/lib/plugin</string> <string>--log-error=/usr/local/mysql/data/mysqld.local.err</string> <string>--pid-file=/usr/local/mysql/data/mysqld.local.pid</string> </array> <key>runatload</key> <true/> <key>sessioncreate</key> <true/> <key>username</key> <string>_mysql</string> <key>workingdirectory</key> <string>/usr/local/mysql</string> </dict> </plist>
then add these 2 lines above </array>
<string>--port=3306</string> <string>--innodb_file_per_table=0</string>
then restart mysql server. that's it.
Comments
Post a Comment