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

Jumping the First Hurdle

 
   Database Help (Home) -> mySQL RSS
Next:  installaltion error  
Author Message
Jim Bunton

External


Since: Oct 04, 2004
Posts: 14



(Msg. 1) Posted: Mon Feb 07, 2005 9:40 am
Post subject: Jumping the First Hurdle
Archived from groups: mailing>database>mysql (more info?)

New to MySql:
I can't seem to get a grab on what is a schema and what is a database
So I have seen! the 'Mysql' Database and the Test Database
I'm runninng the database Administrator and thinking
"What I what to do now is create a new one of these to create my own tables
in."
The HELP seems rather opaque on this! So I'm thinking that perhaps I've got
hold of the wrong end of the proverbial stick!
[what's the difference between a database and a Schema in the MySql
context!]
[and how do I create new ones!]


--
Jim Bunton

 >> Stay informed about: Jumping the First Hurdle 
Back to top
Login to vote
Bill Karwin1

External


Since: Jun 17, 2004
Posts: 42



(Msg. 2) Posted: Mon Feb 07, 2005 12:02 pm
Post subject: Re: Jumping the First Hurdle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jim Bunton wrote:
 > New to MySql:
 > I can't seem to get a grab on what is a schema and what is a database
 > So I have seen! the 'Mysql' Database and the Test Database
 > I'm runninng the database Administrator and thinking
 > "What I what to do now is create a new one of these to create my own tables
 > in."

Strangely, I have found no way in the graphical front-end applications
provided by MySQL (MySQL Administrator, MySQL Query Browser), to create
a database.

As far as I know, only the command-line mysql utilities can do this.
Run 'mysql' at the command line. In the mysql shell, you can issue a
'CREATE DATABASE' command.

See:
<a rel="nofollow" style='text-decoration: none;' href="http://dev.mysql.com/doc/mysql/en/mysql.html" target="_blank">http://dev.mysql.com/doc/mysql/en/mysql.html</a>
<a rel="nofollow" style='text-decoration: none;' href="http://dev.mysql.com/doc/mysql/en/create-database.html" target="_blank">http://dev.mysql.com/doc/mysql/en/create-database.html</a>

After the database is created, you can use the same command-line
interface or else the MySQL Query Browser GUI application to do
virtually everything else you need to do.

Other GUI applications, such as phpMyAdmin, include a database creation
feature, but these are not interfaces provided by MySQL AB.

Regards,
Bill K.

 >> Stay informed about: Jumping the First Hurdle 
Back to top
Login to vote
jnorth

External


Since: Jan 05, 2005
Posts: 3



(Msg. 3) Posted: Mon Feb 07, 2005 8:40 pm
Post subject: Re: Jumping the First Hurdle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 07 Feb 2005 11:02:07 -0800, in mailing.database.mysql Bill
Karwin wrote:

 >| Jim Bunton wrote:
 >| > New to MySql:
 >| > I can't seem to get a grab on what is a schema and what is a database
 >| > So I have seen! the 'Mysql' Database and the Test Database
 >| > I'm runninng the database Administrator and thinking
 >| > "What I what to do now is create a new one of these to create my own tables
 >| > in."
 >|
 >| Strangely, I have found no way in the graphical front-end applications
 >| provided by MySQL (MySQL Administrator, MySQL Query Browser), to create
 >| a database.

Try mySQL Control Center Smile
In mySQL Administrator
Click/ Select Catalogs
Right mouse click in the Schemata list and select Create New Schema,
type in the new schema/database name, press enter.
The right panel will show an empty table list for the newly created
schema. Click on the Create Table button at the bottom of the screen.
IMHO the Create Table window is a couple of steps backward from the
old Control Centre functionality.


 >| As far as I know, only the command-line mysql utilities can do this.
 >| Run 'mysql' at the command line. In the mysql shell, you can issue a
 >| 'CREATE DATABASE' command.
 >|
 >| See:
 >| <a rel="nofollow" style='text-decoration: none;' href="http://dev.mysql.com/doc/mysql/en/mysql.html" target="_blank">http://dev.mysql.com/doc/mysql/en/mysql.html</a>
<font color=purple> >| <a rel="nofollow" style='text-decoration: none;' href="http://dev.mysql.com/doc/mysql/en/create-database.html</font" target="_blank">http://dev.mysql.com/doc/mysql/en/create-database.html</font</a>>
 >|
 >| After the database is created, you can use the same command-line
 >| interface or else the MySQL Query Browser GUI application to do
 >| virtually everything else you need to do.
 >|
 >| Other GUI applications, such as phpMyAdmin, include a database creation
 >| feature, but these are not interfaces provided by MySQL AB.
 >|
 >| Regards,
 >| Bill K.

---------------------------------------------------------------
jnorthau.TakeThisOut@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
 >> Stay informed about: Jumping the First Hurdle 
Back to top
Login to vote
Mike A

External


Since: Feb 08, 2005
Posts: 1



(Msg. 4) Posted: Mon Feb 07, 2005 9:40 pm
Post subject: Re: Jumping the First Hurdle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can also create a new database in the MySQL Query Browser.
Right-click on the database list in the schemata window, and select
'Create New Schema'. Type a name for the database and click OK. Right
click on the new database, and select 'Set as default schema' (equivalent
to USE database_name). Right click once again and select 'Create Table'.

As far as I can tell, the terms 'schema' and 'database' are interchangeable in
MySQL.


--
Mike Argy
Custom Office solutions
and Windows/UNIX programs.
 >> Stay informed about: Jumping the First Hurdle 
Back to top
Login to vote
Bill Karwin1

External


Since: Jun 17, 2004
Posts: 42



(Msg. 5) Posted: Mon Feb 07, 2005 9:40 pm
Post subject: Re: Jumping the First Hurdle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mike A wrote:
 > You can also create a new database in the MySQL Query Browser.
 > Right-click on the database list in the schemata window, and select
 > 'Create New Schema'. Type a name for the database and click OK.

Thanks for that tip! I hadn't noticed that feature of Query Browser.

Regards,
Bill K.
 >> Stay informed about: Jumping the First Hurdle 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Best way to issue hundreds of inserts/updates??? - Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of individual inserts and updates, can I send the strings to a text file and then have mysql do them all?? IE : query.txt insert..

MySQL freezes, brings XP machine to a grinding halt - I've been using MySQL for a while for fairly light database development on my XP machine. Currently, I am just starting a new project and have experienced some big problems with MySQL today both on my office machine and at home where running a particular...

login as user 'root' but do not have root privlages and my.. - Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via..

FLUSH TABLES hangs if table is locked - Using FLUSH TABLES via the C query API mysql_query() hangs if the table is locked already. That is to say, nothing prevents me from running a LOCK TABLES twice; it won't tell me "it's already locked, don't try to run a FLUSH". Anyone know ...

Tool to convert DDL in graphical diagram? - Does anyone know of a tool that will create a graphical diagram from a DDL (SQL create script)? Preferable a free open-source tool. Thanks, A
   Database Help (Home) -> mySQL 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 ]