MySQL second lesson SQL statement build Database

Source: Internet
Author: User
Tags import database

Scene

MySQL executable directory: C:\Program Files (x86) \mysql\mysql Server 5.6\bin

Login Instructions Mysql.exe-u root-p

Enter Password: admin123


Show databases;//s is required, is required, shows all databases


When importing a data table, you must select a database, otherwise error message: No database selected, use instruction

Use test;

Note: CREATE DATABASE directive:

Import Database directives:

SOURCE E:test.sql


Doubts

Mysql-js>

This hint indicates that the current interactive language is JavaScript


Reference

http://blog.csdn.net/u010722980/article/details/51553478


Forgot MySQL Password

1) Stop the service

net stop MYQL

2) Skip Permission detection

Mysqld--defaults-file= "C:\Program Files (x86) \mysql\mysql Server 5.6\my.ini"--console--skip-grant-tables


Reference


Http://www.cnblogs.com/andy_tigger/archive/2012/04/12/2443652.html


Modify the character encoding of MySQL support GBK Chinese encoding

Modify the My.ini in the C:\Program files\mysql\mysql Server 5.6 Directory

Modify Default-character-set=latin1 to DEFAULT-CHARACTER-SET=GBK

Use DOS command: net stop MySQL to stop service net start MySQL to start


MySQL second lesson SQL statement build 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.