MySQL getting started (1) Installation

Source: Internet
Author: User

MySQLFreeHas gradually becomeEnterpriseFirst priority of small DatabasesSelect. In indowsEnvironmentIt is the first choice for many website developers to build and debug MySQL databases. The following are some notes about MySql in windows.


1. Go to http://www.mysql.com/downloads/index.htmlDownloadMySQL and decompress the package;


2. Run setup.exe.


3. Start MYSQL as follows:Method:


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) left mouse buttonClickSelect"ShowMe, "winmysqladmin" appears"OperationInterface. 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) Run and enter the C:/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.

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.