Minimal example of using select… for update to isolate rows (1 reply)
I want concurrent transactions to select the next "free" row from a table, marking it as "dirty" so that other transactions **cannot select it**. For example, I want a transaction T1 to select row 1...
View ArticleThe ibdata1 file grows too large with innodb_file_per_table (1 reply)
Hi I am using 5.5.25a-log MySQL Community Server for Solaris 10 X86 64bit. I configured innodb engine with innodb_file_per_table , but after running months , the ibdata1 file now is 17GB , how can...
View ArticleUnique key and NULL values (no replies)
Hi I,m having a problem with a website field in a business table, obviously this should be a unique column but it should also allow NULL values. Just wondering if this is possible, as my first attempt...
View Articlehow to recover innodb corruption (no replies)
I am getting following log messages 121014 19:11:42 mysqld started 121014 19:11:42 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295 121014 19:11:42...
View ArticleError connecting to DB (2 replies)
In regards to: http://serverfault.com/questions/442218/remounting-mysql-under-a-new-mount-point Everything is running. MySQL started but for websites they can not connect to the mysql database at all....
View ArticlePossible? Restore tables from ib_logfile1, no binary logs (3 replies)
Hi there, i recently started using MySql by installing XAMPP for Windows. I was doing some tests and then started creating a few tables. I accidentally dropped the database and then i realized that i...
View Articleinnodb_file_per_table and Data Directory (1 reply)
Hi, I'd like to migrate from one big ibdata file to one ibd file per table. But now my ibdata is defined on my ssd drive and the myisam tables on de hdd, and when i set "innodb_table_per_file=1" all...
View ArticleError connecting to DB in site (no replies)
I have a wordpress site with a mysql database SQL is a problem you can see on the website: www.p30javan.com
View Articledrbd on ubuntu (no replies)
Hi pls help me with the steps to configure mysql drbd on ubuntu.
View Articlelast_insert_id function always returns same value (1 reply)
I have a query that runs the last_insert_id against a table, but recently every time this is run it returns the same value. This value is incorrect as a record is written to the database prior to this...
View ArticleIndex re-creation after composite primary key change (2 replies)
I need to extend a column in a quite big table (~90M rows). (MySQL 5.1.35, InnoDB) It's a varchar(15) column that needs to be extended to varchar(20). This column is a part of the primary key. I did...
View ArticleMySQL 5.0 + Innodb plugin (4 replies)
Hi all, I'm running MySQL 5.0 on Windows. I'm interested in Innodb compression, but this feature doesn't exist with Innodb built-in in MySQL5.0. Is there any way to upgrade InnoDB engine (Innodb...
View Articleissue with rename table to new database (1 reply)
Hi all, hope you can help with this one... I'm looking to archive a large amount of data (250m rows), and leave just the most recent 3 months worth of data. I've got the old data moved to another...
View Articlededlocks between "update limit N" and "update by primary key" (no replies)
Hello! I am little confused by deadlocks and i need in advice Explaining: There is one table: CREATE TABLE `Domain_Site_Sync` ( `id_domain_site` bigint(20) unsigned NOT NULL DEFAULT '0',...
View ArticleInnoDB Transportable Tablespaces - Recovering Data from Stranded .ibd Files...
InnoDB Transportable Tablespaces: - http://mysqlblog.fivefarmers.com/2012/11/07/smarter-innodb-transportable-tablespace-management-operations/ -...
View Articlerename table DB1.TAB1 to DB2.TAB2, Databases have to be in one disk...
Hi , if I want to move a innodb table from DB1 TO DB2 by "rename table DB1.TAB1 to DB2.TAB2", do Databases DB1 and DB2 have to be in one physical disk partitoion? thanks Justin
View ArticleWhat could cause a table to 'crash' and should be repaired? (3 replies)
Hi, I have a table with about 1Million rows and almost a Gb in size. I have plenty of space on the server but only 2Gb of memory, (for Apache, php, MySQL etc). I am using version 5.5.27 This is the...
View ArticleMySQL crashes when making dump of innodb table (2 replies)
Hello. I have broken INNODB table (11Gb). I have tried to DUMP that table with all of innodb_force_recovery options. MySQL crashes on some record. Do not have fresh backup. How can i repair or DUMP...
View Articleupdates to secondary indexes (1 reply)
Examples tend to work best: Suppose I have a table like the following > desc users id int auto_increment primary key first varchar(100) last varchar(200) not null ... KEY idx_lname (last) //the...
View ArticleLog files filling up (1 reply)
Hello, We're experiencing an ongoing issue with the InnoDB engine. For some reason the log files keep growing rapidly to really high sizes every time the engine is enabled. We're unsure as to what is...
View Article