Mysql Common Show commands

Show tables or show tables from database_name or show database_name.tables;Explanation: Displays the names of all tables in the current databaseshow databases;Explanation: Displays the names of all databases in MySQLShow Processlist;Explanation:

MySQL Transaction test

Public decimaltransactiontest () {decimalv =0;using(Mysqlconnection con =Newmysqlconnection (connectionString)) {con. Open ();using(Mysqltransaction trans =con. BeginTransaction ()) {Try{using(Mysqlcommand cmd =NewMysqlcommand ("Select Debit_balance

Shell---mysql backup

#!/bin/bash#file: mysql_backup.sh#date 2016-1-9backdes=/data/msyql_back/' date +%Y-%m-%d '       //Create the directory that holds the backup data backname= ' date +%y-%m-%d '      //backup name, You can omit the database=test      //backed up

MySQL-Master-slave replication and read-write separation principle

1.MySQL master-slave copy and read/write separation principleFirst, let's look at a diagram: Operations that affect the MYSQL-A database are written to the local log system A after the database is executed.Suppose that the real-time

MySQL Incremental backup script

#!/bin/bashbakdir=/home/webdata/mysqlbackup/mysqlbackup_log/bindir=/home/mysql/var/Logfile=/home/webdata/mysqlbackup/mysqlbackup_log/bak.logBinfile=/home/mysql/var/mysql-bin.indexMysqldump-udearedu-p--lock-tables--flush-logs--master-data=1 vkt

Source installation MySQL Database

Source installation MySQL DatabaseStarting with MySQL version 5.5, MySQL source installation started using CMake.Baidu Cloud Disk:http://pan.baidu.com/s/1bnL31c7Download CMake https://cmake.org/files/Download ncurses

Python Learning notes: accessing the MySQL Database

First, installationThe first thing to do is download the appropriate Python MySQL package.Can be downloaded under the https://pypi.python.org/pypi/MySQL-python/1.2.5 link,For Windows systems, there will be EXE installation packages that, after

MySQL--remote access to MySQL's solution

1, change the table method may be your account is not allowed to login from the remote, only in localhost. This time, as long as the computer on the localhost, log in to MySQL, change the "MySQL" Database in the "User" table "host", from "localhost"

How to import and export data from a MySQL text file

MySQL writes data typically with INSERT statements, such asThe code is as follows:INSERT into person values (Zhang San, 20), (John Doe, 21), (Harry, 70) ...;But sometimes in order to insert large quantities of data or exchange data more quickly, you

MySQL face test

The following is a detailed description of the issues that need to be noted in writing the WHERE clause of some SQL statements. In these where clauses, even if there are indexes on some columns, because poor SQL is written, the system cannot use the

The three paradigms of the operation of MySQL tables

1, the basic concept of MySQL tableA library is a container for storing tables, a container for storing data.The table is made up of rows and columns, and in the database, we define the properties of the column. As the number of data increases,

MySQL Remote connection Configuration

The operation is very simple, just 5 steps, as follows:1. Go to MySQL:/usr/local/mysql/bin/mysql-u root-p2. Use the MySQL library:Use MySQL;3. View the user table:SELECT ' Host ', ' user ' from user;4. Update the user table:UPDATE user SET ' Host ' =

"MySQL" Some optimizations on io/memory

Here is the MySQL Ver 14.14 distrib 5.6.19, for Linux (i686) using Editline WrapperOne, MySQL directory fileIBDATA1: System table space contains data dictionary, rollback log/undolog, etc.(Insert buffer segment/double write Segment/rollback

MySQL stored procedures

DELIMITER $$CREATE definer= ' root ' @ '% ' PROCEDURE ' pro_cre_childlist ' (in Rootid varchar (+), in ndepth int, Vdesc varchar (45))BEGINDECLARE done INT DEFAULT 0;DECLARE b varchar (50);DECLARE cur1 CURSOR for SELECT loginname from users WHERE

How to modify MySQL database when you forget your password

1. Open the folder where Mysql.exe and Mysqld.exe are located, copy the path address2. Open the cmd command prompt and go to the folder where the previous step Mysql.exe is located. 3. Enter the command mysqld--skip-grant-tables enter and skip the

[Mysql] I/O/memory optimization, mysqlio Memory Optimization

[Mysql] I/O/memory optimization, mysqlio Memory Optimization Mysql Ver 14.14 Distrib 5.6.19, for Linux (i686) using EditLine wrapperI. mysql directory files Ibdata1: The system tablespace contains data dictionaries, rollback logs, and

Follow these steps to upgrade mysql version 5.5.x to 5.6.x: 5.5.x5.6.x

Follow these steps to upgrade mysql version 5.5.x to 5.6.x: 5.5.x5.6.x The general steps are as follows: Add the skip-grant-tables parameter to the configuration file, upgrade basedir to a new version, start mysql, run the command mysql_upgrade to

MySQL prompts that The InnoDB feature is disabled and InnoDB must be enabled. featureinnodb

MySQL prompts that The InnoDB feature is disabled and InnoDB must be enabled. featureinnodb This article analyzes The MySQL prompt that The InnoDB feature is disabled needs to enable The InnoDB solution. We will share this with you for your

Improve database schema

Improve database schemaHibernate reads the ing metadata of your java model class and generates schemaDDL statements. You can export them to a text file, or execute them directly in the database when inheriting the test run. Because most database

[Mysql] about the checkpoint mechanism, mysqlcheckpoint

[Mysql] about the checkpoint mechanism, mysqlcheckpointI. Introduction Think about this scenario: If the redo log can be infinitely increased and the buffer pool is large enough, you do not need to refresh the new version of the page in the buffer

Total Pages: 3233 1 .... 2682 2683 2684 2685 2686 .... 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.