Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 27th, 2005, 02:11 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create MySQL database

Hello everybody,

I am just a new learner about MySQL.
Could anybody tell me how to create MySQL database?
I have read a book "Beginning PHP, Apache, MySQL Web Development" but I really got confused.
Do we create MySQL database in PHP script or we have to create MySQL database by using command prompt? If so, just show me HOW and WHERE
Thank you very much.
new learner.


Reply With Quote
  #2 (permalink)  
Old April 27th, 2005, 03:20 PM
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the site below for more info:
http://www.webdevelopersnotes.com/tu...ing_mysql.php3


----------------
Never bother to learn something not knowing which does not do you any harm, and never neglect to learn something whose negligence will increase your ignorance - Imam Jafar Sadeq
Reply With Quote
  #3 (permalink)  
Old April 27th, 2005, 04:48 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much, Gotaka4.
Now I know
mysql> create database test2
(test2 is the name of database)

I can check it by using command
mysql> show databases;

But I wondered if I can create a database, I can also delete/remove a database. I did not see that when I linked to the web that Gotaka4 gave me.
Could anybody show me how to delete/remove a databse ?


Thank you very much. I appreciate.
new learner

Reply With Quote
  #4 (permalink)  
Old April 27th, 2005, 07:49 PM
Authorized User
 
Join Date: Jan 2005
Location: , , .
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use the command DROP

so to delete a database named "Events" you write:

DROP DATABASE Events



----------------
Never bother to learn something not knowing which does not do you any harm, and never neglect to learn something whose negligence will increase your ignorance - Imam Jafar Sadeq
Reply With Quote
  #5 (permalink)  
Old June 9th, 2005, 05:55 AM
Registered User
 
Join Date: Oct 2003
Location: Canton, Michigan, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is something that might be worth a review;
http://dev.mysql.com/doc/mysql/en/index.html

I found that while quite large and laden with good stuff the answers you seek should be here.



Reply With Quote
  #6 (permalink)  
Old June 10th, 2005, 05:18 AM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

My suggestion is you read MySQL manual either online ( with useful user-submitted notes ) or offline ( downloaded ). Cheers.

Reply With Quote
  #7 (permalink)  
Old June 14th, 2005, 02:11 PM
Registered User
 
Join Date: Apr 2005
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much for your help.
I want to create a table in a certain database. (By DOS prompt of window 2000)I do not know what I have to do ?
I read documents but I did not see where it is ?
Thank you so much for your help.
new learner

Reply With Quote
  #8 (permalink)  
Old June 15th, 2005, 03:26 AM
Friend of Wrox
 
Join Date: Mar 2004
Location: Bhopal, MP, India.
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Use PHPMyAdmin from Sourceforge.net

http://www.mediasweorks.com/

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 01:48 AM
Create Crystal Report using Php, Mysql arry004 PHP How-To 0 September 27th, 2006 05:16 AM
how to create odbc in mysql vivekkumar_23 MySQL 1 February 6th, 2006 05:20 AM
create CSV flat file from mysql table pb MySQL 1 September 21st, 2005 10:51 AM
CREATE TABLE error in MySQL k4rm4killer PHP Databases 2 December 9th, 2003 01:05 PM



All times are GMT -4. The time now is 01:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.