> Apache_log.txt
Records: 2000 Deleted: 0 Skipped: 0 Warnings: 2672
1) if your filename is an absolute path, the server will start searching for the file from the root directory.2) If your filename is a relative path, the server will start
# Common basic operations for Structured Query Language in MySQL:/* DDL (Data Definition Language) Data Definition Language */# Create a database:Create database 'database name' charset utf8;# Delete a database:Drop database 'database name ';#
2. Aggregate functions must be used
For example, a table
The average score is calculated using an aggregate function.
3. grouping, sorting, filtering again, and several execution orders
4. query as required in the preceding
Since LZ is like sorting out how to use Kettle to incrementally update a table,
You can also update other tables in the database.
The first method is to use a trigger, that is, to add an SQL script step between the corresponding hop and then perform
Select can take alias, delete cannot.
1. When you use mysql to perform the delete from operation, if the FROM Statement of the subquery and the update/delete object use the same table, an error will occur.
Mysql> delete from tab1 WHERE col1 =
Network Environment:
HOST: Win7
VirtualBox 4.1.4 + Ubuntu 11.10 server 64bit
When the host uses a network cable, the client uses the Atheros AR8131 PCI-E Gigabit Ethernet Controller in Bridged Adapter mode to access the Internet.
When the host
When I was working on a project, I encountered a scenario where there were two tables with a data volume of around million. Now I want to merge these two tables into one table in the production environment, I originally wanted to use the SQL
The solution is as follows:
1. Set the compatibility level to 90 (2005 to 90)
USE [master]
GO
EXEC dbo. sp_dbcmptlevel @ dbname = 'database name', @ new_cmptlevel = 90
GO
Or select the database you want to restore, right-click it, select
If you have never set a root user password for MySQL, the server does not need a password for connection as the root user. However, we recommend that you set a password for each account.
If you have previously set the root user password but forgot
Q: How can I solve the problem of MySQL 5.0.16 garbled characters?
A: The following method can be used to solve the garbled MySQL 5.0.16 problem:
1. Set phpMyAdmin
Language: Chinese simplified (zh-utf-8)
MySQL Character Set: UTF-8 Unicode (utf8
The error message of mysql 1135 is as follows:
SQLSTATE [HY000] [1135] Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug
Solution:
Modify my. ini and add two
Editor: Like our server, the tool is usually used to program logs for 1 MB. If you are not bothered, you can look at the manual method:
1: Delete LOG
1: Detach Database Enterprise Manager-> server-> database-> right-click-> detach Database
2: delete
In general, we use mysqldump to back up the MySQL database and upload it to other backup machines. If the database is large, it may be slow during Backup transmission, so we try to make the backup file smaller.
When writing an automatic backup
Create a stored procedure: dba_WhatSQLIsExecuting
Then execute the stored procedure to view the relevant information.
The execution status during ms SQL Execution to view information such as the currently executing SQL
Which SQL statement is
SQLServer has three keywords that can be used to modify comparison operators: All, Any, and Some. Some and Any are equivalent.Official reference documentsHttp://technet.microsoft.com/zh-cn/library/ms187074%28SQL.90%29.aspxThey act between comparison
What should I do if my website data is too slow to be paged? When using the MySQL database, data query at a large offset is very slow. How can I optimize SQL statements to accelerate paging query?
Tools/raw materials MySQL database Apache (WEB
Solution 1:
Encoding during mysql installation,
Check whether my. ini exists.
[mysql] default-character-set=utf8 [client] default-character-set=utf8 [mysqld] default-character-set=utf8
When creating a table:
DROP TABLE IF EXISTS `Company`;
Char type
The length of the CHAR column is fixed to the length declared during table creation. The length can be any value from 0 to 255. When saving CHAR values, fill in spaces on the right of them to reach the specified length. When the CHAR value
Environment: CentOS 6.3 minimizes the default installation and configures the NIC.
Before installing MySQL, check that the Internet connection is normal to download the installation file.
Use the yum-y update command to upgrade the system to the
1. To optimize the query, try to avoid full table scanning. First, consider creating an index on the columns involved in where and order.
2. Try to avoid using it in the where clause! = Or <> operator. Otherwise, the engine will discard the index
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.