Turn from: http://blog.163.com/[email protected]/blog/static/170171558201411311547655/1. # CREATE DATABASE statementCreate DATABASE mydb default character set UTF8;# using Database statementsUse MyDB;# Create a table, here simply create a table#
Read Catalogue
1. Avoid creating database and table garbled and view encoding method
2. Avoid the problem of importing data with Chinese characters
3. Solve the problem of garbled pages
MySQL will appear in Chinese garbled
One, connect MySQLFormat: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine.First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter after the prompt you to lose
First, MySQL database installation:Download the database installation file for your operating system category and version from its official website and follow the instructions to install it. After you open a. dmg file, there are three required
First trick, start and stop of MySQL servicenet stop MySQLnet start MySQLSecond move, login MySQLThe syntax is as follows: Mysql-u user name-p user PasswordType the command mysql-uroot-p, enter the password after entering, enter 12345, and then
First trick, start and stop of MySQL servicenet stop MySQLnet start MySQLSecond move, login MySQLThe syntax is as follows: Mysql-u user name-p user PasswordType the command mysql-uroot-p, enter the password after entering, enter 12345, and then
1.linux commands to start MySQL:Mysqladmin start/ect/init.d/mysql start (front of MySQL installation path)2.linux Restart MySQL command:Mysqladmin restart/ect/init.d/mysql Restart (front of MySQL installation path)3.linux the command to turn off
1.linux commands to start MySQL:Mysqladmin start/ect/init.d/mysql start (front of MySQL installation path)2.linux Restart MySQL command:Mysqladmin restart/ect/init.d/mysql Restart (front of MySQL installation path)3.linux the command to turn off
1.in does not support sub-query eg. SELECT * from SRC where key in (select key from Test);Number of support queries eg. SELECT * from SRC where key in (1,2,3,4,5);In 40,000 time 25.766 secondsIn 80,000 time 78.827 seconds2.union all/unionThe
MySQL will appear in Chinese garbled reason is the following points:The 1.server itself sets the problem, for example still staying in Latin12.table language setting problem (including character and collation)3. The connection language setting
MySQL will appear in Chinese garbled reason is the following points:The 1.server itself sets the problem, for example still staying in Latin12.table language setting problem (including character and collation)3. The connection language setting
When using MySQL, the load data infile is often used to import, and sometimes a format conversion problem is encountered when a column of type date is encountered:First create a simple people table with name, birthday, age three fields:mysql> create
First check the MySQL version of the system installation, using the command Rpm-qa | grep MySQLTo install your own version, perform the delete operation first RPM-E xxxxx.rpm--nodepsthen install your own version, Rpm-i xxxxx.rpm To connect to MySQL
Exit MySQL command ctrl+dfirst, connect MySQL. Format: mysql-h host address-u user name-P user Password1. Connect to MySQL on this machine.First open the DOS window, then enter the directory Mysql\bin, and then type the command Mysql-u root-p, enter
PHP MySQL database common cmd command setshow databases; Display DatabaseCreate database name; Create a databaseUse DatabaseName; Select DatabaseDrop database name deletes databases directly and does not alertShow tables; Show TableDescribe
Database OperationsView all Databases
hive> show databases;
working with default databases
hive> Use default;
View database Information
Hive > describe database default;OkDb_name Comment location owner_name owner_
Statement
This article is based on CentOS 6.x + CDH 5.x
When it comes to hive, you have to talk about how to call hive when you write a program. Here's an example of how to call hive query data data through Java to prepare a text file
This article transferred from: http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/10/18/2216279.html1.linux commands to start MySQL:Mysqladmin start/ect/init.d/mysql start (front of MySQL installation path)2.linux Restart MySQL
First recruit, the start and stop of MySQL service
net stop MySQL
net start MySQL
Second recruit, login MySQL
The syntax is as follows: Mysql-u user name-p user Password
Type the command mysql-uroot-p, enter the password to prompt you, enter 123
MySQL will appear in Chinese garbled reasons are the following:1.server itself set the problem, for example still stay in Latin12.table language setting problem (including character and collation)3. Client program (for example, PHP) of the
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.