How to fix Brew install mysql on Mac - mysql

I tried to install MySql by using HomeBrew on my mac. (for hive usage)
I tried:brew install mysql, but it gave me error and warnings as:
Error: You must `brew link pkg-config' before mysql can be installed
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
How should I fix this ? Thanks!

Related

I wonder where mariadb is installed in centOS

I searched for the location of mariadb installation through googling, but I couldn't find it because it only showed how to install or set it up. I wonder where mariadb is installed in centOS. I'd appreciate it if you could tell me.
If you execute this command you will get list of all files in the package:
rpm -ql mariaddb....

need help Installing mysql server v5.6

Installing my SQL for the first time, MySQL server seems to be missing in recommended windows installer. any download i try activates the default installer and it does not show mysql server.
if i try to add server dosen't show up.
Now i have downloaded server 5.6 manually but do not have any way to install them.
i tried to install by steps in this website https://www.sitepoint.com/how-to-install-mysql/
but mysqld didn't run properly. it had following error
Seems none of 8.0 is compatible with previous versions(x86). I had to install server version 5.7 manually(offline installer) with 6.2 workbench for mysql to run on 32bit pc.
i had to uninstall all cleanly or else the default installer would not provide with new packages that i downloaded.
https://downloads.mysql.com/archives/ - all files are here

sql.h not found in Linux

I'm trying to migrate a PostgreSQL db to MySQL using Workbench and I need the PostgreSQL drivers to make the connection.
I'm following this post for installing the drivers and I'm having some issues while runing the make command:
./psqlodbc.h:41:10: fatal error: 'sql.h' file not found
I've read here that I need to install unixodbc-dev but then I have to uninstall libiodbc2-dev which then make reports missing iodbcinst.h file!
Is there a package where both headers are present? How can I install sql.h manually in the system?
BTW: I'm using Linux Mint.

How to uninstall MySQL 5.7 installed through MacPorts?

Using this MacPorts guide, I installed MySQL 5.7 on my Mac.
I want to uninstall it now but I can't find any documentation specific to removing just the MySQL server I installed through MacPorts.
I found this guide and others similar to it on how to completely remove MySQL on a Mac, and followed every single step listed.
However, when I issue the command, sudo port load mysql57-server, I can still load the MySQL server.
So how can I completely remove MySQL 5.7 installed through MacPorts?
Turns out, it's really simple - sudo port uninstall mysql57-server.
That removed MySQL 5.7 installed through MacPorts.

How do I update MySQL installed with Homebrew on a Mac

I've installed MySQL on a Mac via brew.
I do constant brew updates but MySQL keeps telling me it has a new version.
Does brew update not update MySQL?
If so then how should I do it? Manually?
No, brew update only updates Homebrew itself including retrieving the latest list of formulas/packages available.
Once you have ran brew update you can then upgrade all formulas/packages using:
brew upgrade
To upgrade a particular package you can use the brew upgrade command like:
brew upgrade mysql
Before running an upgrade you may want to know what can be or is going to be upgraded using the command:
brew outdated
NOTE always remember to read the post install/upgrade notes that are output. Some packages require manual steps post install/upgrade like major database version upgrades often require data upgrade/migration procedures to be run.