Step by step teach you how to install MySql in a Windows Environment

Source: Internet
Author: User
Tags mysql commands

PHP + MySQL + Linux has gradually become a classic combination of small Web servers. Building and debugging MySQL databases in the indows environment is a preferred choice for many website developers. I am a beginner in MySQL in Windows 98. I will summarize the learning process and experience for your reference.

1. Download mysql-3.23.35-win.zip and decompress it;

2. Run setup.exe; select D:/MySQL, "tyical install"

3. Start MySQL using the following methods:

Method 1: Use winmysqladmin

1) enter the D:/MySQL/bindirectory and run winmysqladmin.exe. A red icon is displayed in the taskbar in the lower right corner of the screen.

2) Click the icon with the left mouse button and select "show me". The "winmysqladmin" operation interface is displayed. During the first running, a dialog box is displayed asking you to enter and set your username and password.

3) Select "My. ini setup"

4) Select "mysqld-Opt" (Win9x) or "mysqld-nt" (winnt) in "mysqld File)

5) Select "pick-up or edit my. ini values" to edit your my. ini file in the right window.

6) select Save modification to save your my. ini file.

7) If you want to quickly use winmysqladmin (automatically run upon startup), select "create shortcut on Start Menu"

8) test:

Enter the DOS interface;

Run MySql in the D:/MySQL/bin directory to enter the MySQL interactive operation interface.

Enter show databases and press Enter. The current two databases MySQL and test are displayed.

Method 2: Do not use winmysqladmin

1) in the DOS window, enter the D:/MySQL/bin directory.

2) run in Win9x:

Mysqld

Run in NT:

Mysqld-NT -- Standalone

3) since then, MySQL has been running in the background

4) test MYSQL: (in the d:/MySQL/bin directory)

A), mysqlshow

Normally, the two databases MySQL and test are displayed.

B), mysqlshow-u root MySQL

Normally, the following five tables are displayed in MySQL:

Columns_priv

DB

Host

Tables_priv

User

C), mysqladmin version status proc

Displays the version number, status, and process information.

D) MySQL Test

Enter the MySQL operation interface. The current database is test.

5) MySQL close method:

Mysqladmin-u root Shutdown

4. Now, MySQL has been successfully installed, and you can familiarize yourself with common MySQL commands and create your own database.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.