SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 1st, 2002, 01:33 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Using MySql

Hello all,

I have followed Ben's setup for apache, Mysql and PHP.

I got a local host on my computer great!!!

Now how do I adminster MySql so I can create databases? I know how to do it with PHPMyadmin. But have no clue how to do it with MySql.

SO I have installed and not sure were to go from here. Can someone help please.

Thanks,
Attila
www.glorynaspiration.com
__________________
Thanks,
Attila
http://www.glorynaspiration.com
http://www.abitofthings.com

Reply With Quote
  #2  
Old December 1st, 2002, 02:47 PM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Why would you want to is the question that comes to mind... however, if you want to know, you just have to go to the C:\mysql\bin directory and run mysql.exe and manually type the commands from there.

Reply With Quote
  #3  
Old December 1st, 2002, 09:01 PM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I beleive taht I have expressed myself wrong. I have everything installed. But have no database. I have MySql.

How do I know were my databases are going to be saved at?

How do I create a database?

In PHP I would do this

PHP Code:
 $db create database test
$dbconnection stuff 


But were is this database created n my drive. I have only used PHPMyadmin before. Should I install and use that?

SO basicly I have MySql installed but no databases how do I do the next step thanks.

Hope this makes sence.
Attila

Reply With Quote
  #4  
Old December 2nd, 2002, 06:05 AM
Kanu Kanu is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 91 Kanu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
The front page of phpmyadmin allows you to create a new database easily. The actual data files are stored in C:\mysql\data\ though to backup your databases you should always export to an sql file. If you need clarification, just say and I'll post some screencaps to show you...

Reply With Quote
  #5  
Old December 2nd, 2002, 07:56 AM
Attila Attila is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 67 Attila User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I know how to us the PhP Myadmin.

BUt I installed MySql....How do I set uo the databases? Yes please post screenshots.

Reply With Quote
  #6  
Old January 1st, 2003, 12:29 PM
pashadowops pashadowops is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 pashadowops User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to pashadowops
To create a database in MySQL, at the prompt simply type:

create database 'databasename' ;

Where the 'databasename' without the quotes is the name you've given your database. Then to use that database type in the following: use 'databasename'; this will now activate the database you just created. You are now ready to create tables and populate them.

If you've never worked with MySQL before I would recommend the following book: "Managing & Using MySQL" it's an O'Reilly book. Second Edition covers v 4.0.1. This will be very helpful.


Also Your database can be found in C:\mysql\data\, provided of course that you installed MySQL in the root directory of your windows box.

Hope that helps you out.

Oh by the way, remember to end all of your commands with ';'. It took me a little while to get used to that part. Enjoy

Reply With Quote
  #7  
Old January 1st, 2003, 05:21 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
mysql_connect('localhost','root')

as for the database, you have to create that your self.

mysql_query("create database 'databasename'");

That will create your database, in php. however with localhost and root, you will be able to install phpmyadmin on your server. once you have done that creating a database/tables will be as simple as pie

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Using MySql


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


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway