LinuxLowerMySQLInstallation and configuration
MySQL
Installation
MySQLInstallation is relatively simple becauseSambaSo you can directly put the content to be installed in the system,
Use it directly. (The files
MySQL automatic number field
When creating a table:Create Table 'mydatabase'. 'mytable '('Id' integer unsigned not null auto_increment,......Primary Key ('id '))If the table already exists, modify it.Alter table 'mydatabase'.
MySQL has text and BLOB:
(1) Same
There is no case conversion during text or blob column storage or retrieval. When the mode is not running in strict mode, if you assign a value that exceeds the maximum length of the column type to the
MySQL replace into has three forms:1. Replace into tbl_name (col_name,...) values (...)2. Replace into tbl_name (col_name,...) select...3. Replace into tbl_name set col_name = value ,...The first form is similar to the insert into usage,The second
Show all databases: Show databases;
Create Database customer; customer is the database name;
Open Database: Use customer; open the database before you perform various operations;
Customer table ID number name gender age birth date salary phone
I have no intention of learning too much database knowledge. This article is just a Summary of the miscellaneous articles on the Internet. It will only be used for MySQL installation in the future.
I. Installation Process:
1. Preparations
Download
Usage of rollup and limit in MySQL and optimization of the WHERE clause
1. group using Rollup
For example, the following table lists the sales volume of each salesperson in a company in a month:
Create Table example
(
Sale_id int
The following articles mainly describe the actual operation steps of MySQL Delete syntax and the actual application code of MySQL Delete syntax. The following describes the specific content, I hope it will help you learn this syntax.
Single Table
Better application availability: Online DDL/mode changesToday, Web-based applications are designed to rapidly evolve and adapt to business and production needs. When an application must quickly adapt to a new product line or product, the backend
0. Environment Introduction
The cluster nodes are master1, master2, and slave1. Master-slave replication from master2 to slave1 has been completed. Now you need to configure the mutual replication between master1 and master2.
1. Modify the master2
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
1,Introduction to MySQL preprocessing
Preprocessing means that the SQL statement is submitted to the MySQL server and precompiled. When the client executes the SQL statement, you only need to upload the input parameters, which is similar to the
An exceptionoccurred: COM. MySQL. JDBC. Exceptions. mysqlnontransientconnectionexception
I encountered this error today. I have never encountered it before. I started to check that the connection is not null, and other objects are also normal.
1. Create a stored procedure
1. Basic Syntax:
Create procedure process name ([process parameter [,...]) procedure [feature...] process body
Example:
1. mysql> DELIMITER //
2. mysql> CREATE PROCEDURE proc1(OUT s int)
3. -> BEGIN
4.
Distributed MySQL Databases use a single master with multiple slave architectures. Through the replication of master and slave, the application server can query slave through the Load balancer. In this way, the query can be distributed across
The larger the data size, the greater the difference between indexes. In fact, small personal professional applications can achieve the desired speed without indexing. When there are about 1000 data records, the additional overhead of tree search is
Software name: MySQL query Browser
Introduction: I provide a mysql-gui-tools-5.0-r12-win32 integration package. MySQL query browser and MySQL administrator are included. You can set and manage them in the same way as you did in the tutorial for ease
I. MySQL character set (available everywhere)Environment (select best support for multilingualism or utf8 ),Databases, tables, and fieldsThe rules are as follows:If the library is not specified, the character set in the environment is used.If the
Saw the netizen Wang open source "A Chinese it thinking -- Evaluation of the United States took the lead to cast ooxml yes vote" (http://blog.csdn.net/arthur5933/archive/2008/03/19/2197087.aspx) article, coupled with a little recent sentiment, to
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