Current location: Hot Scripts Forums » Programming Languages » PHP » Creating Databases


Creating Databases

Reply
  #1 (permalink)  
Old 08-15-03, 11:03 PM
cobalto2060 cobalto2060 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Creating Databases

Greetings

I’m starting with PHP and MySQL, and I need to make a script than create a database, and grant all the permits to a user, so new tables could be created with that user.

I know that you can use the PHP function mysql_create_db () to create a database, just like this;

PHP Code:

<?  mysql_create_db (“databasename”);  ?>

But my problems comes when I need the users, so I can create tables and work on that, later on. There is SQL command GRANT than could be use to accomplish that I want, but I not get half it (that’s as dumb I am). Could some one send me a example, so I can star from.

Cobalto2060

P.D. Please forgive my poor English.
Reply With Quote
  #2 (permalink)  
Old 08-16-03, 06:08 AM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
just use phpmyadmin or whatever it's called, it's quite handy. you can pick it up here at hotscripts.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
  #3 (permalink)  
Old 08-16-03, 09:05 AM
cobalto2060 cobalto2060 is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
thanks but that doesn't solve my problem, I need a script that can install the databases by ifself, so it can be use by people with no programing background.

Cobalto2060
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error when creating database tables with php script spiroth10 PHP 4 01-06-04 03:59 PM
great product for dumping/recovering MySQL databases Dave Brown General Advertisements 1 10-03-03 07:40 AM
code for creating sub domain in php majumder_sanjay Script Requests 0 09-04-03 06:50 AM
Creating Databases cobalto2060 PHP 11 08-29-03 05:22 PM
Creating directories and files cobalto2060 PHP 1 08-17-03 03:20 PM


All times are GMT -5. The time now is 05:25 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.