MySQL Workbench on Mac - Operation Failed for Server Adminstration - mysql

I am using "Configure Local Management" in MySQL Workbench for Mac for a MAMP server, and while my connection works, for some reason, I am getting the following error
It says Operation failed: /usr/local/mysql/support-files/mysql.server start is invalid
While the mysql there does not exist, however, when I type in mysql --version in Terminal, it says I have 5.6.13 installed.
What could possible be the issue here?

I'd say the MAMP installation doesn't use the standard way of installing a MySQL server. Better use the package from the MySQL homepage instead. It will also install the standard scripts for controlling the server. In your case find out where the MAMP installer writes the mysql.server script and use this path instead in the setup of your connection.
Btw: you can ignore this error if you never want to start/stop your server from within MySQL Workbench. The command is not mandatory.

Related

Object reference not set to an instance of an object on mySQL Installer while configuring mySQL Server 8.0.25

I recently deleted mySQL and now when i am trying to reinstall it is giving me an error while configuring the mySQL Server
i have tried deleting everything from program file and registry also still no success
enter image description here
I found the issue.
When you install with the Installer 1.4, it won't work.
You should be good if you use V.1.6 of the installer.
https://dev.mysql.com/downloads/installer/

Installing mySQL on Windows

Downloaded and run the installer from https://dev.mysql.com/downloads/installer/
After installing it opened MySQL Workbench but I can't connect to localhost (I notice that the installer didn't ask for a root password), and I can't see a MySQL service in services.msc.
Is there something that I need to do -- in addition to running the installer -- to get it to work? (And is this documented?)
Run the installer for a second time and choose Reconfigure.

mysql_upgrade and MySQL service - Vicious Circle

I am upgrading MySQL server 5.067 to 5.5.60 on Windows 10.
I stopped the service, replaced bin a shared directory and started the service.
Service start failed with the message (in Event Viewer):
Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
For more information, see Help and Support Center at http://www.mysql.com.
OK, so I opened cmd as admin with the command:
mysql_upgrade --port 64202
With result:
Looking for 'mysql.exe' as: C:\Program Files (x86)\XXX\MySQLServer\bin\mysql.exe
Looking for 'mysqlcheck.exe' as: C:\Program Files (x86)\XXX\MySQLServer\bin\mysqlcheck.exe
Error: Failed while fetching Server version! Could be due to unauthorized access.
FATAL ERROR: Upgrade failed
The design of MySQL upgrade is connecting over TCP to MySQL to run the upgrade, but how it can possibly work if the service is not running? It is a vicious circle - MySQL service needs to be upgraded to be able to start and mysql_upgrade needs to connect to running service.
What is wrong?
Skipping major versions (5.1) is not supported, and may or may not work. The appropriate upgrade is one of:
Plan A: Upgrade to 5.1, then to 5.5. Run mysql_upgrade at each step.
Plan B: Dump the data from 5.0 with mysqldump. (Be sure to get routines, etc). Blow away (or bypass) 5.0 and install a fresh 5.5. Load the data back in. There may be syntax errors in the dump file, edit the file if needed.
Since you're upgrading from 5.0 to 5.5, there are configuration values which are deprecated, causing the engine to be unable to start.
Most likely culprit is skip-dbd, as explained on this site.
So: find your MySQL configuration file, comment out the skip-dbd option and restart the MySQL service. Then you can run mysql_upgrade with the appropriate options including authentication.

Connect xampp localhost from Mariadb to MySQL database

I downloaded the ff: Mysql Workbench, Mysql Community Server and Xampp (latest).
I found out that recent xampp version is no longer using MySQL as database server instead it uses MariaDB. Apparently, MySQL workbench is not compatible with MariaDB.
There was a suggestion in previous forum to turnoff MariaDB and turn on MySQL Server on and it will automatically connect to xampp localhost. Which it did not, rather it shows an error message
Please advise what files needs to be configured to connect my xampp localhost and my manage server control user to mysql database server in OS X (macbook pro).
I just got an answer from XAMPP developers that they build and test the XAMPP installers with bundled components and try to configure it to use external services will be error prone.

Cannot run XAMPP MySQL module with a MySQL server already installed?

I need to use both the XAMPP MySQL module and a seperate MySQL server for personal reasons. I run Windows 7 64-bit and I use MySQL 5.7.16 and XAMPP v5.6.24.
I have tried changing the port that the XAMPP MySQL module uses in the XAMPP control panel configurations, in the my.ini file, in the php.ini file, and in the config.inc.php file. When I click "Start" for the MySQL module in the XAMPP control panel, I get a message that says "[mysql] Attempting to start MySQL service..." but it never gets beyond that. It doesn't even give me an error message.
For now, I have to uninstall the MySQL server and wipe it completely from my computer every time I want to use the XAMPP module. This is proving to be a pretty daunting task, though. Any suggestions would be appreciated.