Jump to content

Archived

This topic is now archived and is closed to further replies.

pwnedbyjosh

help me make a new database for my forums

Recommended Posts

To delete an entire database:

 

DROP DATABASE IF EXISTS db_name

 

To create a new database:

CREATE DATABASE IF NOT EXISTS db_name

 

See also www.mysql.com for documentation on MySQL.

Share this post


Link to post
Share on other sites
where do i enter that?

 

You can do it from php

 

[php:1:af123983bd]<?php

mysql_query (\"DROP DATABASE IF EXISTS db_name\");

mysql_query (\"CREATE DATABASE IF NOT EXISTS db_name\");

?>[/php:1:af123983bd]

 

hth

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.