innodb

Can I create both MyISAM and InnoDB tables in the same database using Hibenrate hbm2ddl

I need both MyISAM tables and InnoDB tables in my database, I am using hbm2ddl to create them. Can I create both MyISAM and InnoDB tables in the same database using Hibenrate hbm2ddl? It seems that selecting the dialect forces me to use one or the other. ...

Innodb Performance Optimization

One of the portion of my site requires bulk insert, it takes around 40 mins for innodb to load that file into database. I have been digging around the web and found few things. innodb_autoinc_lock_mode=2 (It wont generate consecutive keys) UNIQUE_CHECKS=0; (disable unique key checks) FOREIGN_KEY_CHECKS=0 (disable foreign key checks) --...

Innodb table analysis tool?

I am a newbie to mysql and trying to understand innodb specifically. I need to understand how exactly innodb is laying out the tables in disk, which index blocks it is putting in cache, size consumption and estimation of the indexes and table records. Is there any tool that can analyze a given set of innodb tables and give me the above ...

minimizing table deadlock in my scenario with oracle and innodb

Hi, I have 35 functions that update 1 to 3 tables, in a transaction. However, they don't just execute updates, but they do queries as well. Table 1 does row update only actions, and some queries. Table 2 does queries and row level updates to existing rows, and sometimes deletes and adds rows. Table 2 may have queries within the trans...

What should I do with MySQL InnoDB error in MacOSX ?

My mysql installation is new and it was working a yesterday. Now, any MySQL related task in my ruby-on-rails app is failing with the error Mysql::Error: Unknown table engine 'InnoDB': SELECT version FROM schema_migrations I searched on the net for InnoDB and it seems to be a plugin. Some sources asked me to reinstall mysql with InnoDB...

How to preload tables into INNODB buffer pool with MySQL?

I have an e-commerce application that uses MySQL, and I'd like it to be faster. When a part # is accessed on the website that has been accessed before, the part loads quickly because all the necessary data is already in the INNODB buffer pool. However, if the part # has never been loaded before, that data isn't in the buffer pool yet, so...

MySQL (InnoDB) Select from 2 tables and always get empty result set

Hello, I'm a little confused. I'm using MySQL 5+ with InnoDB as my engine. If I run the following statement and the table 'user_temp' is empty I always get an empty result set no matter what's in the 'users' table. SELECT * FROM `users`, `user_temp` If I put something in 'user_temp' I'll get back all the results. Is this suppos...

MySQL InnoDB unlock a row

I get a lock timeout when updating a certain row in the database. Other rows update okay. #1205 - Lock wait timeout exceeded; try restarting transaction How can I unlock this particular row? Here are the two related tables. I'm trying to update the email on user. I don't think tenant should be causing any problems though. CREATE TA...

MySQL DROP all tables, ignoring foreign keys

Is there a nice easy way to drop all tables from a MySQL database, ignoring any foreign key constraints that may be in there? ...

MySQL's ibdata file is getting big and the size doesn't reflect how much data I have.

The size of MySQL ibdata is 4GB, but I don't think the data I have should take that much disk space. I am using MySQL InnoDB storage engine. Am I doing something wrong with configuration? How do I reclaim the disk space because deleting rows didn't help at all? Thanks ...

Mysql start fails with Operating System error 13

I have XAMPP on my Ubuntu Lucid system and everything worked fine. But there seems to be some problem now and mysql wouldn't start. I had tried to recover a few Drupal databases and hence copied the raw files to /opt/lampp/var/mysql folder like all other database folders. And, I guess that could have caused the problem. I am pasting t...

Using a different MySQL database engine

Hello, I am having problems trying to use a different MySQL database engine. (I want to change from MyISAM to InnoDB) /etc/my.cnf [mysqld] bind-address = 127.0.0.1 default-storage-engine=InnoDB It appears that it is not installed? If that is true, how can I install InnoDB? mysql> show engines; +------------+---------+-------------...

Is it possible to change a single database to use InnoDB instead of myISAM on mysql

I want have a single database that uses InnoDB tables instead of myISAM tables (myISAM gives me good performance generally so I don't want to stop using it altogether). Is it possible to specify that a database use InnoDB tables if the default is myISAM. ...

Which database for a web crawler, and how do I use MySQL in a distributed environment?

Which database engine should I use for a web crawler, InnoDB or MYiSAM? I have two PC's, each with 1TB hard drives. If one fills up, I'd like for it to save to the other PC automatically, but reads should go to the correct PC; how do I do that? ...

Full Text Search Like in InnoDB

Hey Friends How we can do Full Text Search in InnoDB? ...

In InnoDB, are columns which are not part of index stored in sorted order as well?

I am using InnoDB. My Index selectivity (cardinality / total-rows) is < 100%, roughly 96-98%. I would like to know if the columns, which are not part of the keys, are also stored in sorted order. This influences my tables' design. Would also be interest to understand how much performance degradation in lookup I can expect when index s...

For a stats systems what's better in MySQL: InnoDB, Archive or MyISAM?

I want to store all accesses to a webpage with user-agent, script-execution-time, request-uri, full referer and some more variables. What I have been doing is use normalized MyISAM tables like: stats stats_user_agents stats_referers stats_requested_uris But in a normal webpage this takes some SELECT's and 1 INSERT. It's better use A...

MySQL InnoDB auto_increment value increases by 2 instead of 1. Virus?

There's an InnoDB table for storing comments for blog posts used by a custom built web application. Recently I noticed that the auto incremented primary key values for the comments are incrementing by 2 instead of just 1. I also noticed that in another MySQL table which is used for remembering the last few commenter's footprint signatu...

MySQL sharding and primary key performance in InnoDB

I run a lyrics web site and I have a single table that basically keeps an index of songs; essentially primary key with auto increment (song_id), artist, and song title. The lyrics themselves are stored across 10 shards, with each shard based on song_id MOD 10. There are two columns: song_id and song_lyrics. The song_id field is primary ...

SELECT and DELETE

I need to remove certain rows from a table. Which rows must be deleted is something I find out through a query. However, it appears that you cannot do both operations (select and delete) in the same query: Currently, you cannot delete from a table and select from the same table in a subquery. So I cannot do this: DELETE FROM t...