How to enable MySQL database remote connection
Sometimes it is not possible to remotely connect to the MySQL database. You can refer to the following method to solve the problem.
1. log on to the MySQL database of your machine: mysql-uroot-p
Comparison between one-time transaction and CTE data insertion
Sometimes we need to construct some data for testing, as shown below:IF OBJECT_ID (N 't14') IS NOT NULL
BEGIN
Drop table T14
END
GO
Create table T14 (t14_id INT)
GO
DECLARE @ I INT =
Set Oracle 11gR2 to start automatically under CentOS6.5
Set Oracle 11gR2 to start automatically under CentOS6.5
1. Modify ORATAB as the root user (set N to Y ):
[Root @ ora11gr2 ~] # Vim/etc/oratabMytest:/oracle/product/11.2.0/db_1: Y
2. oracle
Imp/exp Oracle Database Import and Export command
Oracle Data Import and Export: imp/expFunction: Oracle Data Import/Export imp/exp is equivalent to oracle data restoration and backup. In most cases, you can use Oracle data import and export to back
Summary of Oracle archive logs
1. Open archive logs
Sqlplus/as sysdbaSQL> shutdown immediate;SQL> startup mount; # Open the control file instead of the data fileSQL> alter database archivelog; # Switch the database to archive ModeSQL> alter database
Differences between statement and preparedStatement [in jdbc]
① Syntax difference: · Statement is the parent class of PreparedStatement [developer generally uses the latter]· Different SQL statement locations:The usage of statement is as
Restoration Methods for deleting online redo logs of Oracle databases
The online redo log of the Oracle database contains Operation Records of all data in the database. We can use the redo log to perform many operations, such as log
On the design scheme of the Oracle standby Database
Oracle's ADG is needless to say. In terms of storage circles, the storage is changing from passive to active, but in general it is being snatched by software and RAID is snatched by ASM, snapshots
View ASM disk space
You can view the ASM disk space through the operating system or in sqlplus.
[1] view methods in the operating system
[Grid @ db01 ~] $ AsmcmdASMCMD> lsdgState Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB
MySQL Incremental backup script (innobackupex)
1. in the online environment, I sometimes write a simple script for Incremental backup of the MySQL database.
2. Add an automatic task and execute it every hour or shorter.
#! /Bin/sh
# Author RuM
#
Build an environment for Python3.3 accessing Oracle 11gR2 on CentOS6.3
Build an environment for Python3.3 accessing Oracle 11gR2 on CentOS6.3
View the built-in python path and version of CentOS[Root @ oracle11g ~] # Which python/Usr/bin/python[Root @
Migrate MySQL database to MariaDB on Ubuntu 15.10
MariaDB is the best alternative to MySQL databases. Since Oracle's acquisition of SUN, the open-source community believes that Oracle has never been very popular with MySQL. It is true that MySQL, as
How to configure the world's smallest MySQL Server
Configure the world's smallest MySQL Server-how to install a MySQL server on an Intel Edison control panel.
Introduction
In my recent blog post on IOT, messaging, and MySQL, I showed if the Particle
Oracle tracks common internal event numbers
Oracle internal event numbers are often used to track the system status. How to use these internal event numbers requires events and experience. Only these commonly used internal event numbers are recorded
MySQL multi-master and One-slave Synchronization
Test preparation: host A and host B are the primary IP addresses 192.168.131.129 and 192.168.131.130, and host C is the slave server. Configure MySQL multi-instance on the slave server with the IP
MySQL full index scanning bug
1 Introduction
When checking the slowlog of a Business Database, a slow query is found. The query time is 1.57 s. Check whether the where condition field in the table structure has a correct composite index. If it is
Using innobackupex to back up a single MySQL database
Purpose
Using innobackupex to back up a single MySQL database
Environment
OS: CentOS 6.6 32bit
Introduction
Official Website: https://www.percona.com/
Https://www.percona.com/downloads/XtraBackup/
SQL statement used by MySQL to query duplicate table data
MySQL queries duplicate data in a table. For example, to query records with duplicate bar codes in the table, the SQL statement is as follows:
SELECT GUIDE_BARCODE FROM checker_barcode
SQL SERVER cannot modify the table structure or column type.
When using table structure design in SQL SERVER:
Note: you cannot save the changes. You must delete and recreate the following tables. You have made changes to tags that cannot be
Cross join usage in T-SQL (semi-translation), t-sqlcross
Suddenly I found a very hanging link. Let's take a look at what the database should do. be timid and cautious: DBA work content !!!!
Today I will translate an article on T-SQL, this article
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