engine, even if a table with an engine cannot reference a foreign key with a table that uses a different engine;
2) The following discussion is about updating tables, deleting tables, and renaming the contents of tablesthe following is transferred from: http://blog.163.com/zhangjie_0303/blog/static/99082706201191911653778/ALTER table: Add, modify, delete table columns, constraints, and other table definitions.View columns: DESC table name; ALTER TABLE T_book Rename to BBB; Add columns: ALT
and still be able to change the table in the external query. In that case, the view will be materialized, so you can't actually select from the table in the subquery and change it at the same time (this is another reason you intend to force MySQL to use the temporary table algorithm by specifying the algorithm = temptable keyword in the
MySQL view of the study notes, learned to Tarena gold medal lecturer Heshan, Golden Dawn technology company technical Director Chalimoux Course notes synthesis.View and graphical tools1. definition of viewsA view is a table that is exported from one or more tables and is a virtual existence. A view is like a window (a
database system extracts the corresponding data from the original table.
The data in the view depends on the data in the original table. Once the data in the table changes, the data displayed in the view also changes.
Role of a view
1. to simplify the operation, you can define a view for frequently used queries so t
Tags: GES environment 3.2 Special increase in efficiency 2.3 Two kinds of nbsp LTEObjective Before you introduce the query statement, feeling write is also good, like can go to see. What we are sharing today is the view in MySQL. View: A view is a virtual table formed by the results of the query. Non-temporary table, a
/Usr/share/doc/MySQL-server-community-5.1.22/my-medium.cnf/Usr/share/doc/MySQL-server-community-5.1.22/my-huge.cnf
2. Copy small. cnf, my-medium.cnf, my-huge.cnf, one of the my-innodb-heavy-4G.cnf to/etc, named my. cnfCp/usr/share/mysql/my-medium.cnf/etc/my. cnf
3. modify my. cnfVi/etc/my. cnfAdd under [client]Default-character-set = utf8Add under [mysqld]Default
In the lamp structure of the Web site development process, sometimes we need to understand the MySQL server status information, such as the current MySQL startup running time, the current MySQL client session connection number, the current MySQL server execution of the slow query number, The current
Label:MySQL View database command command to open a database mysql> use MySQL Database changed Commands to view the database mysql> show databases; View detailed structure of a data table Mysq
/mysql restartShutting down MySQL [OK] Starting MySQL. [OK] [root @ bogon ~] # Mysql-u root-pEnter password: Welcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 1 Server version: 5.1.22-rc-communit
MySQL's default encoding is Latin1, does not support Chinese, to support the noon need to change the database's default encoding to GBK or UTF8.
1, need to log in as root user can view the database encoding (as root user login command: >mysql-u root–p, after two times the root password), view the encoding of the database command is:
>show variables like
system will automatically add suffixes (such as. 00001,. 00002), in the form of a MySQL environment to execute the statement mysql> Flush logs; or perform #mysqladmin flush-logs or #mysqladmin refresh via the Mysqladmin management program
These logs can be started in a mysqld_safe way to start the database, followed by option parameters, can also be configured in the configuration file, recommended a seco
Tags: root profile _id write files file rom argument query log httpMySQL View database operation log the query log for MySQL logs all requests for MySQL databases. Whether or not these requests have been properly executed. The default file name is Hostname.log. By default, the MySQL query log is turned off. Production
The default encoding of MySQL is Latin1, which does not support Chinese characters. To support Chinese characters, you need to change the default encoding of the database to gbk or utf8, which is really troublesome, however, this article provides a detailed modification tutorial. If you are interested, do not go away. I hope this article will help you.
The default encoding of MySQL is Latin1, which does not
Recurring problem
A few days ago because someone deleted the records in the database, today shut down the remote access function of the database, received a development report today, said that the user specified as a definer (' air ' @ '% ') does not exist error, They locate a view that cannot be accessed. Using experiments to recreate their situation.
cause Analysis
Because the view is created using the
view v_xs as select * from xs; (created under xsdb) | xsdb. xs (view of the table in xsdb created under the flying xsdb database) Description: ● column_list: to define a clear name for the column in the view, you can use the optional column_list clause, list the names of columns separated by commas. The number of names in column_list must be equal to the number
The first approach: use the MySQL command to viewMySQL built-in directly to see the status can see the system common information, such as the following example:
Copy Code code as follows:
1.$ Mysql-u Root-p
2.mysql> s
"Threads:2 questions:224857636 slow queries:229 opens:1740 Flush tables:1 Open tables:735 queries per second avg:13 7.566
$
work. ID=0 rows affected (0.03 sec)I have this name, salary and address as a field modified viewIf it is true, it is very convenient for thieves.Update viewUpdate view refers to inserting, updating, and deleting data in a table using a view as a virtual table, where wood has dataWhen you update through a view, you are converting to the base table to updateMySQL>
Tags: MySQL database viewDAY05 MySQL Database viewFirst, view overview:A view is a virtual table that is a table from one or more tables in a database that is defined by a query. There is only a definition of the view in the database, and there is no related data, and the da
Enable and view mysql binlog in Window, mysqlbinlog
Check whether binlog is Enabled:
Win + r => cmd => connect to mysql => show variables like 'Log _ % ';
mysql> show variables like 'log_%';+---------------------------------+-------------+| Variable_name | Value |+------------------------------
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.