search
HomeDatabaseMysql TutorialMySQL在Win2000下的安装

MySQL在Win2000下的安装

Jun 07, 2016 pm 04:04 PM
mysqlcloseInstallIntroduction

一、MySQL简介 MySQL是一个关系型数据库管理系统(RDBMS)。它可以很好地组织和管理大量的数据,也使得我们可以很容易地通过象PHP这样的服务器端脚本语言来管理和获取信息。MySQL是完全免费的,它以其高度的开放性和高速的成长赢得了广大用户的青睐。在本文

一、MySQL简介

MySQL是一个关系型数据库管理系统(RDBMS)。它可以很好地组织和管理大量的数据,也使得我们可以很容易地通过象PHP这样的服务器端脚本语言来管理和获取信息。MySQL是完全免费的,它以其高度的开放性和高速的成长赢得了广大用户的青睐。在本文中,我们将向大家介绍MySQL在 Win2000下的安装。

二、下载所需要的文件

首先从http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.29a-win.zip 下载mysql-3.23.29a-win.zip文件,并将其解压到你本地的硬盘上(我们使用的是mysql_setup目录)。

三、执行安装程序并将其添加到服务中

执行c:/mysql_setup/setup.exe文件,安装过程很简单,只要你选择一下安装路径(我们使用的是mysql目录)以及安装模式(干脆选完全安装,不过才20M)。然后在c:mysql/bin下执行下面的命令:

<code>c:mysql/bin>mysqld-nt --install</code>

现在在你的“程序->管理工具->服务”中应该已经能够看到Mysql服务,其启动类别是自启动,现在重启你的计算机。

四、MySQL的设置

MySQL仅仅允许经授权的用户访问并操作它的数据库中所存储的信息。当MySQL第一次被安装时,它会生成一个叫“root”的用户,该用户可以不用口令访问所有的东西。你的第一个任务就是为root用户设置口令。

要设置MySQL中root用户的口令,在你安装MySQL的目录的bin子目录下输入下面的命令(包括引号):

<code>mysqladmin -u root password "your new password"</code>

要确保MySQL接受这个改变,你必须告诉它重新载入经认证的用户和口令的列表:

<code>mysqladmin -u root reload</code>

如果这个命令显示一个错误信息告诉你无法访问,不要担心,这仅仅证明新的口令已经生效了。

要测试你的新密码,你可以请求MySQL服务器告诉你有关它的当前的状态:

<code>mysqladmin -u root -p status</code>

当有提示时,输入密码。你会看到一些简单的信息,这些信息包含了服务的当前状态。-u root参数告诉程序你想以“root”用户登入。-p参数告诉程序在连接之前提示你输入你的口令。status参数告诉程序你想要看看系统状态。

如果你需要关闭MySQL服务器,你可以使用下面的命令。

<code>mysqladmin -u root -p shutdown</code>

五、登录MySQL

登录MySQL,你可以在命令行执行下面的命令:

<code>mysql -h <hostname> -u <username> -p</username></hostname></code>

你需要将换成你的MySQL服务正在其上运行的计算机的主机名或IP地址。如果你在运行服务的同一台计算机上登录MySQL,你可以直接使用-h localhost。应该是你的MySQL用户名。对于你自己安装的MySQL服务器,这应该就是root。

如果你一切都输入好了,MySQL客户端程序会连接上MySQL服务器并返回给你一个MySQL的命令行:

<code>mysql></code>

请注意,你这里你输入的每一个命令都必须以;结束,只有两个命令例外,那就是quit和exit,你可用这两个命令中的一个来退出MySQL客户端程序。


Statement
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
What Are the Limitations of Using Views in MySQL?What Are the Limitations of Using Views in MySQL?May 14, 2025 am 12:10 AM

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

Securing Your MySQL Database: Adding Users and Granting PrivilegesSecuring Your MySQL Database: Adding Users and Granting PrivilegesMay 14, 2025 am 12:09 AM

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

What Factors Influence the Number of Triggers I Can Use in MySQL?What Factors Influence the Number of Triggers I Can Use in MySQL?May 14, 2025 am 12:08 AM

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

MySQL: Is it safe to store BLOB?MySQL: Is it safe to store BLOB?May 14, 2025 am 12:07 AM

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

MySQL: Adding a user through a PHP web interfaceMySQL: Adding a user through a PHP web interfaceMay 14, 2025 am 12:04 AM

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL: BLOB and other no-sql storage, what are the differences?MySQL: BLOB and other no-sql storage, what are the differences?May 13, 2025 am 12:14 AM

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

MySQL Add User: Syntax, Options, and Security Best PracticesMySQL Add User: Syntax, Options, and Security Best PracticesMay 13, 2025 am 12:12 AM

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

MySQL: How to avoid String Data Types common mistakes?MySQL: How to avoid String Data Types common mistakes?May 13, 2025 am 12:09 AM

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters

See all articles

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 Article

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.