How do I install Mysql with Macports - mysql

I am trying to connect a QT app to an SQL database, however keep getting an error with the qmysql driver not loading. Having spent a week now trying all possible solutions, the final solution was to try and install mysql using macports.
I am using a mac with OS Catalina.
I have installed MacPorts using the recommended pkg file.
I have confirmed installation using 'port version' with the following response 'Version: 2.6.2'
As per the instructions on the macports website I try to install using the following command:
$ sudo port install mysql8-server
I get the following error:
Error: Port mysql8-server not found
I have tried other ports listed on the macports website for mysql and all return the same error. Would greatly appreciate if anyone can point out where I might be going wrong and how to fix this issue.
Thanks in advance

For anyone who experiences this problem, following installation run a self update and refresh all of the ports. For some reason on a new install the ports are not updated.

Related

Error when install MySQL 5.5 on Windows 7

When i install Mysql installer community 5.5.62.0, I Got message:
"Internal Error. (Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for mor information.) The installer will now close"
I try to install another version like 5.7.25.0 and 5.7.27.0 but it's not working too.
How i can fix it?
I Got this solution, the solution is move your installer from local disk c. just it. :D

MySql 8.0.15 install failure Invalid Server Template

This is my first MySql install from the ground up.
I am using Windows Server 2016, trying to install MySql 8.0.15. I am doing this to try and use it with php 7.3.1.
The install has all the listed prerequisites.
When I get the config section of mysql insstaller, it breaks on the first response with an error of "Beginning configuration step: Writing configuration file
Invalid server template
Ended configuration step: Writing configuration file"
The system event log has one error, "The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{8D8F4F83-3594-4F07-8369-FC3C3CAE4919}
and APPID
{F72671A9-012C-4725-9D2F-2A4D32D65169}
to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool."
But I'm not sure this is even the right troubleshooting path to start down.
Can you assist with some guidance?
I had the same problem with the
mysql-installer-web-community.
The mysql-installer-community was working without a problem.
The bottom link is the none web installer which was working.
For me initially when I was not accepting the initial update mysql pop-up then installer was not working, but once I accepted it. Then it successfully worked for me.
I have been able to install after getting the same error.
I have changed the credentials for the sql root.
By default, host is set to something like %ALL_HOST%. I changed to localhost.
I ended up uninstalling all mysql 8 components that had already installed.
Then went back and got the mysql installer 5.7.25.0. I think I had some trouble after that, but it wasn't the same error. I finally ended up installing mysql 8.0.15 by itself and it worked. Then I went back and did the connectors. Next the workbench. Finally docs and samples. Doing them one at a time seemed to go better. I am now up and running.
Here's what I did to fix the issue
completely removed mySQL Server and Workbench installations.
uninstalled the mySQL web installer. Restarted my computer.
ran the mySQL web installer again (only installing mySQL Server)
downloaded the mySQL Workbench installer to install Workbench separately

Error loading MySQLdb module: /usr/lib64/libperconaserverclient.so.18: version `libperconaserverclient_16' not found

I'm suddenly getting the following error on my hosted Django website:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: /usr/lib64/libperconaserverclient.so.18: version `libperconaserverclient_16' not found (required by /home1/reconess/python/lib/python2.7/site-packages/_mysql.so)
The site was working fine last week, then this week (with no changes made by us), we're getting that error. I'm thinking it might be a change to the MySQL setup done by the host (perhaps some update to Percona?), but given that I have very little idea of what Percona is, let alone how Django, MySQL, and Percona interact I'm having some problems figuring out what's gone wrong and how to fix it.
The file /usr/lib64/libperconaserverclient.so.18 definitely exists.
Thanks for any help.
Same thing happened to me today on a shared server with BlueHost. The following command did the trick.
pip3.5 install --upgrade mysqlclient
I just looked at your full error message and noticed you are running python2.7, so your call to pip might be slightly different.

Chef server error on create user (/etc/opscode/pivotal.rb does not exist)

I am extremely new to chef and I am attempting to create a chef server running on a Digital Ocean Ubuntu 14.04 droplet. I am using this guide for the install. I download the .deb and installed it fine. I then run chef-server-ctl reconfigure which runs without an issue. When I go to create my user I enter in all the details and run it, it then waits a few seconds and returns the error ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
I have scoured the internet to try and find a fix but haven't been able to find a thing. I have also tried doing these exact steps on a VPS running Ubuntu 12.04.5 and getting identical results.
For /etc/opscode/pivotal.pem is missing error use following command.
cp /opt/opscode/embedded/service/omnibus-ctl/spec/fixtures/pivotal.pem /etc/opscode/
Ran into the same thing when trying to install chef in an VM.
Expanding the memory (from 512Mb to 1512Mb) and reran reconfigure solved it for me.
Same problem here. An older version, for example 12.03 of chef-server works for me with Ubuntu 14.04
I got this error because my /etc/opscode/chef-server.rb had a syntax error.
The syntax error was displayed earlier in the logs, however my install script has kept going, causing later on this error.
More than likely, you have forgotten to run chef-server-ctl reconfigure. It's ambiguous naming of the command as it's reconfigure, however the installation guide for Chef Server actually states to run it after installing the package.
Why it's not part of the installation process is beyond me.
I had this problem as well. I exited my ssh session to the node I was configuring. I connected again and ran chef-server-ctl reconfigure again. I was able to then create a user without the error. I was using chef-server-core_12.1.0-1_amd64.deb for my install.
I got the same error with Ubuntu trusty 14.04 64 bit
/etc/opscode/pivotal.rb does not exist. I followed what Matthias Said and destroyed my VM ( I'm using Vagrant), then I quickly set up the VM and installed Chef server 12.03. I can now set up users correctly.
Just an FYI I also tried to install the latest version of chef which is 12.2.0 and do this but I also ran into the same error when trying to provision a user account.
Downgrading to 12.03 solved it for me.
I run in the same issue on CentOS 7 and Chef Infra Server 12.19.31; the following steps helped me to get the root cause of the problem.
Re-run the chef-server-ctl reconfigure and check if it gives any error at the end of the run
In my case, I received the error
Chef Client failed. 0 resources updated in 02 minutes 19 seconds
Check the stack trace / output log on
/var/opt/opscode/local-mode-cache/chef-stacktrace.out
I received
Errno::ENOMEM: Cannot allocate memory - ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"
To solve the problem, I upgraded the system with higher memory.
TL;DR;
Rerun the chef-server-ctl reconfigure to get the error
Upgrade the allocated memory to solve the issue
Me too got this error while installing chef infra server pkg in centos 8.
"ERROR: CONFIGURATION ERROR: Specified config file /etc/opscode/pivotal.rb does not exist"
Post Memory up-gradation I re-run below cmd its fixed issue:
sudo chef-server-ctl reconfigure

Unable to get unixODBC working on Mac

I am trying to connect to Microsoft MySQL server from a Mac.Debugging it step by step (I basically follow this post)I see that freeTDS works fine.But isql shows an error -
[S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source
[01000][unixODBC][FreeTDS][SQL Server]Unknown host machine name.
[ISQL]ERROR: Could not SQLConnect
I installed freetds using Macports with
sudo port install freetds +mssql +odbc +universal
and created my own odbc.ini and odbcinst.ini files under /opt/local/etc (contents are same as what is shown in the above mentioned link )
I also checked this and this (Not sure how un-install can help when I installed freetds with +odbc).Any suggestions?
If anyone bumps into this I figured out the solution-
Turns out the configuration name provided under freeTDS.conf had to precisely match the one in odbc.ini.