Unable to start MySQL server on MacOS - mysql

I am following a video tutorial on Udemy about setting up and running MySQL server. The image below illustrates my current directory and the error I am getting.
Error message
Additional Details:
1) Operating System: OS X 10.11.6 El Capitan
2) I have only one installation of MySQL.
3) I executed "export DYLD_LIBRARY_PATH=..." already
4) I tried changing ownership of the mysql folder to both mysql and root, but neither measure worked out.

Thanks to everyone who gave suggestions. I found other people struggling with the same issue who also are using a OSX 10.11 - loaded laptop.
There is a forum post about it here:
https://forums.mysql.com/read.php?11,646207,646207#msg-646207
I ended up installing an older version of MySQL via homebrew:
brew install mysql#5.6
and it worked out fine.

Related

MacOS: Unable to run MySQL Workbench

I have been trying to run MySQL workbench on my macOS Catalina 10.15.2 for a long time now. I have been using MySQL from the CLI. But recently when I tried to switch to the workbench, there has been some issue with the launching of the Workbench Application.
MySQL server works well from the CLI. But whenever I try to open the workbench, it opens and closes automatically within seconds. I have tried installing the older version of the workbench and also tried reinstalling the whole SQL server. None of it has helped me so far. I even tried searching the issue, but most issues are related to the crashing of the application or failure of connection with the database.
I have even tried running the application from the command line and also "open in low resolution". But none it has worked for me :/
It'd be very helpful if someone could help me out.
Thanks!
MySQL server: 8.0.19,
MySQL Workbench: 8.0.19
Downloading the 8.0.22 version from https://downloads.mysql.com/archives/workbench/ worked for me, (Im using macOs Big Sur version 11.1)
I was having a similar problem (the workbench not launching) until I clicked on the link to the version 8.0.22 of the mySQL workbench posted by Hando and it works. I use MacOS Catalina. This is the link again https://downloads.mysql.com/archives/workbench/
yes, version .22 worked for me as well. I did get a 'security' error but was able to go into preferences security/privacy, and 'allow' this app which was NOT loaded from the apple app store.
I am using macOS Catalina 10.15.7 and I fixed this issue by downloading MySQL Workbench 8.0.17 and it worked! :)
https://downloads.mysql.com/archives/get/p/8/file/mysql-workbench-community-8.0.17-macos-x86_64.dmg

Unable to start mysql 5.6 on Mac

I installed mysql 5.6 using homebrew but haven't been able to start it/login using Sequel pro.
When I run mysql.server start in the terminal I am getting this error -
ERROR! The server quit without updating PID file
I had installed mysql 8 first,but uninstalled it since I needed 5.6
My prefPane was showing an instance of mysql 8 but not showing any instance now.
The activity monitor isnt showing mysqld so doesn't look like mysql is running.
My OS is High Sierra
I ran into a similar problem on Mojave and the error was around "unknown variable 'mysqlx-bind-address=127.0.0.1'" when I attempted to get 5.6 running using Homebrew. I couldn't figure out how to sort this out so eventually switched to the official Mysql docs and installed version 5.7 using the dmg version and that worked like a charm. (since 5.6 wasn't available for macOS at the time of writing)

Maintaining multiple installations of MySQL

I have two installs of MySQL: one is a custom installation of MariaDB, and the other came prepackaged with XAMPP. Ideally I'd like to keep both and run either at separate times (I have no reason to run them together - thus port conflicting shouldn't be an issue).
When I run my MariaDB install, it runs fine. When I try running XAMPP install, it warns me "MySQL Service detected with wrong path," and doesn't get past "Attempting to start MySQL service..." when I try to run MySQL.
It also says "Found Path:" detecting the path to my MariaDB install, and "Expected Path:" indicating the location of the install prepackaged with XAMPP. What I don't understand is how it's even finding my MariaDB install.
I'm guessing it's something simple - any help is appreciated!
Details:
Windows 10
MariaDB 10.2.11
XAMPP v3.2.2
EDIT:
A similar question is answered here. However, my issue is not that the ports are conflicting, since my MariaDB install is not running. Notwithstanding, I've tried the solutions provided there, and still to no avail.

Local wordpress issues: Mac MAMP

I'm having some issues with my local environment. I had setup a wordpress site locally on my Mac through MAMP. All was working well until my computer powered down (not plugged into power source). Now there appears to be issues with the database. When i run MAMP and try to connect I get the error "Error establishing Database Connection". Also when i go through the MAMP portal at localhost and click on Tools > PHPMyAdmin I get the following error:
MySQL said: Documentation
#2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).
mysqli_real_connect(): (HY000/2002): No such file or directory
Obviously something has gone very wrong with the database connection but do not know how to resolve. I have tried to run some scripts in terminal to stop mysql process to no avail so far.
Any advise appreciated. I have looked at some similar but not exact other posts and does not seem to resolve.
Note: The ports changed at some point in the process, but everything else seems fine related to the new port setup but this may be relevant
thanks
While, I'm not sure of the cause. FINALLY found a solution to this very frustrating issue.
What ended up working for me is to uninstall the new version 4.2.1
I did this through first going to the MAMP PRO folder and using the MAMP Pro uninstaller and then moving the Mamp and Mamp pro folder to the trash.
I then went and found the old version to install
https://www.mamp.info/en/downloads/older-versions/
When I downloaded 3.5.2 whatever issues it was having with local databases were resolved. Go figure! Glad to finally have resolved not sure why this would happen other than perhaps a bug in the new version.
Thanks to those who pointed out some possible things to look at
I'm running MAMP 4.0.6 and getting the same error on local wordpress installations, and same error message as described when trying to go to phpmyadmin on MAMP.
The reason seemed to be that the mysql server does not start. The solution that worked for me is offered in this reply in another thread:
https://stackoverflow.com/a/45582509/4623519
Quit MAMP. In the finder go to Applications/MAMP/db/mysql/. Delete the last log file (look for a file named ib_logfileN – being N the log number Eg-ib_logfile0 and ib_logfile1) Nice screenshot provided in link above.
This seems to be happening often according to this post from 2013.

Fail to run MySQL in Mac OSX 10.5.8

my mac is a powerPC. and I have tried both 64 bit and 32 bit version of MySQL.
Both return me "bad CPU type in executable" when I try to do this /usr/local/mysql/bin/mysql
I followed all the steps as specified in the mysql official website.
Well.. I have put my question in superuser.com but that site just too few people .
MySQL dropped support for PowerPC in version 5.1.40
The last version 5.1.40 can be found here
Try to install mysql via brew
Link