MyISAM and InnoDB are the two most important types.
MyISAM:
Storage files:
Data File:. MYD
Index file:. myi
Features:
Table lock, does not support transactions, supports full-text indexing, and supports indexing of text and blob types
Data
MyISAM
MyISAM is the default storage engine of MySQL. MyISAM provides a good solution to the performance and features. Features include full-text indexing, compression, and GIS functions. MyISAM does not support transactions and row locks.
Storage
Document directory
Data Table portability
Mysql Data Tables support six types: bdb, heap, isam, merge, MyISAM, and innobdb.
These six types are divided into two categories: Transaction-safe, including bdb and InnoDB, And the other are in the
Description: This document is translated/collated in Hive Official document https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization# Sqlstandardbasedhiveauthorization-objectprivilegecommands.status of authorization
The commands commonly used in the MySQL database process are listed below:
use database name : Select the MySQL database you want to manipulate, and all MySQL commands are only for that database after using this command.
SHOW DATABASES:
PHP Technology Group 170855791MySQL5.5 later uses the InnoDB storage engine by default, where InnoDB and BDB provide transaction-safe tables, and other storage engines are non-transactional security tables.To modify the default engine, you can
Below is a PHP database backup source code, you can also according to their own needs to modify.
Backing up a database$host = "localhost";$user = "root"; Database account$password = ""; Database Password$dbname = "MySQL"; Database nameThe account
Reasons for the failure of spring transactions 5 major causes
If MySQL is used and the engine is MyISAM, the transaction will not work because MyISAM does not support transactions and can be changed to InnoDB
If you are interested in
In fact, we used only the MySQL tutorial show usage in fact one, in the MySQL simple operation as follows
Show Table
This will show all the tables, but in the PHP tutorial, we'll look at the following code
$server = ' localhost ';
$user = '
The example of this article describes the PHP implementation of MySQL database backup and restore classes. Share to everyone for your reference. The specific analysis is as follows:
This is a very simple use of PHP to back up the MySQL database of
PHP Implementation database backup exported to SQL
1. First you have to get the tables in the database, the function mysql_list_tables (), and then you can save all the table names you get to an array.
2. Show create table name can get table
The company's database storage engine was all MyISAM, data volume and access is not very large, so there is no problem. However, the recent occurrence of the MySQL data table is often locked, directly caused the user to connect the site timeout and
MySQL logical architecture:
Concurrency control: implemented by locks
Read Lock: Also called shared lock, read lock does not block each other. A a,b,c,d can read the table after the lock table but cannot write the table.
Write Lock: Also called
Show tables or show tables from database_name; Displays the names of all tables in the current database
show databases; Displays the names of all databases in MySQL
Show columns from table_name to database_name; or show columns from
Note: Backup files and binary log files cannot be placed under the same disk as MySQL
Node 1
1, Node 1 modify the MySQL configuration file, open binary log Save
Here I put the binary log in the/data/mysql/directory,/data/is another LVM disk I
MySQL InstallationInstall MySQL on Linux/unixThe Linux platform recommends the use of the RPM package to install Mysql,mysql AB provides the following RPM package download address:
Mysql-mysql server. You need this option unless you only want
This article describes the MySQL Change engine (Innodb,myisam) method, share for everyone to reference. The implementation methods are as follows:
The MySQL default database engine is MyISAM, does not support transactions and foreign keys, and can
1.default_storage_engine
If you're already using MySQL 5.6 or 5.7, and your datasheet is InnoDB, then you've set it up. If not, make sure to convert your table to InnoDB and set Default_storage_engine to InnoDB.Why? In short, because InnoDB is the
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.