During program debugging, one way is to start from the first line, which is very hard (for example, the program source files are too many or compiled or encrypted ). The other method is to check from the back. The last write is the DB, so we start
After Mysql is installed in RedHat Linux, the default encoding is as follows:
(Run the following command to view the encoding method)
# Mysql-u root-p
Enter password:
Mysql> show variables like "character % ";
Encoding display:
+ --------------------
There are three standard LOOP methods in MySQL stored procedure statements: while loop, LOOP, and repeat loop. There is also a non-standard loop method: GOTO, but it is best to use this loop method, it is easy to cause program confusion, here is a
1. When to consider performance issues.
Performance considerations should run through all stages of System Construction: system design, database design, code development, and system O & M.
1. system design phase:
System Architecture: Layer 2, Layer 3
I. Software PackagesA) sqlite-autoconf-3070400.tar.gz
Ii. Installation Steps
A) tar zxvf sqlite-autoconf-3070400.tar.gz
B) cd sqlite-autoconf-3070400
C)./configure -- prefix =/usr/local/sqlite
D) Make
E) Make install
Iii. SQLite3
MySQL installed in the rpm package in Linux does not install the/etc/my. cnf file,
As to why MySQL can be started and used normally without this file, there are two points,
The first statement is that my. cnf is only a parameter file during MySQL
1 Swingbench
1.1 Overview
This was developed by an Oracle UK employee on the basis of a abandoned project. The current stable version is 2.2, the latest version is 2.3, based on JDK1.5. This tool is free of charge and can be freely downloaded from
Create the following table in PostgreSQL and insert the following data:
Create table "TTT "(
ID varchar (32) primary key not null,
NAME varchar (128) NOT NULL
);
Create unique index TTT_NAME_IDX ON "TTT" (NAME );
Insert into "TTT" values ('1', 'A ');
Ora-01450 is an error that may occur during index maintenance. First, let's take a look at the relevant information of 01450 through oerr:
SQL> ho oerr ora 0145001450,000 00, "maximum key length (% s) exceeded"// * Cause:// * Action:
Haha, Oracle
During work, we often observe the space release and Application Performance Improvement brought about by index reconstruction. Space release is easy to understand and measure. How much will index reconstruction affect the performance of applications?
Solve the libpthread. so.0 problem in Oracle 10gRAC InstallationI. Problem
The CRS of 10.2.0.1 encounters the same problem in the following situations on linux5:1. rootOracle CRS stack installed and running under init (1 M)Running vipca (silent) for
Group by function of Oracle
The test process is as follows :--- Rollup: Details and summary of employees' salaries in each department for reference.Select t. dept_id, t. dept_name, sum (t. salary)From qcfang. test1 tGroup by rollup (t. dept_id, t.
Introduction:
Database suddenly reported: ORA-01654: unable to extend index BO. INDEX_indexname by 311072 in tablespace error. There is only one reason to check the Internet, which is to increase the size of tablespace. because the tablespace of the
Trigger
There are two common types: Row Trigger and Statement Trigger)
There are also: Instead of Trigger and Event trigger.
Example 1-Row Trigger:
Create or replace trigger client afterinsert on tt1 for each
MySQL master-slave synchronization setup
Master database:
IP: 192.168.18.204
Edit/etc/my. cnf file to open log-bin
Vim/etc/my. cnf
Log-bin =/application/mysql/data/mysql. bin
Server-id = 1
View:
Log_bin should be in the on status
[Root @
I. Principle of MySQL master-slave Replication
What is mysql master-slave Replication
Mysql supports several different forms of replication, such as single bidirectional, chained cascade, and asynchronous replication. During the replication process,
Remote settings of MySQL Databases in Linux
1. Start the service and log on[Root @ localhost ~] #/Etc/init. d/mysqld restartStopping mysqld: [OK]Starting mysqld: [OK][Root @ localhost ~] # Mysql-u root-pEnter password:Welcome to the MySQL monitor.
The current status is dg1 as the master database, and the slave database is dg2.First check the status of the Master/Slave database:Dg1
SQL> select name, database_role, OPEN_MODE, SWITCHOVER_STATUS from v $ database;DATABASE_ROLE OPEN_MODE
Lock table read lock
If a thread acquires a read lock on a table, the thread and all other threads can only read data from the table and cannot perform any write operations.
Lock tables user read; // read the locked table
Unlock tables; //
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