Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
enabling MySQL innodb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KayZee
Apprentice
Apprentice


Joined: 15 Oct 2003
Posts: 202
Location: Arlington, VA

PostPosted: Mon Aug 17, 2009 12:18 am    Post subject: enabling MySQL innodb Reply with quote

How do I enable the innodb storage engine in MySQL? I have an application that needs innodb.

I am running dev-db/mysql-5.0.70-r1.

If I add the innodb use flag to either package.use or make.conf

Code:
emerge -pN


The innodb use flag is not picked up. Is innodb still a valid use flag?
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Mon Aug 17, 2009 4:23 am    Post subject: Reply with quote

It is not, and innodb should be enabled in the default configuration installed by emerge --config =dev-db/mysql-5.0.70-r1.
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Mon Aug 17, 2009 8:42 am    Post subject: Reply with quote

When you create a table, add "engine=innodb;" or "type=innodb;"

For instance:

Code:
create table users(id int, name text, pass text) engine=innodb;


or

Code:
create table users(id int, name text, pass text) type=innodb;


If works, you have innodb enabled :-)
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Aug 18, 2009 4:30 am    Post subject: Reply with quote

peratu wrote:
If works, you have innodb enabled :-)
It can appear to work without actually doing specifically what it was instructed to do, such as by falling back to another storage engine, so be sure to check the results and read any messages produced while processing those commands.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum