|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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! |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Quote:
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. ![]() |
|
#5
|
||||
|
||||
|
I would use a better tool than phpmyadmin, something like the mysql administrator, or even toad for mysql.
__________________
Raid1 in XP Pro My open source projects: ------------------------ Blobber - Add images as blobs to SQL Server ------------------------ |
|
#6
|
||||
|
||||
|
Quote:
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
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#7
|
|||
|
|||
|
Thanks guys!
![]() |
|
#8
|
|||
|
|||
|
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. ![]() |
|
#9
|
||||
|
||||
|
Did you restart the server? Did you check the actual variable value?
|
|
#10
|
|||
|
|||
|
Do you mean did I restart Apache or my PC? If Apache, then yes I did.
How do you check the actual variable value? ![]() |
|
#11
|
|||
|
|||
|
Quote:
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'; |
|
#12
|
|||
|
|||
|
Great! Got it working now I restarted it....
![]() Thanks! |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Can't create MyISAM database under Windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|