This article mainly shares with you the solution to some mysql Chinese garbled characters encountered in my project, which is very simple and practical. we recommend it to you here. if you need it, you can refer to it. First, the mysql version I
MySql green edition configuration and usage details recently used the MySql database during project development. after reading some articles about MySql, I quickly started using it. Some problems still occur in the process of use, because the green
Mysql database learning (1): Basic Concepts of databases, relational databases, Mysql database installation and configuration, and DDLDCLDML statements bitsCN.com
I. basic concepts of databases
Database (DB)
Warehouses that organize and store data
Simple mysql database operations required in php. Simple mysql database operations required in php, phpmysql1. database connection 1.1 use the windows command line to connect to the database server. Several DOS commands are not used in php in the
The following is a summary of MySQL character set operation commands that are run in mysql 5.5 command line:
View the character sets supported by MySQL:Show charset;View character set:StatusThe following is more specific:Show variables like
I have previously written an article about how to deal with mysql Chinese garbled characters. I found it is necessary to write this article again. The reason is that for security purposes, the official environment on the connection line of the mysql
1. Create a database mysqlgt; createdatabaseifnotexiststongcheng; QueryOK, 1 rowaffected (0.01sec) mysqlgt; 2. view the number of created databases
1. create database mysqlgt; create database if not exists tongcheng; Query OK, 1 row affected (0.01
The usage of the MySQLshow command can easily display some information in dos.
The MySQL show command is used to conveniently display some information in dos.
Show tables or show tables from database_name; // display the names of all tables in the
# Selecting a database
USE mysql
# Back to the list of available databases
SHOW DATABASES
# Return the available tables in the current database
SHOW TABLES
# Return table columns
Show columns from db
# Display creation statements for
This topic describes how to use the show command in MySQL.
A. show tables or show tables from database_name; -- displays the names of all tables in the current database.
B. show databases; -- display the names of all databases in mysql.
C. show
Modify the database character set: [SQL] ALTER DATABASE db_name DEFAULT CHARACTER SET character_name [COLLATE...]; change the default character set and all CHARACTER columns (CHAR, VARCHAR, TEXT) of the table to the new character set: [SQL] ALTER
Create database: create database [if not exist] name [character set encoding collate checking rule]
Show create database name
Delete A database: drop database [if exist] name
Backup Database: mysqldump-u username-p
1. List all character sets supported by MYSQL:
Show character set;
2. Current MYSQL Server Character Set
Show variables like 'character _ set _ % ';
3. Current MYSQL Server character set verification settings
Show variables like 'collation _ %
I. SQLSQL: the abbreviation of StructuredQueryLanguage Structured Query Language SQL industrial standard: SQL compiled by ANSI (ISO (core member of internationalstandardorgnation) According to industrial standards can run on any database. Dialect:
MySQL causes Chinese garbled characters for the following reasons: 1. server configuration problems, such as the problem of setting the language families (including character and collation) in latin12.table. we strongly recommend that you use utf8 !!
MySql Summary (1)
I have read MySql for the second time. The main purpose of this time is to sum up the MySql system. I used to write my notes on MySql before, but I don't want to always take it with me in the future, so I will spend some time
This article mainly introduces the actual usage of the Mysql show command under the Mysql database. If you are interested in the specific application of the Mysql show command, you can click the following article to learn more about its actual
Analysis of MYSQL engine and character settings bitsCN.com
When creating a new TABLE that year, you can add an ENGINE or TYPE option to the create table statement to tell MySQL what TYPE of TABLE you want to CREATE: create table t (I INT) ENGINE =
Learning notes for MySQL required: 1 # select a database
USE mysql
# Back to the list of available databases
SHOW DATABASES
# Return the available tables in the current database
SHOW TABLES
# Return table columns
Show columns from db
#
1. start the MySQL service and log on to the MySQL database. 1. start the MySQL service 1 standalone start menu. in the displayed menu, select the RUN command, open the "run" dialog box 2. enter servicesmsc in the text box, and click "OK". in
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.