Install MySQL5.5.28 in WindowXP
Diagram of MySQL5.5.28 installation in Windows XP
MySQL database installation is divided into two parts: database installation and database configuration.
I. installation of MySQL database
1. double-click the
Format the SQL query result in bitsCN.com
SQL query result formatting
Sometimes we need to compare the query results
If the value is A, return
If the value is B, return BB
The following SQL statements passed the test in mysql:
Java
Mysql time operation SQL statement bitsCN.com
SQL statement for mysql time operations
Select * from mytest where (select DATEDIFF (now (), current) = 0); // today's data
SELECT OrderId, DATE_ADD (OrderDate, INTERVAL 2 DAY) AS OrderPayDate
A mysql test question about update: bitsCN.com
A test question about mysql update
I went to the interview some time ago and saw a test question.
Subject:
The table creation statement is:
Create table · test _ table '{
Id int (5) unsigned
Mysql master-slave synchronization with bitsCN.com
Mysql master-slave synchronization
Vim/etc/my. cnf
Server-id = 1
Log-bin =/data/binlog/mysql-bin
Binlog-ignore-db = mysql
Binlog-ignore-db = test
Binlog-ignore-db =
MysqlInnoDB note memory bitsCN.com
Mysql InnoDB note memory
InnoDB status
SQL code
Show engine innodb status/G;
Execution result
Type: InnoDB
Name:
Status:
Per second averages calculated from the last 6 seconds
-----------------
BACKGROUND THREAD
-
MySQL data export and import (mysql internal commands: mysqldump, mysql) mysqldump
BitsCN.com
MySQL data export and import (mysql internal commands: mysqldump, mysql)
Back up Database
1. export a database (all data, table structures,
Slow query bitsCN.com caused by incorrect MySQL prefix index
The front-end time is related to a DB Project. alanc reports a query. using indexes is much slower than not using indexes. So I followed up and used explain to look at two different query
10. MySQL getting started summary bitsCN.com
1. connection operations and set operations (continued)
Since mysql does not support full join, I can do this:
Select * from a left join B on a. id = B. idunionselect * from a right join B on a. id =
MYSQL each user obtains one record in three ways (groupbyxxx) bitsCN.com
MYSQL each user obtains one record in three ways (group by xxx)
My classmates asked me about the SQL statements in this area. I remember it specially. after all, this is
Each database obtains the random column syntax bitsCN.com.
Syntax for obtaining random columns for each database
[Html]
Syntax for obtaining random columns for each database
MySQL
SELECT column FROM table order by rand () LIMIT 10
MYSQL sharing: bitsCN.com
MYSQL sharing: Statement for retrieving information about the missing primary key table
[SQL]
SELECT a. 'Table _ scheme' AS DB_NAME, a. 'Table _ name', a. 'Table _ ROWS ', a. 'engine' --, .*
FROM
Information_schema.
How to quickly embrace the new environment bitsCN.com
How to quickly embrace the new environment when MySQL DBA is new
There are many methods. here we will introduce lazy practices, that is, using tools.
However, in the production environment, can'
Simple configuration of Mysql database read/write splitting bitsCN.com
Simple configuration of Mysql database read/write splitting
Environment:
Master:192.168.71.128 mysql-sql-node1Slave:192.168.71.140 mysql-data-node1Mysql-Proxy:192.
Summary of common Mysql command line operations bitsCN.com
Summary of common Mysql command line operations
1. import an SQL file to the database:
To use the source command, you must first log on to the mysql console
Mysql-u-p use
Common Mysql methods: bitsCN.com
The company recently conducted a training program for new colleagues. I also sneaked in and watched it. although the content is basic, it is still quite useful. Here is a summary of the data:Two storage engines:
Mysql function instance-count users who have not logged on to bitsCN.com within one week
Mysql function instance-count the number of monthly login users
Count the number of monthly users.
Java code create function statics_user_login_month ()
Mysql Query (note 2) bitsCN.com
1. transplantation between two tables with the same structure
Inset into table 1
Select Field 1, field 2,... field n from Table 2
Set Database encoding when creating a database
Create database name charset uft8
Fuzzy
MySQL database regularly backs up Shell scripts and back them up to other machine methods bitsCN.com
MySQL database regularly backs up Shell scripts and back them up to other machines
This is a simple MySQL database backup shell script, suitable
BitsCN.com is recommended for MySQL DML operations
MySQL DML operation suggestions
(I) INSERT large data volume
(1) replace a single row with multiline insert:
Insert into t values (),(),(),...
(2)
Load data infile... into
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