Scripting Kid _ Little-mysql Learning Preparation

Source: Internet
Author: User

MySQL Learning Preparation

Briefly:

I. Understanding of database knowledge

Second, the environment construction

Third, MySQL basic operation

I. Understanding of database knowledge

1, why need database management system?

A: It is easy for us to manage the data.

In our daily life, we manage our data in a simple and easy-to-use Notepad to record/query/delete/modify data. So mapping this operation to the computer, we can also use the computer's Notepad tool to complete this function, but, inconvenient, management is also troublesome. At this point, the database management system plays an important role. The database management system is essentially a file on the operating system. (This is because in the end, the file will eventually be stored on disk), but the database management system is a layer of encapsulation, and we are using this layer of encapsulation capabilities.

Approximate Sketch:

2, the common database management system

Msserver, Oracle, MySQL, ETC.,

Note: This series is based on MySQL

Second, the environment construction

1. Select the integrated environment Wampserver

2, after installation, the initial situation, MySQL password is empty, modify the MySQL password

A. Log into MySQL at the command line

b, select database MySQL, with command: Usemysql

C. Use the update command to modify the MySQL user table information

UpdateUser Set Password=password (' root ') where user= ' root ' and host= ' localhost ';

D, after the change, refresh permissions

flushprivileges;

3. How to operate MySQL

A, MySQL comes with MySQL tool, in the installation directory of the bin directory

B, web management tools such as phpMyAdmin

C, third-party tools, etc.


Iii. MySQL basic commands

1. Login Database

2. View all current databases

3. Select a database

4. Help command

Help command word or? Command Word%


The quieter become,the more you is able to hear!

Scripting Kid _ Little-mysql Learning Preparation

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.