MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 9th, 2008, 08:08 AM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Can't create MyISAM database under Windows

Hey guys....... I usually just use MySQL with phpmyadmin under my linux server; but I just installed it locally (WAMP); everything is working fine except when I make a database & select to make it a MyISAM database it doesn't work.... it just forces it to be a InnoDB.

Any ideas?

Thanks!

Reply With Quote
  #2  
Old May 9th, 2008, 08:37 AM
r937's Avatar
r937 r937 is offline
SQL Consultant
Dev Shed God 25th Plane (17000 - 17499 posts)
 
Join Date: Feb 2003
Location: Toronto Canada
Posts: 17,344 r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level)r937 User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 5 Days 8 h 26 m 43 sec
Reputation Power: 891
the problem is your CREATE TABLE statement
__________________
r937.com | rudy.ca

Reply With Quote
  #3  
Old May 9th, 2008, 08:41 AM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,401 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 11 h 54 m 39 sec
Reputation Power: 685
You're specifying MyISAM in the CREATE TABLE statement? e.g.
Code:
CREATE TABLE yourNewTable (
column INT ...,
) ENGINE=MyISAM;

Which version of MySQL and which package did you install?

Did you read through the MySQL manual section on 'Installing MySQL Community Server', especially as it pertains to Windows?

Did you copy over or create your own my.ini or my.cnf config file under C:\?
__________________
BookMooch.com : Give books away. Get books you want.

Reply With Quote
  #4  
Old May 9th, 2008, 10:25 AM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Quote:
Originally Posted by lnxgeek
You're specifying MyISAM in the CREATE TABLE statement? e.g.
Code:
CREATE TABLE yourNewTable (
column INT ...,
) ENGINE=MyISAM;

Which version of MySQL and which package did you install?

Did you read through the MySQL manual section on 'Installing MySQL Community Server', especially as it pertains to Windows?

Did you copy over or create your own my.ini or my.cnf config file under C:\?


Ok... it worked when using my own query rather than using phpmyadmin to do it (as the query that phpmyadmin used didn't specify the engine)...... however with the MySQL/phpmyadmin I use on linux if I don't specify a engine type it uses MyISAM by default...... is there a way to make it work like that on windows too?

I downloaded MySQL 5.0.51b binary I believe.... had a glance of the manual but don't see anything I haven't done.

As for the my.cnf file...... the documentation I was reading on how to setup mysql (was from a sitepoint book that's a few years old) told me to copy the my-small.cnf file from the mysql directory & rename it to "my.cnf" (or my.ini) & put it in C:\ & yep... I did that.

Reply With Quote
  #5  
Old May 9th, 2008, 10:32 AM
Veamon's Avatar
Veamon Veamon is offline
Blowing up trees with my mind.
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Feb 2005
Location: Neverland Ranch, minus the touching.
Posts: 2,712 Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)Veamon User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1Folding Points: 127259 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 3 Days 23 h 43 m 24 sec
Reputation Power: 878
I would use a better tool than phpmyadmin, something like the mysql administrator, or even toad for mysql.
Comments on this post
pabloj disagrees: This specific problem is not due to phpmyadmin, but I agree that he can use better tools
__________________

Raid1 in XP Pro

My open source projects:
------------------------
Blobber - Add images as blobs to SQL Server
------------------------

Reply With Quote
  #6  
Old May 9th, 2008, 11:29 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 5 h 6 m 18 sec
Reputation Power: 259
Quote:
Originally Posted by cyphix
... if I don't specify a engine type it uses MyISAM by default...... is there a way to make it work like that on windows too?
...
shure, you'll have to set a specific parameter in the ini/cnf file or pass it at server startup, it's
Code:
 
[mysqld]
...
# The default storage engine that will be used when you create new tables
default-storage-engine=INNODB
#or MYISAM in your case, I use InnoDB

Reply With Quote
  #7  
Old May 9th, 2008, 11:33 AM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Thanks guys!

Reply With Quote
  #8  
Old May 9th, 2008, 11:51 AM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Hmmmmmm added the below..

Code:
# The default storage engine that will be used when you create new tables
default-storage-engine=MyISAM


..but can't get it to work.... keeps creating InnoDB's.

Reply With Quote
  #9  
Old May 9th, 2008, 12:08 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 5 h 6 m 18 sec
Reputation Power: 259
Did you restart the server? Did you check the actual variable value?

Reply With Quote
  #10  
Old May 9th, 2008, 01:09 PM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Do you mean did I restart Apache or my PC? If Apache, then yes I did.

How do you check the actual variable value?

Reply With Quote
  #11  
Old May 9th, 2008, 02:17 PM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,401 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 11 h 54 m 39 sec
Reputation Power: 685
Quote:
Originally Posted by cyphix
Do you mean did I restart Apache or my PC? If Apache, then yes I did.

How do you check the actual variable value?


Apache has nothing to do with MySQL (with the exception of course that you may also be serving PHP scripts, and PHP can connect to MySQL, but I digress); MySQL is a stand-alone RDBMS server and will have to be restarted on it's own.

In Windows you can do this on the command line with the commands
NET STOP MySQL
and then issuing
NET START MySQL
Obviously where 'MySQL' is the service name the mysqld-nt daemon runs under.

The variable value in MySQL; when the daemon starts and reads in the proper config files, it stores those directives as variables, e.g.
Code:
SHOW VARIABLES LIKE 'storage_engine';

Reply With Quote
  #12  
Old May 9th, 2008, 05:02 PM
cyphix cyphix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 159 cyphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 h 41 m 33 sec
Reputation Power: 3
Great! Got it working now I restarted it....

Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Can't create MyISAM database under Windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump