Install MySQL in Ubuntu
Sudo apt-get install mysql-server
This should be very simple, and I don't think there is much problem with the installation, so I will not talk about it much. Let's talk about the configuration below.
Configure MySQL
Note: In
It is a gradual process to collect my own understanding of Mongodb's advantages and disadvantages, or to reference or extract from other reliable online files, it also expands with my understanding of Mongodb.
(1) Mongodb limitations
1. Uneven
The name of the table generated by PowerDesigner is enclosed in quotation marks as follows:
/* ===================================================== ======================================= *//* Table: "EPPD_ B _BILL_INTERCALATE "*//* ================
Crs_stop-all
Crs_stop-all
When crs_stop-all is executed in RAC, the system prompts that some services cannot be stopped. When crs_stat-t is used to check the status, the state of the services that cannot be stopped is UNKNOWN,The service cannot
The following error is reported when the standby uard standby database starts a recover:ORA-16014: log 4 sequence #1 not archived, no available destinations
Solution:First lookSQL> show parameter db_recovery
NAME TYPE VALUE---------------------------
1) SQL * Plus login. SQL FileWhen you use SQL * PLUS to log on, SQL * PLUS reads and executes the script in the following order:· $ Oracle_home/sqlplus/admin/glogin. SQL· Login. SQL in the current directory, or set an environment variable SQLPATH
When you access a table, an error similar to the following occurs:ORA-01578: Oracle data block upted (file #6, block #344)ORA-01110: data file 6: 'd: \ ORACLE \ PRODUCT \ 10.2.0 \ ORADATA \ ORCL \ TEST. DBF'The reason is that the data file contains
MapReduce can be used in MongoDB for complex aggregate queries.
Map and Reduce functions can be implemented using JavaScript.
You can use db. runCommand or mapReduce command to execute a MapReduce operation:
Db. runCommand (
First, the experiment environmentTwo Linux servers with MySQL installed can be YUM installed, Binary packages installed, or source code packages compiled. Then, the master-slave synchronization of the two MySQL servers is realized, how to Implement
CurrentMongoDBComplex dataStatisticsMapReduce is required for computing, including group by queries that are commonly used in SQL. It is troublesome to write a reduce statement. In MongoDB2.1, a new data statistics computing framework will be
The requirements are as follows:
1. There is an sms_info table in database mydata1. The record format is as follows:
+ ----------- + ---------------- + ------ + -----
| Field |
+ ----------- + ---------------- + ------ + -----
| Id | 12345
Find something to do. After this project was completed, I found that on-site testers generally did not grasp the SQL statements at the front-end (that is, they clicked the operations on the front-end interface and then went to the database to find
Multi-row function Aggregation FunctionExecution sequence:TName -- where -- group by -- having -- order by (select)
The alias in the current clause cannot appear in the where clause, nor can the aggregate (Group) function be used.
When clustering
Character TypeASCIICHRLOWERUPPERINITCAPCONCATSUBSTRLENGTHINSTRTRIMDumpLpadRpadREPLACE ASCII ('characters ')Returns the ASCII value of a character.Idle> select ASCII ('A') from dual;ASCII ('A ')----------97
Idle> select ASCII ('A') from dual;
ASCII ('
Oracle reads the SQL language used to view tablespaces.
SELECT UPPER(F. TABLESPACE_NAME)"Tablespace name",
D. TOT_GROOTTE_MB"Tablespace size (MB )",
D. TOT_GROOTTE_MB-F. TOTAL_BYTES"Used space (M )",
TO_CHAR
The amount of data in a table in the database is large at work, which is a log table. Under normal circumstances, there will be no query operation, but if there is not much data in the table sharding, it takes several minutes to execute a simple SQL
Oracle peer groupingUse the sys_connect_by_path (column, '') function as an example ^.Table Structure: create table test (bookid char (3) not null, author varchar2 (10) not null); insert into test values ('001', 'jack '); insert into test values ('00
In general, the foreign key of the Oracle sub-table needs to be indexed,
If no index is added to the foreign key, modifying the parent table will lock the child table.
1. Update the primary key of the parent table, and the child table will be
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