How to solve MySQL installation on Mac - mysql

[
I am having an error with installing MySQL. It keeps running I am unable to go to the next step.
I deleted it several times and re-installed it and still I keep getting the same issue. Please help.

Related

First time using phpMyAdmin but getting multiple error messages about invalid connection and don't know where to start

screenshot
I am unable to connect to phpMyAdmin. This is my first time using it. These are all the errors I am getting, but I don't understand what any of them mean.
I installed XAMPP, ran Apache and MySQL, selected Admin, but then I get these errors in the screenshot attached.
I am completely new to this. I've been trying to follow a beginner guided project for MySQL on Udemy and the instructor is using phpMyAdmin. But, I couldn't find any instructions on how to install it and so I tried googling it and figuring it out myself. I looked at similar problems posted on here, but I honestly don't know where to start. Any suggestions? Or at least where to start?
I tried going into Config to check host, username, and password, but I am not sure what to look for and how to repair the problem.
I had MySQL Installer - Community and installed MySQL Workbench, MySQL Connector and MySQL Server prior to installing and using XAMPP. I was wondering if that was the problem so I uninstalled all of them, but I got the same errors anyways.

Unable to recover MySQL Database

So I was trying to get my web server setup on my pi by installing mariaDB and phpmyadmin. While doing so, I was going through and dropping tables, and found mysql. I accidently dropped it and lot 21 important files, and I can't seem to figure out how to recover this loss. Due to this, I'm unable to create any new users thanks to an error I created - 1064. Which puts me in a stall.
I've exhausted everything from uninstall to reinstall and nothing seems to give. Googling the issue hasn't been much of a resolve too.

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.

homebrew: MySQL not starting, Can't update PID file

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.

trouble installing mysql

Trying to follow this tutorial, but my installation of mysql is failing.
After getting to the last line(launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist), I get the following error:
launchctl:
CFURLWriteDataAndPropertiesToResource
(/var/db/launchd.db/com.apple.launchd.peruser.501/overrides.plist) failed: -10
It is worth noting that I originally had an error for the second to last line:
cp /usr/local/Cellar/mysql/5.5.15/com.mysql.mysqld.plist ~/Library/LaunchAgents/
but I noticed I did not have a /5.5.15/ folder, instead I had a /5.5.14/, which I used instead.
Also, I am only following the mySql part of the tutorial, the rest I had already done.
Incase it is relevant, I have used MAMP on this machine, but have shut it down and restarted to no avail.
That error seems to indicate a permissions problem. Your homebrew installation might be a bit messed up. I'd try uninstalling mysql via homebrew via "brew uninstall mysql" and then removing homebrew entirely and reinstalling. You could also try running this script to fix the permissions. If that doesn't work, I'd uninstall and reinstall.