MySQL8.4 Server requires the Microsoft Visual C++ 2019 Redistributable Package to run on Windows platforms. Users should make sure the package has been installed on the system before installing the server. The package is available at the Microsoft Download Center. Additionally, MySQL debug binaries require Visual Studio 2019.
Download the MSI from and execute it. This installs the MySQL server, an associated MySQL Configurator application, and it adds related MySQL items to the Microsoft Windows Start menu under the MySQL group.
MySQL is now installed. If you used MySQL Configurator to configure MySQL as a Windows service, then Windows automatically starts the MySQL server every time you restart the system. Also, the MSI installs the MySQL Configurator application on the local host, which you can use later to reconfigure MySQL server. It and other MySQL start up menu items were added by the MSI.
For MySQL 8.4 on Windows, the default installation directory is C:\Program Files\MySQL\MySQL Server 8.4 for installations using the MSI, although the MSI Custom setup type allows using a different location. If you use the ZIP archive method to install MySQL, install it there are elsewhere, such as C:\mysql. Regardless, the layout of the subdirectories remains the same.
Generally, you should install MySQL on Windows using an account that has administrator rights. Otherwise, you may encounter problems with certain operations such as editing the PATH environment variable or accessing the Service Control Manager. When installed, MySQL does not need to be executed using a user with Administrator privileges.
To connect to the MySQL server using ODBC, you must have a Connector/ODBC driver. For more information, including installation and configuration instructions, see MySQL Connector/ODBC Developer Guide.
To use MySQL server with .NET applications, you must have the Connector/NET driver. For more information, including installation and configuration instructions, see MySQL Connector/NET Developer Guide.
Virus-scanning software such as Norton/Symantec Anti-Virus on directories containing MySQL data and temporary tables can cause issues, both in terms of the performance of MySQL and the virus-scanning software misidentifying the contents of the files as containing spam. This is due to the fingerprinting mechanism used by the virus-scanning software, and the way in which MySQL rapidly updates different files, which may be identified as a potential security risk.
After installing MySQL Server, it is recommended that you disable virus scanning on the main directory (datadir) used to store your MySQL table data. There is usually a system built into the virus-scanning software to enable specific directories to be ignored.
I've installed a MySQL server onto my computer and when I first installed it, it ran automatically. Now I've restarted my computer it is no longer running. What file do I need to run to get it back up and running again?
Make sure the mysqld.exe is ticked under the Startup tab when you go to run and type msconfig. Also, same goes for Services, look for the MySQL services there, right click > properties and make sure the startup types are selected as automatic.
I had the similar issue and found later that the encoding of my.ini file changes if you open that from notepad. Open the file from Notepad++ and make sure to take a note of the .ini file encoding (mostly it is UTF-8). If the file encoding changes SQL service will not start. Make sure that the new directory in which the data path is set has permissions for the account that runs the mySQLd service in windows (mostly it is network service).
If mysqld doesn't start, check the error log. The error log is located in the C:\Program Files\MySQL\MySQLServer\data. It is the file with a suffix of .err. You can also try to start the server as mysqld --console; in this case, you may get some useful information on the screen that may help solve the problem.
I'm, then, willing to accept an answer to this question that is just a copy+paste from this blog, so I can later propose changes to it. And so next time I need to set up SSL in my MySQL server I don't find the same quircks and I have a straightforward and complete guide to follow. And hopefully this gets ranked higher later by google. Thanks
Typically, the binaries for MySQL server for Windows that you can download from the MySQL website, have been compiled with SSL support. To double check that this is the case, we can connect to our instance via mysql -uroot -p (in Windows, mysql.exe is located in C:\Program Files\MySQL\MySQL Server 5.7\bin) and run:
Ok, so SSL is available but DISABLED for now (if it had a 'NO' in the value, SSL was not enabled for our binaries, we would need to look for new ones). Our purpose is to configure MySQL first so that it shows a 'YES' in those values.
Note: If you have \s in your path, you will need to replace it with \\s because mysqld will substitue the \s for a whitespace character which will break the path to your key. The extra backslash escapes the original backslash, leaving your path intact.
If you don't have something like the above, something hasn't worked well.Maybe you assigned a passphrase when creating the certificates/keys? If that's the case, MySQL cannot use those without the passphrase. We can remove it then, by issuing this openssl command:
Yes, it works but with some quirks. MySQL uses the same fileformats across platforms so all you need is to share the data directory. One problem is that the data directory need to have mysql as owner and group in ubuntu. And Windows is case-insensitive and Linux is case-sensitive so keep all names uniform: either the whole name lowercase or uppercase but do not mix them.
In order to get around innodb's log size checking, you'll need to move the innodb logs for the ubuntu partition. In my.cnf, add innodb_log_group_home_dir = /var/log/mysql so that the logs go next to the mysql error log.
It doesn't work for me as well for the version mentioned upper (and Connector/NET 8.0.33 as well)
The solution mention upper to downgrade to the 8.0.16 version (Connector/NET) works for me (Exit Power BI application, remove old installation of old connectors, install the 8.0.16 version, and then reopen the Power BI desktop solution and it should work).
The version 8.0.32 works for me as well (by following the same step as above (exit the Power BI Desktop app, install the 8.0.32 version, and then reopen the Power BI desktop solution and it should work as well)
I tried everything. This is ridiculous.
I end up with seting up data pipiline with a python connector connecting to the mysql database and retreiving data as csv file
then I will connect that csv file to the power bi...
Thanks Microsoft
UPDATE: I went to install MySQL Community on a fresh device and the dialogue box came up with a mandatory upgrade : Connector/NET 8.0.31 (Upgrading Connector/NET 8.0.16) - see attached. So maybe this is a fix from MS/Oracle? it would be nice to know so that we can all use the latest version - MS/Oracle are you there? can you respond?
Hey I'm on Windows 11. I had the same issue with MySQL Connector Net 8.0.29. My fix was uninstall MySQL Connector Net 8.0.29. Then I installed an older version. MySQL Connector Net 8.0.23 to be specific. Seems like bug with version 8.0.29. On the download page click Archives tab to try an older version.
I'm trying to setup the Heidi command line programs. Has anyone succeeded in defining this location when MySQL resides on a Linux server? In preferences Heidi is looking for mysql.exe which of course is meaningless under Linux.I suspect this works on a Windows machine only.
That path setting in HeidiSQL is used for starting a MySQL prompt, using "mysql(.exe)". This is of course the client of MySQL, but there must be a path where that binary resides. Probably the client is seperately installed from the server. Did you already try whereis mysql or similar?
The connection to MySQL for Heidi is via plink and SSH. I connect to MySQL from windows via SSH only. I know where my binaries are but entering their Linux path in preferences seems nonsensical. In any case it doesn't work.
Perhaps if I knew the command to launch the command line I might be able to figure out how to make it work. It's really not critical. I can issue the same SQL statements in Heidi as I would in the client. I'm just curious.
An empty mysql db was created to receive the h2 migration using PHPMyAdmin - MySQL Administration. The db name is metabase and it creates a folder named as such with a single db.opt file containing the db characteristics (very little):
default-character-set=latin1
default-collation=latin1_swedish_ci
As the migration proceeds the .frm and .ibd files appear but the .opt file is the only thing to point to when starting out. Omitting the path at the end of the command migrates the data but results in a static db as I soon discovered (my jubilation was very short lived).
I have a question reading monitoring a mariadb/mysql server on Windows 2019 datacenter server in connection with an 2.0.0p3 agent.
I have created a user with the corresponding settings in mariadb, copied the script in the corresponding agent dir (according to the documentation) und created the config file.
In the log of the agent, the plugin / script for mysql is called and the error no data - 0 bytes is displayed. In the monitoring host, the service is not detectable.
If I call the plugin in an elevated command promt, I get no response (only the cscript header is visible and an empty line but no errors). If I call the sql queries out of the check in a direct way with the config file, I get results.
This must also work without elevated prompt.
But for your problem to troubleshoot you can do the following. For the standalone testing you need to export the environment variable MK_CONFDIR with the folder name of your config file.
After this export you can start your script with a normal cscript call.
3a8082e126