One, data type
1. Integral type
Data type storage space description range of values
TINYINT1 byte very small integer with symbolic value: -128~127
Unsigned value: 0~255
SMALLINT2 byte small integer with symbolic value: -32768~32767
Unsigned
CVS file import mysql database command:
The code is as follows
Copy Code
Set names UTF8;LOAD DATA local INFILE ' c:\\resource.csv 'into TABLE ResourceFIELDS terminated by ""LINES terminated by ' \ r \ n '(Title,singer);
1, into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directory
As I entered the command line: CD C:/Program files/mysql/mysql Server 4.1/bin
(or add the directory directly to the environment variable path of Windows)2,
First, preparatory work
1, respectively in master and slave implementation of the following, convenient MHA check replication:Grant all privileges in *.* to ' root ' @ ' 10.1.1.231 ' identified by ' rootpass ';Grant all privileges in *.* to ' root '
Analysis reason one: MySQL's automatic backup function may cause the database to shut down the service before the backup, but when this starts the server does not respond,
Start-run-services.msc, open Windows service to find MySQL services and
Login MySQL:
Mysql-h localhost-u root-ptest Password must have no space before you re-enter the password
Mysql-h110.110.110.110-u Root-p 123; (Note: There is no space between you and root, and so are the others.)
MySQL Commands collection
1, applications (such as PHP) for a long time to execute the batch of MySQL statements. The most common is acquisition or new and old data conversion.Solution:Add or modify the following two variables in the my.cnf
The syntax for explain is as follows:
Explain [extended] select ... from ... where ...
If you use extended, you can use the show warnings statement to query the appropriate optimization information after you finish executing the explain statement.
This tutorial to talk about the MySQL Tutorial view query and delete Oh, query view with the show view name, delete the MySQL view with drop is also very simple, but delete the view to have drop permission to do. Now let's look at the view
View the
Process with analyze and deal with them on a regular basis
ANALYZE [Local | No_write_to_binlog] TABLE tb1_name[, Tbl_name] ...
Define Tables Analyze Table table_name
CHECK TABLE Tb1_name[,tbl_name] ... [option]...option = {QUICK | FAST | MEDIUM |
If you perform the "php-v" command to see the current PHP version information before you add it to the environment variable, you will be prompted for an error that does not exist, and here's how to add PHP and MySQL to the environment variables
Connect MySQL and run the following command:
The code is as follows
Copy Code
Mysql-u root-pMysql>use MySQL;Mysql>select host from user where user= ' root ';Mysql>update User Set host = '% ' where user = ' root
After a full day, I finally figured out how to configure the MySQL database connection pool in Tomcat 5.5. The online experience cannot be fully used in the new environment, I wrote the entire process for your convenience.1. Environment
This is why I transferred my website from one server to another. Let's take a look at the reason.Find the confing. inc. Php file.// [CH] modify the following variables based on the account parameters provided by the space provider. If you have any
Windows:We recommend that you do not install the software on the system disk. It can be the root directory or other directories, but it is best not to have spaces in the directory name to avoid some errors.Configure Apache and PHPOpen the Apache
MySQL is a fully networked cross-platform relational database system, a real multi-user, multi-thread SQL database server, and a distributed database management system with a client/server architecture. it has the advantages of powerful functions,
System: centos 5.9 64-bitSoftware: libiconv-1.14.tar.gz mysql-5.5.25a.tar.gz required1. Preparations before installation2. Install libiconv The code is as follows:Copy code 1./configure -- prefix =/usr/local/libiconv2 make & make install 3.
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