MySQL Learning note 02MySQL cluster related concepts

1.1.1.MySQL cluster basic framework This article describes the MySQL cluster refers to the MySQL cluster based on Ndbcluster . A MySQL cluster contains one or more Management node,Data node , and SQL Node . Management Node Management Node: For the

Specific view of the library, and the size of the table under MySQL instance

1.mysql  View instance, the size of each library Select table_schema, concat (truncate (SUM (data_length)/1024/1024,2), '   MB ')  as data_size,concat (Truncate (SUM (index_length)/1024/1024,2), ' MB ')  as index_sizefrom

MYSQL--INNODB Log Management

InnoDB Log Management mechanism:1, InnoDB storage engine is to support the transaction acid characteristics, this theory is basically a relational database related data recovery prototype design, including log, rollback, redo, concurrency control,

MySQL Series (ii)

MYSQL Transaction Directory MySQL series (i): basic knowledge Summary MySQL series (ii): MySQL transaction MySQL Series (iii): Index What is a transaction (transaction) Ensure that the batch operation is either fully

MySQL character function

1.concatSelect as from String_test;Concat is to concatenate multiple strings together, where you can specify a delimiter (in fact, the string '-' is output to a false separation effect), as follows:Select concat (first_name,'-' as from String_test;

MySQL Execution plan

Introduction:In the actual project development, because we do not know what is happening in the database when the actual query, database software is how to scan the table, how to use the index, so we can perceive onlyWhen the SQL statement runs, the

Install MySQL under CENTOS7

CentOS 7 's Yum source does not have the Mysql-sever file installed in MySQL, which needs to be downloaded from the official website. The address is: https://dev.mysql.com/downloads/repo/yum/, Then select the package name of the original address

MySQL Modify the database root password method

Method 1: Use the Set password commandMysql-u Rootmysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass ');Method 2: Use Mysqladminmysqladmin-u root Password "Newpass"If Root has already set a password, use the following

Mysql,mysqldump Command Import Export table structure or data

At the command line MySQL data export has a very good command mysqldump, it has a lot of parameters, you can view:MysqldumpMost commonly used:Mysqldump-uroot-pmysql databasefoo table1 table2 > Foo.sqlThis allows the database Databasefoo table Table1,

MySQL Installation and configuration tuning

First, installationApt-get install mysql-server need to set the account passwordApt-get Isntall mysql-clientApt-get Libmysqlclient-dev2.sudo Netstat-tap | grep MySQL to see if the installation was successful[Email protected]:~# netstat-tap | grep

For information about creating a database server and MySQL pilot database

1. Copy Database files:SCP glloans_haierdb_20170726.sql.gz [Email protected]:/root2. Unzip the databaseGunzip glloans_haierdb_20170726.sql.gz3, login data MySQL database, this no password, so must log in:Mysql-ucmis_haier4. See what databases are

MySQL Query optimization

Poor query performance is due to access to too much data All columns are returned when a multi-table connection is made select * from sakila.actor inner join sakila.file_actor using(actior_id)inner join sakila.film using(film_id)where

MySQL Query Statement Exercise 1

1, create a score table, the fields include: Student name, language scores, math scores, English scoresInserting more than one data into a table;Inquire:(1) Check all students ' math scores and overall score(2) All students are queried for their

JAVA Connection MySQL database operation

String Strcon = "JDBC:MYSQL://122.114.147.148:3306/DDD";//Connection StringString struser = "Database user name";//String strpwd = "password";//"SYSTEM.OUT.PRINTLN ("Connecting Database ..."); Try{//Monitoring ExceptionsClass.forName

MySQL explain detailed

The use of the explain command and the relevant parameter description.Https://dev.mysql.com/doc/refman/5.7/en/explain-output.htmlEXPLAIN Output Columns Column Name Description Id Executes the number

MySQL Database maintenance

rar

example Database Server IP 192.168.2.170 User name Root Password 123456 Database name submetering Backup copies

MYSQL PL/SQL

a set SQL statement Set, fast, only the first execution needs to be compiled and optimized steps, subsequent calls can be directly executedS Ample:DROP PROCEDURE IF EXISTS ' Proc_adder ';DELIMITER &&CREATE definer= ' root ' @ ' localhost ' PROCEDURE

MySQL master-slave replication via Gtid mode

1, create the replication user, with replication slave permissions, can ensure that slave master data synchronization past master: #grant replication Slave on * * to ' rep ' @ ' 192.168.10.100 ' identified by ' 123456 '; 2, open Gtid need to enable

Mysql-2-database base, mysql-2-Database

Mysql-2-database base, mysql-2-Database (1) mysql is a small relational database management system. (2) mysql is a fast, multithreading, multi-user, and robust SQL database server. Compared with other database management systems, mysql has the

C ++ operates mysql Databases and mysql Databases

C ++ operates mysql Databases and mysql Databases This afternoon I had nothing to do. The team lead familiarized me with connecting C ++ to the database and operating on it. The whole process was still smooth. In order to remember and use it for the

Total Pages: 3233 1 .... 1344 1345 1346 1347 1348 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.