Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2008

Tip: Looking for answers? Try searching our database.

mysql path

Thread view: 
Mr. X. - 29 Mar 2008 23:11 GMT
Hello.

If I create a new schema on mysql :
Which folder is the schema created,
and how external program "know" where the schema is ?

Is there any general attitude, that I should know exactly where is the db
file exists ?
What is on connection string  ?
(Not always there is on connection string the full path !).

Thanks :)
Mr. X. - 29 Mar 2008 23:20 GMT
... I meant :
Where is physically the database file exists,
and how can any external program with simple connection string connect to
the specific db ?

Thanks :)
Lew - 30 Mar 2008 00:09 GMT
> ... I meant :
> Where is physically the database file exists,
> and how can any external program with simple connection string connect to
> the specific db ?

<http://dev.mysql.com/doc/refman/6.0/en/installation-layouts.html>
> The installation directory has the following subdirectories:
>  data  |  Log files, databases

mysql.com is a good source for information about MySQL.

Signature

Lew

Arne Vajhøj - 30 Mar 2008 00:15 GMT
> ... I meant :
> Where is physically the database file exists,
> and how can any external program with simple connection string connect to
> the specific db ?

For MyISAM tables you get:
  MySQL data dir / database name / table name . MYD for data
  MySQL data dir / database name / table name . MYI for indexes

For InnoDB tables the data get stored in the data file you define
in the MySQL config file.

Arne
David Harper - 30 Mar 2008 07:41 GMT
>> ... I meant :
>> Where is physically the database file exists,
[quoted text clipped - 4 lines]
>   MySQL data dir / database name / table name . MYD for data
>   MySQL data dir / database name / table name . MYI for indexes

The command

  show variables like 'datadir';

will display the location of the MyISAM data directory.

> For InnoDB tables the data get stored in the data file you define
> in the MySQL config file.

The command

  show variables like 'innodb_data_home_dir';

will display the name of the directory which contains the InnoDB
tablespace files.

David Harper
Cambridge, England


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.