Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.


  #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
  #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

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



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

  #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

  #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/



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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.