Home Database Mysql Tutorial Mysql入门系列:在Windows上安装MySQL_MySQL

Mysql入门系列:在Windows上安装MySQL_MySQL

Jun 01, 2016 pm 01:56 PM
windows Install software

  可在Windows 95、Windows 98 或Windows NT 下运行MySQL。为了做到这一点,必须安装TCP/IP 支持环境,而且Winsock 软件必须至少为版本2。

  在Windows 下可安装两种软件:

  ?独立程序,如为UNIX 安装的那种程序( mysqld 服务器与诸如m s y q l和mysladmin 这样的程序)。

  ?M y ODBC,允许其他程序(如A c c e s s)与MySQL服务器通信的ODBC 的MySQL驱动。

  Windows 分发包全都可从MySQL站点作为zip 文件得到。为了打开这样的文件,只需双击它即可。如果这样不行,可使用诸如Winzip 或pkunzip 这样的程序来打开它。主要分发包下:

  ?mysqlw i n. ver s i o n .zip 完全分发包(服务器和客户机)。

  ?w i n c l i e n t s- ver s i o n .z i p 客户机软件(mysql、mysqla d m i n、mysqldump 等等)。如果不想在Windows 下运行服务器,可使用这个软件。

  ?my o db c -ver s i o n- w i n 9 5 . z i p

  my o db c -ver s i o n- n t . z i p

  Windows 95(Windows 98)或Windows NT 的MyODBC 支持环境。

  ?mysqlc l i e n t -ver s i o n- c y g w i n - b 2 0 . t a r.gz 用Cygnus 工具集编译的MySQL客户机。它包括mysqlc,具有命令行历史编辑功能的一种mysql客户机版本。如果安装它,需要从c:mysqllib 拷贝库文件cygwinb19.dll 到Windows 系统目录。

  安装仅有客户机的分发包或客户机/服务器分发包

  如果有一个只包含客户机软件的winclients.version.zip 分发包,解开它以产生mysql文件夹。将此文件夹定位到c:。

  如果有包含服务器和客户机的mysqlwin-version.zip 分发包,首先应该打开它。在结果文件夹中,执行Setup 程序,在c:mysql中安装MySQL。

  从下列服务器中进行选择: 服务器 说明
mysqld 标准服务器
mysqld-opt 为奔腾处理器进行优化的服务器
mysqld-nt 可作为在Windows NT 下的服务安装的服务器


  可在NT 下运行任意的服务器,但其中最后一个只能在NT 下运行。

  要运行mysqld 或mysqld - o p t,可如下启动该服务器:

  c:> c:mysqlinmysqld

  c:> c:mysqlinmysqld -opt

  要关闭此服务器,可利用mysqladmin 实用程序:

  c:> c:mysqlinmysqladmin -uroot shutdown

  在Windows NT 下,可运行mysqld-nt 作为一个服务:

  c:> c:mysqlinmysqld-nt --install

  如果以这种方式启动mysqld - n t,可通过将选项放入选项文件C : my.cnf 中来指定它们。不能在命令行上指定这些参数。在mysqld-nt 作为一个服务运行时,可利用下列命令启动或停止它:

  c:> net start mysql  c:> net stop mysql  可以使用control Panel 文件夹中的Services Control Manager 实用程序来启动和停止服务器,或者从命令行用mysqladmin 实用程序来停止服务器:

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Can I install mysql on Windows 7 Can I install mysql on Windows 7 Apr 08, 2025 pm 03:21 PM

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

How to speed up the loading speed of PS? How to speed up the loading speed of PS? Apr 06, 2025 pm 06:27 PM

Solving the problem of slow Photoshop startup requires a multi-pronged approach, including: upgrading hardware (memory, solid-state drive, CPU); uninstalling outdated or incompatible plug-ins; cleaning up system garbage and excessive background programs regularly; closing irrelevant programs with caution; avoiding opening a large number of files during startup.

How to pull the vertical reference line of PS How to pull the vertical reference line of PS Apr 06, 2025 pm 08:18 PM

Pull vertical guides in Photoshop: Enable ruler view (View > ruler). Hover the mouse over the vertical edge of the ruler, and then the cursor becomes a vertical line with double arrows and hold and drag the mouse to pull out the reference line. Click Delete by dragging the guide, or hovering it into a cross.

How to solve mysql cannot connect to local host How to solve mysql cannot connect to local host Apr 08, 2025 pm 02:24 PM

The MySQL connection may be due to the following reasons: MySQL service is not started, the firewall intercepts the connection, the port number is incorrect, the user name or password is incorrect, the listening address in my.cnf is improperly configured, etc. The troubleshooting steps include: 1. Check whether the MySQL service is running; 2. Adjust the firewall settings to allow MySQL to listen to port 3306; 3. Confirm that the port number is consistent with the actual port number; 4. Check whether the user name and password are correct; 5. Make sure the bind-address settings in my.cnf are correct.

Unable to access mysql from terminal Unable to access mysql from terminal Apr 08, 2025 pm 04:57 PM

Unable to access MySQL from the terminal may be due to: MySQL service not running; connection command error; insufficient permissions; firewall blocks connection; MySQL configuration file error.

Solutions to the errors reported by MySQL on a specific system version Solutions to the errors reported by MySQL on a specific system version Apr 08, 2025 am 11:54 AM

The solution to MySQL installation error is: 1. Carefully check the system environment to ensure that the MySQL dependency library requirements are met. Different operating systems and version requirements are different; 2. Carefully read the error message and take corresponding measures according to prompts (such as missing library files or insufficient permissions), such as installing dependencies or using sudo commands; 3. If necessary, try to install the source code and carefully check the compilation log, but this requires a certain amount of Linux knowledge and experience. The key to ultimately solving the problem is to carefully check the system environment and error information, and refer to the official documents.

MySQL can't be installed after downloading MySQL can't be installed after downloading Apr 08, 2025 am 11:24 AM

The main reasons for MySQL installation failure are: 1. Permission issues, you need to run as an administrator or use the sudo command; 2. Dependencies are missing, and you need to install relevant development packages; 3. Port conflicts, you need to close the program that occupies port 3306 or modify the configuration file; 4. The installation package is corrupt, you need to download and verify the integrity; 5. The environment variable is incorrectly configured, and the environment variables must be correctly configured according to the operating system. Solve these problems and carefully check each step to successfully install MySQL.

Is PS slow loading related to other programs that are running? Is PS slow loading related to other programs that are running? Apr 06, 2025 pm 06:03 PM

The secrets to mastering Office software include: understanding different versions and platforms, correctly installing and configuring, proficient in using the software interface, in-depth understanding of feature operations, application collaboration and sharing functions, utilizing templates and styles, mastering advanced skills, and solving common problems. In addition, you need to choose a version that suits your needs, make good use of templates and styles, develop backup habits, and learn shortcut keys and advanced techniques to improve efficiency.

See all articles