简体   繁体   English

MySQL Workbench 未在 Windows 上打开

[英]MySQL Workbench not opening on Windows

I have downloaded the no-install portable version of Workbench.我已经下载了 Workbench 的免安装便携版。 When I run the exe file (on Windows XP), nothing happens.当我运行 exe 文件(在 Windows XP 上)时,没有任何反应。 Does it need some MySQL running?它需要运行一些 MySQL 吗? I think it's standalone, right?我认为它是独立的,对吧? I have XAMPP for MySQL.我有用于 MySQL 的 XAMPP。 Any dependency etc?任何依赖等?

You need to install the following in order to run the current version of MySQL Workbench:您需要安装以下内容才能运行当前版本的 MySQL Workbench:

  • Microsoft .NET Framework 4.5.2微软 .NET 框架 4.5.2
  • Microsoft Visual C++ 2019 Redistributable for Visual Studio 2019适用于 Visual Studio 2019 的 Microsoft Visual C++ 2019 可再发行组件

See: dev.mysql.com/doc/workbench/en/wb-requirements-software.html .请参阅: dev.mysql.com/doc/workbench/en/wb-requirements-software.html

Update 2020: 2020 年更新:

Unfortunately this is still happening:不幸的是,这仍在发生:

  1. Download .NET 4.0 (My machine already had it.)下载.NET 4.0 (我的机器已经有了。)
  2. Download Visual C++下载Visual C++
  3. As the above solution states.如上述解决方案所述。 Download the Mysql workbench installer .下载Mysql 工作台安装程序

I still don't know why, it would allow me to install without checking for dependencies.我仍然不知道为什么,它允许我在不检查依赖项的情况下安装。 I have become accustomed to this kind of behavior when I am installing any application and to not see it is annoying.当我安装任何应用程序时,我已经习惯了这种行为并且看不到它很烦人。 I suppose I should leave this personal opinions out of my solution but I have had to install this multiple times and have comes across some kind of dependency issue.我想我应该将这些个人意见排除在我的解决方案之外,但我不得不多次安装它并且遇到了某种依赖问题。

What works for me (workbench 64bit) is that I installed Visual Studio 2015, 2017 and 2019 here is url: https://support.microsoft.com/en-ph/help/2977003/the-latest-supported-visual-c-downloads对我有用的(工作台 64 位)是我安装了 Visual Studio 2015、2017 和 2019,这里是 url:https: //support.microsoft.com/en-ph/help/2977003/the-latest-supported-visual-c -下载

I installed both x86: vc_redist.x86.exe and x64: vc_redist.x64.exe我安装了 x86: vc_redist.x86.exe 和 x64: vc_redist.x64.exe

In my case, i tried all solutions but nothing worked.就我而言,我尝试了所有解决方案,但没有任何效果。

My SO is windows 7 x64, with all the Redistributable Packages (x86,x64 / 2010,2013,2015)我的 SO 是 windows 7 x64,带有所有可再发行包(x86、x64 / 2010、2013、2015)

The problem was that i tried to install the x64 workbench, but for some reason did not work (even my SO is x64).问题是我试图安装 x64 工作台,但由于某种原因没有工作(即使我的 SO 是 x64)。

so, the solution was download the x86 installer from : https://downloads.mysql.com/archives/workbench/因此,解决方案是从以下网址下载 x86 安装程序: https ://downloads.mysql.com/archives/workbench/

There are two prerequisite requirements need to install MySql Workbench as follows.安装 MySql Workbench 有两个先决条件,如下所示。

  1. .Net Framework 4.0 .Net 框架 4.0
  2. Microsoft Visual C++ 2010微软视觉 C++ 2010

When .Net Framework 4.0 does not exist your computer installation will be corrupted..Net Framework 4.0不存在时,您的计算机安装将被损坏。 But if Microsoft Visual C++ 2010 does not exist your computer then you will continue the installation but cannot open MySql Workbench program.但是如果您的计算机不存在Microsoft Visual C++ 2010 ,那么您将继续安装但无法打开 MySql Workbench 程序。 Sometimes you will need Microsoft Visual C++ 2013 instead of Microsoft Visual C++ 2010 .有时您需要Microsoft Visual C++ 2013而不是Microsoft Visual C++ 2010 So I recommend to install Microsoft Visual C++ 2013 .所以我推荐安装Microsoft Visual C++ 2013

Microsoft Visual C++ 2013 微软视觉 C++ 2013

In Windows 10 I browsed to %APPDATA%\MySQL\Workbench\ then deleted the workbench_user_data.dat file在 Windows 10 中,我浏览到 %APPDATA%\MySQL\Workbench\ 然后删除了workbench_user_data.dat文件

Doing so lost my MySqlWorkbence settings but allowed MySqlWorkbence to open.这样做会丢失我的 MySqlWorkbence 设置,但允许 MySqlWorkbence 打开。

As per the current setup on June, 2017 Here is the downloadable link for Visual C++ 2015 Redistributable package : https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe根据 2017 年 6 月的当前设置,这里是 Visual C++ 2015 Redistributable 包的可下载链接: https ://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist .x64.exe

Hope this will help, who are struggling with the download link.希望这对正在为下载链接苦苦挣扎的人有所帮助。

Note: This is with regards to MySQL Workbench 6.3.9注意:这是关于 MySQL Workbench 6.3.9

我已经卸载了 8.0.19 (64) 并安装了 8.0.18 (64 位),现在它打开了。

这可能是由于运行 xampp 或 wampp 服务器停止所有服务运行并尝试打开 mysql 命令行

I found I needed more than just the Visual C++ Redistributable 2015.我发现我需要的不仅仅是 Visual C++ Redistributable 2015。

I also needed what's at this page .我还需要这个页面上的内容。 It's confusing because the titles make it ambiguous as to whether you're downloading the (very heavy) Visual Studio or just Visual C++.这很令人困惑,因为标题使您在下载(非常繁重的)Visual Studio 还是只是 Visual C++ 时变得模棱两可。 In this case it only upgrades Visual C++, and MySQL Workbench launched after this install.在这种情况下,它只升级 Visual C++,并在安装后启动 MySQL Workbench。

You should have these two already installed in your system:您应该已经在系统中安装了这两个:

  1. Microsoft Visual C++ 2015-2019 Redistributable Microsoft Visual C++ 2015-2019 可再发行版
  2. Microsoft .NET Framework 4.5.2微软 .NET 框架 4.5.2

I did these two installations for MySQL Workbench 8.0 CE.我为 MySQL Workbench 8.0 CE 做了这两个安装。

这些建议都不起作用,但是设置与 Vista 的兼容性有效,现在工作台再次打开。

2022 case: 2022案例:

My MySQL Workbench was working normally and from one moment it just didn't want to open anymore.我的 MySQL Workbench 工作正常,从一开始就不想再打开了。 I've lost almost half a day trying to fix it.我已经失去了将近半天的时间试图修复它。

In folder %APPDATA%\MySQL\ I had to delete the whole folder Workbench, instead of deleting just workbench_user_data.dat file (which didn't help)在文件夹%APPDATA%\MySQL\我不得不删除整个文件夹 Workbench,而不是只删除workbench_user_data.dat文件(这没有帮助)

鉴于网络上的内容很少,尽管该线程已有两年多的历史,我仍将提供我的答案:这可能很容易,但以管理员身份运行 Workbench(doh!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM