Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

mysql path

 
   Database Help (Home) -> Java RSS
Next:  missing SET keyword  
Author Message
Mr. X.

External


Since: Dec 27, 2007
Posts: 35



(Msg. 1) Posted: Sun Mar 30, 2008 1:11 am
Post subject: mysql path
Archived from groups: comp>lang>java>databases (more info?)

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 Smile

 >> Stay informed about: mysql path 
Back to top
Login to vote
Mr. X.

External


Since: Dec 27, 2007
Posts: 35



(Msg. 2) Posted: Sun Mar 30, 2008 1:20 am
Post subject: Re: mysql path [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

.... 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 Smile

 >> Stay informed about: mysql path 
Back to top
Login to vote
Lew

External


Since: Feb 15, 2008
Posts: 43



(Msg. 3) Posted: Sun Mar 30, 2008 1:20 am
Post subject: Re: mysql path [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mr. X. wrote:
> ... 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.

--
Lew
 >> Stay informed about: mysql path 
Back to top
Login to vote
Arne_Vajhøj

External


Since: Mar 02, 2008
Posts: 37



(Msg. 4) Posted: Sun Mar 30, 2008 1:20 am
Post subject: Re: mysql path [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mr. X. wrote:
> ... 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
 >> Stay informed about: mysql path 
Back to top
Login to vote
David Harper

External


Since: Jan 25, 2004
Posts: 32



(Msg. 5) Posted: Sun Mar 30, 2008 6:42 am
Post subject: Re: mysql path [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Arne Vajhøj wrote:
> Mr. X. wrote:
>> ... 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

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
 >> Stay informed about: mysql path 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
MySQL: going from 4.1 to 5.0.. - I have MySQL 4.1 installed in my machine (W2000), would like to upgrade to 5.0.. before I do that I need to know two things: 1) do I need to un-intall 4.1 first, and 2) what will happen to my DB's? if I un-install 4.1 will that also delete DB's? (I...

MySql installation. -

MySql with Hebrew. - Hello. I want to use MySql with Hebrew. I am using also Squirrel as a navigator. How can I use in mysql either Squirrel with Hebrew. Thanks :)

Sun buys out MySQL - Sun bought out opensource MySQL on 2008-02-28. http://mysql.com/news-and-events/sun/marten_mickos.html -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com

use Squirrel-sql with MySql - Hello. I need some first step tutorial of using Squirrel-sql with MySql, please. Thanks :)
   Database Help (Home) -> Java All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]