The MySQL InnoDB supports row and table locks, but MyISAM only supports table locks. Now let's talk about MySQL InnoDB's row lock andAs the following table ID is the primary keyTo show the results, we set MySQL autocommit to 0Open two MySQL command
Start the command line first1. Run at the command line:taskkill/f/im Mysqld-nt.exeThe following operations are operating in the MySQL bin directory under some programs, if not configured environment variables, you need to switch to the MySQL bin
Today, when you browse an ASP. NET project, you are prompted with the following error:Could not load file or assembly ' MySql.Web.v20, version=6.9.4.0, culture=neutral, publickeytoken=c5687fc88969c44d ' or one of its dependenciesThe following
Index is the directory of data, can quickly locate the location of the data, index to improve the query speed, but reduce the increase, delete, change the speed, generally in the query frequency is high and low repetition of the column added.Index
First set up two test tablesMysql>desc pay;+-------+---------------+------+-----+---------+----------------+| Field | Type | Null | Key | Default | Extra |+-------+---------------+------+-----+---------+----------------+| ID |int( One) | NO |
Binlog basic definition: A binary log, also a binary log, that records SQL statements that occur to or potentially change data, and is stored in a binary form on disk;Role: MySQL functions similarly to Oracle's archive logs, which can be used to
Write in frontThe previous article describes the MySQL additions and deletions to the operation, this article will introduce the group and order by operation.Series ArticlesMySQL CREATE database, create data tableMySQL's
MySQL replication 1. Build a master corresponding to 1 slave (copy only one database) (1) Planning Network and master-slave server master:10.10.54.86slave:10.10.54.85 (2) host Settings log-bin=
First, installation environmentoperating system:Win7Mysql version:5.6.21Second, the required softwareMysql_installer_community_v5.6.21.1_setup.1418020972.msiThird, the official installationDouble-click mysql_installer_community_v5.6.21.1_setup.141802
General SQL output specifies that the ID needs to be sorted, and the result output above has some uncertainty. Requirements by55,6,5,173,176,174,175,177Output results in the sequential order.The result is sometimes not just reverse order, the
1. Design Principles1) standardization and normalization standardization of data helps eliminate data redundancy in the database. There are several forms of normalization, but the third normal form (3NF) is generally considered to be the best
1. Now take the menu table as an example to create a table Test_menu in the database.2. Create some instance data in the tableNow the menu level for Cd_1 and Cd_2 for a first-level menu, Cd_1 is divided into cd_1_1 and cd_1_2 two level two menu, Cd_1
MySQL database: Basic consolidation of DDL statements
The SQL language includes four major programming languages: Data Definition Language (DDL), data operation language (DML), Data Control Language (DCL), and transaction control language.
Data
MySQL database recovery (using the mysqlbinlog command)MySQL database recovery (using the mysqlbinlog command)
1: Enable binlog LoggingModify the mysql configuration file mysql. ini and add it under the [mysqld] node.Copy the Code as follows:
#
MySQL settings allow users to log on remotely
The basic system was deployed on the server yesterday. Everything is normal.
However, the developer needs to remotely Access the MySQL database on the server and finds that the root remote connection
Mysql database query-dynamically assemble mysql
To implement dynamic SQL statement Assembly, we can create a string in the host language, and then determine whether the check boxes are selected one by one to add SQL statement fragments to the string.
Problems encountered during Mysql trigger usage
[1054] Unknown column 'xxxxx' in 'where clause'
Drop trigger if exists 'delete _ actdata '; create definer = 'xxxxxx' @ 'localhost' TRIGGER 'delete _ actdata' BEFORE delete ON 'actdata' for each
MySQL forgot password
For root Password: Method 1: MySQL provides command line parameters for skipping access control and starts the MySQL server by using the command line: safe_mysqld -- skip-grant-tables & you can skip MySQL access control. Anyone
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