MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 2nd, 2000, 09:38 PM
carp carp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 4 carp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to write a small forum script
How do I creat mysql tables on a remotely hosted server? does the administrator have to do this? or is it done in a php script?

Reply With Quote
  #2  
Old August 7th, 2000, 02:58 PM
tmcguire tmcguire is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: St.Paul, MN, USA
Posts: 2 tmcguire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
To administer mysql I use telnet (or TerraTerm) to get to the Linux command line
and then type mysql <name of your database>
that brings me to the command line interface
where I can issue commands to mysql.

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by carp:
I'm trying to write a small forum script
How do I creat mysql tables on a remotely hosted server? does the administrator have to do this? or is it done in a php script?
[/quote]


Reply With Quote
  #3  
Old August 10th, 2000, 09:38 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
You can also do it through PHP. Like this:

<?

mysql_connect(localhost, user, pass);
@mysql_select_db(your_db);

$query = "
CREATE TABLE news (
date VARCHAR(22),
title VARCHAR(100),
body TEXT
id INT
)
";

$result = mysql_query($query);

if($result) {

print "Table inserted";

}

else {

print "Table not inserted";

}

mysql_close();

?>

Reply With Quote
  #4  
Old August 10th, 2000, 09:55 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
Get phpMyAdmin, at http://www.phpwizard.com, for the easiest way to administer MySQL.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > how do I use mysql??? HELP!!!!


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 3 hosted by Hostway