What is MySQL’s default ON DELETE behavior?

Yes, it is correct: NO ACTION: […] InnoDB rejects the delete or update operation for the parent table. RESTRICT: Rejects the delete or update operation for the parent table. Specifying RESTRICT (or NO ACTION) is the same as omitting the ON DELETE or ON UPDATE clause. […] Apparently NO ACTION and RESTRICT are synonymous. Additionally, … Read more

Fulltext Search with InnoDB

Along with the general phasing out of MyISAM, InnoDB full-text search (FTS) is finally available in MySQL 5.6.4 release. Lots of juicy details at https://dev.mysql.com/doc/refman/5.6/en/innodb-fulltext-index.html. While other engines have lots of different features, this one is InnoDB, so it’s native (which means there’s an upgrade path), and that makes it a worthwhile option.

mysqldump exports only one table

try this. There are in general three ways to use mysqldump— in order to dump a set of one or more tables, shell> mysqldump [options] db_name [tbl_name …] a set of one or more complete databases shell> mysqldump [options] –databases db_name … or an entire MySQL server—as shown here: shell> mysqldump [options] –all-databases

Bogus foreign key constraint fail

On demand, now as an answer… When using MySQL Query Browser or phpMyAdmin, it appears that a new connection is opened for each query (bugs.mysql.com/bug.php?id=8280), making it neccessary to write all the drop statements in one query, eg. SET FOREIGN_KEY_CHECKS=0; DROP TABLE my_first_table_to_drop; DROP TABLE my_second_table_to_drop; SET FOREIGN_KEY_CHECKS=1; Where the SET FOREIGN_KEY_CHECKS=1 serves as an … Read more

What is InnoDB and MyISAM in MySQL?

InnoDB and MYISAM, are storage engines for MySQL. These two differ on their locking implementation: InnoDB locks the particular row in the table, and MyISAM locks the entire MySQL table. You can specify the type by giving MYISAM OR InnoDB while creating a table in DB.

Howto: Clean a mysql InnoDB storage engine?

Here is a more complete answer with regard to InnoDB. It is a bit of a lengthy process, but can be worth the effort. Keep in mind that /var/lib/mysql/ibdata1 is the busiest file in the InnoDB infrastructure. It normally houses six types of information: Table Data Table Indexes MVCC (Multiversioning Concurrency Control) Data Rollback Segments … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)