Quantcast
Channel: MySQL Forums - InnoDB
Browsing all 1954 articles
Browse latest View live
↧

Possible constraint creation (4 replies)

Is there a way to add a constraint between tables that would prevent a record from being deleted from table1 if it exists in table2, but table2 does not have to have an entry from table1. Example:...

View Article


RE: Backup and Restore InnoDB database from files (no replies)

Hi, Is it safe to backup and restore the InnoDB database from files by just copying the database files such as ibdata1,ib_logfile0,ib_logfile1, .FRM files from database folder then transfer to new...

View Article


Can anyone help me with the SHOW TABLE STATUS OUTPUT (2 replies)

Hi all, I create a simple table like: Create table test_vchar (id bigint, content varchar(500)); then I inserted 2 rows like (1,'abcde') and (2,'abcde'); then I issued a SHOW TABLE STATUS command,...

View Article

Simple transactions cause deadlocks for each other by UPDATE queries locking...

Hi I have the following lines in my error log (often repeating after a recent code update): ------------------------------------------------------ *** (1) TRANSACTION: TRANSACTION 2959776709, ACTIVE 0...

View Article

abstract data(base) from frm file and ibd file (no replies)

Hello I have frm and ibd files. These are a combination, same file name. Is it possible to abstract data or database from these files, I mean, frm and ibd files? If possible, please instruct me the...

View Article


changing from ext3 to ext4 effect on mysql (no replies)

Hi ok so I have a situation where MySQL was installed in Linux with a ext3 file system , one table (InnoDB) reach the maximum size allowed for ext3 (2 TB) , insert statement gives a "The table 'foo'...

View Article

Finding InnoDB table row Physical location/ Page number (no replies)

Hi, I am new to MYSQL, came from Microsoft SQLServer background. I am looking to find internal page number of a record for a table. In SQLServer, there is a function,...

View Article

MySql insert deadlock (3 replies)

Hi, I encountered a deadlock for a simple insert happens occationally. The insert may be concurrent but I don't understand why below two transactions deadlock. Could anyone explain me? Thanks in...

View Article


how to find out which table is being in transaction (1 reply)

hi all,i find some uncommit transactions on table innodb_trx,how to find out the table which is locking? root@localhost)[(none)]>select 'innodb_trx', -> trx_id, -> trx_mysql_thread_id...

View Article


Problem creating trigger (7 replies)

Hi All. I'm trying to create a trigger that runs before insert. Here's my trigger as written. DROP TRIGGER IF EXISTS onTransactionInsert; DELIMITER | CREATE TRIGGER onTransactionInsert BEFORE INSERT...

View Article

Join seems to return one row twice (3 replies)

My query is returning the same row twice. Any idea why and how I can get it to only do so once? SELECT txn.id, txn.ref, txn.date, txn.payee, txn.amount, txn.memo, txn.parentID, txn.catID, txn.acctID,...

View Article

questions RE column data types (5 replies)

I'm trying to get a handle on the column data types for my DB and I've got a few questions. 1) When a row is inserted, does each column automatically take the maximum amount of space that was allotted...

View Article

Create a row, use id as value in another row? (2 replies)

Given the following table, is there a way to use a subquery in an insert statement? I need to have the subquery insert a row. The autoincrement field (`id`) is used to set the value of the parentID...

View Article


Alter table across muliple db's with almost same name (1 reply)

I am wanting to make a change on a multi tenant app that has 1 database per customer. They all have the same name but has a unique number at the end of the name to identify like "test121, test122,...

View Article

Using UNION to add selected field in multiple select statements? (1 reply)

Hi all. I'm hoping that someone might help me with what I think needs to be a UNION statement. I've got 4 different SELECT statements that all return a DECIMAL amount. I need to add the first two sums...

View Article


Switching to InnoDB, what I need to know? (no replies)

So, I got this job as a sysadmin/dba and among other things I need to change a DB's engine from MyISAM to InnoDB. I would be really greatful if somebody with more experience could outline or link to...

View Article

add foreign key that ref's column in same table (7 replies)

I'm trying to add a foreign key that references the primary id in the same table. But when I do so, all I get is a message that " #1215 - Cannot add foreign key constraint". This is my table...

View Article


Too many views to manage (no replies)

My database contains about 100 tables, and millions of views derived from those tables in the foreseeable future.The views are too many to place all of their .frm files into single data folder,how to...

View Article

Foreign Keys: Childless rows (NULL values in fk field) (4 replies)

I'm trying to do pretty much the same thing as shown in this example: (http://www.artfulsof...html#Listing_4a). But when I try to insert rows in which the fk field value is NULL, I get the error...

View Article

You have an error in your SQL syntax; check the manual that corresponds to...

The code below correspond to my php code. Kindly help me solve this out. <?php require_once('Connections/localhost.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function...

View Article
Browsing all 1954 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>