安装 mysql noinstall zip 存档

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12071834/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 14:33:52  来源:igfitidea点击:

Installing mysql noinstall zip archive

mysqlinstallation

提问by Sripaul

I've been trying to use my mysql noinstall zip archive and the steps that I found in some of the websites are not descriptive. Can someone help?

我一直在尝试使用我的 mysql noinstall zip 存档,但我在某些网站中找到的步骤没有描述性。有人可以帮忙吗?

回答by rene

If you follow the instruction hereyou will be alright. From that page:

如果您按照此处的说明操作您会没事的。从该页面:

Users who are installing from the noinstall package can use the instructions in this section to manually install MySQL. The process for installing MySQL from a Zip archive is as follows:

  • Extract the archive to the desired install directory
  • Create an option file
  • Choose a MySQL server type
  • Start the MySQL server
  • Secure the default user accounts

从 noinstall 包安装的用户可以使用本节中的说明手动安装 MySQL。从 Zip 存档安装 MySQL 的过程如下:

  • 将存档解压缩到所需的安装目录
  • 创建选项文件
  • 选择 MySQL 服务器类型
  • 启动 MySQL 服务器
  • 保护默认用户帐户

To start the sever run

启动服务器运行

mysqld --console

and after that run

在那之后运行

mysql -u root

to start doing whatever you want.

开始做任何你想做的事。

Notice that MySql will function exactly the same as if you would have installed or configured it to run as a service. Your schema's are stored on disk. If you start it after you've stopped it your previous data will still be there. So it doesn't turn magically into an in-memory database.

请注意,MySql 的功能与您将其安装或配置为作为服务运行时完全相同。您的架构存储在磁盘上。如果您在停止它后启动它,您以前的数据仍将存在。所以它不会神奇地变成内存数据库。

回答by Kleber Silva

If you want to install the MySQL database as a service you can use the command below.

如果要将 MySQL 数据库安装为服务,可以使用以下命令。

mysqld.exe --install

mysqld.exe --install