Installing mySQL on Windows - mysql

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.

Related

Workbench doesn't connect to mySQL server (MacOS)

I'm trying to start workbench 8.0.32 from macOS ventura and the result is that it connects to the localhost but never starts.
I have tried to use the brew version of mySQL, the .dmg version and I get no results with either one.
I try to connect with root user and password configured from terminal.
On Sequel Ace I can access without problem, also from VScode, but not from workbench and I need it to study.
screenshot workbench problem
As seen in the image, the connection is made correctly, but it stays connecting forever and never opens the manager, I have tried to configure the connection in several different ways and I have not obtained any results, I have also tried to install different versions of mySQl and from Workbench and nothing. I currently use brew mySQL version 8.0.32 , but I could change to whatever is needed.

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

Installing MySQL and checking root password fails?

I recently uninstalled and reinstalled MySQL (on Windows 7) using the installer. When I try to set up the MySQL Server, it won't let me continue unless I enter the "current" root password??? I don't understand how there can be a current root password if I completely uninstalled and reinstalled the program.
I've tried with a blank password as well as every password I can possibly think of that I would have used and nothing works. Google is completely unhelpful as every result I've found either refers to a "homebrew" installation, whatever that is, or refers to installations on Linux. Is there some folder of config files that the uninstallation refuses to delete that I need to remove manually? Or am I missing something else?
After uninstallation process, please check following directories if it exists and remove:
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users[User-Name]\AppData\Roaming\MySQL
PS: Please keep in mind that If you have multiple MySql Instances installed on your workstation, you need to go into each directory and delete only the relevant instance.
I too faced the same issue but the following worked for me:
Go to Control Panel >> Programs >> Programs and Features, select MySQL Server and click Uninstall.
Also uninstall the MySQL workbench, MySQL Installer Community, MySQL Router.
Then delete the files:
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users\[User-Name]\AppData\Roaming\MySQL
Finally restart your system and install MySQL again.
In a fresh development machine, after installing MySQl 8.0.18 in Windows 10 64 bit, I hit this error and could not connect to MySql.
Nothing else worked.
Then I uninstalled the Mysql and deleted C:\Program Files\MySQL and retried installing MySql 8.0.18 and while re-installing it asked to specify root user password.
After specifying the root password, I was able to connect.
I was also facing the same problem, i tried the same process and this works for me too. Also i uninstalled my MySQL installer, MySQL shell, MySQL workbench, MySQL server and all connectors and routers from my Control Panel>>Uninstall a program and after deleting everything. I tried this solution install MySQL again from the oracle website and everything worked fine.
when I was facing the same issue, I used "password" for root password, which is default for MySql.

During Install I can not create users, and other issues with install

Good Morning Stack Exchange!
Trying to get mysql installed on my personal computer and I've run into a few issues.
I can not create a user during install, If I try to add a user during install it fails on the create users step. So I figure I will just add the users after install via sql workbench, which brings me to number 2.
After installing mysql server, attempting to connect to the server with mysql workbench just asks me for the password endlessly until it locks me out. I know the password I'm using is correct because when I modify the mysql server instance via the installer it asks for the current root password, adn the password works there.
After install, if I stop the mysql service from running mysql workbench loads without issue.
Mysql installer can not stop the mysql service, to modify an install I have to manually stop the service.
The common thread to all of these issues is the windows service for mysql.
Troubleshooting steps
verified port 3306 was open in the firewall
disable firewall entirely
Turned off anti-virus
uninstalled anti-virus
Multiple restarts of both the service and computer
Uninstalled all my sql components and reinstalled (multiple times)
changed the root password via command shell (via This MySQL guide for recovering the root password)
Downloaded the installer again in case there was a corruption of my original file.
So I'm pretty stumped, I've been at this for two days and I don't feel any closer to a solution.
Configuration info:
windows 10 (intel core i-5, 16 gigs of ram, 96 gigs of open space on SSD)
MYSql Installer version 8.0.13.0
The first thing I would check is the logs.
However, given the info you provided it sounds like default settings are there but no root#localhost user password or root#127.0.0.1.
Check the my.ini existence for details and logs.
You may have to follow this to create the config file if it doesn’t exist - follow the link below.
https://dba.stackexchange.com/questions/21835/mysql-workbench-asking-for-password
Error log location in windows:
The error log is located in the data directory specified in your my.ini file. The default data directory location is C:\Program Files\MySQL\MySQL Server......

What is forcing my system to look for MySQL in "/opt/local/var/run/mysqld/mysqld.sock"

I have been trying to get a ruby on rails app going on my machine for a little while now for a project I need to work on for work. The issue is, my system must be setting the default location of MySQL somewhere because every time I start the rails webserver (webrick) and run localhost:3000, I get the following error.
"Can't connect to local MySQL server through socket '/opt/local/var/run/mysqld/mysqld.sock' (2)"
I have deleted the installed version of mysql and removed all folders. I reinstalled mysql using BREW. I now have a running mysql instance. The output of "which mysql" prints "/usr/local/bin/mysql" which is actually a sim link to "/usr/local/Cellar/mysql/5.5.14/bin/mysql".
Does anyone know what might be forcing my rails apps to look for mysql in "/opt/local/var/run/mysqld/mysqld.sock"
NOTE: I deleted my current my.cnf because it was messing up the brew version of mysql I currently have running, so I know that is has nothing to do with that.
/opt/local is the default location for MacPorts-installed packages. Chances are you installed rails and or MySQL via MacPorts. Try:
sudo /opt/local/bin/port installed
to see what is installed.