This article summarizes many common MySQL commands on the network and describes the process in detail.
1. Connect to MySQL
Format: mysql-h host address-u user name-p User Password
1. Example 1: connect to MYSQL on the local machine.
First, open the
Introduction to IntroductionThe new MySQL 5.0 feature tutorial is intended for old MySQL users who need to know the new features of MySQL 5.0. Simply put, I introduced the "Stored Procedure, trigger, view, and Information Architecture View". I would
Before starting the OEM, configure the Oracle management server as follows:1. Open the Enterprise Manager Configuration Assistant2. configure a local Oracle management server3. Then, follow the instructions in sequence.After the configuration, a
Q: How can I solve the problem of too many mysql connections?A: The system cannot connect to the database. The key lies in two data points:1. Maximum number of connections allowed by the database system max_connections. This parameter can be set. If
Insert a large amount of data into a table in the MySQL database:
Usage:
DELIMITER $USE 'macross _ wudi '$Drop procedure if exists 'test' $Create procedure 'test '()BEGINDECLARE I INT DEFAULT 333;DECLARE j int default 333;WHILE (I Replace into
When I first arrived in the morning, my friend said that the database could not be started. Remote Start Up, prompt
ORA-00600: Internal error code, parameter: [kcratr1_lastbwr]
Read alert *. log, which is similar to this information. The tracing
There are many methods to migrate the database, and RMAN is commonly used for migration. Using RMAN to migrate a database belongs to the physical backup and recovery scope of the database. The database information is a complete image throughout the
MySQL uses connector C/C + To Read Binary fields:
Use getString
Vector vec;
While (pResultSet-> next ())
{
String str = pResultSet-> getString ("data ");
Vec. insert (vec. end (), str. begin (), str. end ());
}
Use getBlob
Vector vecALL;
1. analysis table and index (analyze does not rebuild the index)
Analyze table tablename compute statisticsEquivalent to analyze table tablename compute statistics for table for all indexes for all columns
For table statistics exist in views:
I believe that you will often encounter this kind of requirement. You can use the id/name of a staff member to obtain a list of all its employees (including non-subordinate employees, it may take a while to implement this function using java, but it
In conjunction with this article on connecting PHP to the Oracle database, this time, combined with the rrdtool drawing tool, to draw some custom monitoring charts, although Oracle's EM has been perfect, however, you may not be able to monitor
I learned the update statement today and the $ push modifier. The example in the book makes me puzzled. The first two parameters of update () are query and new documents. The example in the book is as follows. Find the Key in the set as Gende rather
Trigger execution sequence
Combined trigger
Enable and disable triggers
Trigger execution sequence
Oracle allows more than one trigger to establish the same time point, but it never guarantees their execution order. The Oracle 11g trigger syntax now
1. view the size of all Oracle tablespaces
Select tablespace_name, sum (bytes)/1024/1024 from dba_data_files group by tablespace_name;
2. The size of the tablespace not used in Oracle
Select tablespace_name, sum (bytes)/1024/1024 from
The customer database encountered a ORA-600 (504) error where 5th of the error parameters were row cache objects.
Previously I encountered a related latch for a shared pool:
Error message:
Wed Apr 18 06:03:41 2012
Errors in
1 Requirement
Send the important database AWR to the DBA mail on a regular basis every day. After receiving the AWR mail, the DBA simply checks whether the database has abnormal waiting tasks and abnormal SQL statements, try to avoid analyzing
If the Linux Kernel Parameter settings are inappropriate or unreasonable, Oracle may also encounter errors, such10 GB:SQL> startup;ORA-27102: out of memoryLinux-x86_64 Error: 28: No space left on device11g RAC error:SQL> startup;ORA-00845:
Two Methods for Oracle rename data files
Note: red indicates the original path. Purple indicates the target path.
First
Alter tablespace users rename datafile '=' '***';
This method requires the database to be in the open state and the tablespace to
Reprinted please indicate the source: http://blog.csdn.net/guoyjoe/article/details/30615151
The experiment process is as follows:
1. Create the table guo_test1
gyj@PROD> create table guoyJoe_t1(id int,name varchar2(10));Table created.gyj@PROD>
1. Use imp/exp to perfectly migrate 10 GB (Table + data) to 11 GB. Everyone on Earth knows. 2, 11g (Table + Data) Perfect migration to 10g, the following solution: 1. Use the expdp command to back up data on the 11g ServerExpdp userid =
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