Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 8th, 2007, 5:12 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 140
Rep Power: 4 paulchwd is on a distinguished road
Exclamation MySql

I am used to working with Access, where I create the database and tables in access and then do everything else via ASP code that i wrote, I need do do some work with a MySQL and host it, now im not in control of the servers its being hosted on all i have is ftp access

I have used MySQL on my desktop but not much

Question: does MySql produce a file for the DB that I can upload to my webserver like Access?

Or

Does MySQl have to be installed on the webserver and i have to interact with it that way.

Thanks
paulchwd is online now   Reply With Quote
Old Feb 8th, 2007, 6:32 PM   #2
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
MySQL is like Microsoft SQL Server but less complicated as well as open source. It is a service so it has to be installed onto the server in order for it to run. You must also have a Mod to work in between the Coding and the Database itself. So to answer your question, no MySQL does not produce a file that you can upload. The database itself is contained in file(s) but you can't access them directly, at least that's what I know.
PhilBon is offline   Reply With Quote
Old Feb 8th, 2007, 7:00 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Your server probably provides you with an administration package (PhPMyAdmin is an example). You can describe the database with files and upload/download them.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 8th, 2007, 7:17 PM   #4
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 140
Rep Power: 4 paulchwd is on a distinguished road
thanks for the replies,

DaWei, what do you mean by "you can describe the database with files"

My server has a GUI for me to interafce with MySQL but i want the cmd line.
paulchwd is online now   Reply With Quote
Old Feb 8th, 2007, 8:08 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
You can create tables and records in MySQL via SQL commands. For example:
sql Syntax (Toggle Plain Text)
  1. CREATE TABLE pets (
  2. id int,
  3. species varchar(100),
  4. name varchar(100)
  5. );
  6.  
  7. INSERT INTO pets (species, name) VALUES ('dog', 'rover')
  8. INSERT INTO pets (species, name) VALUES ('cat', 'fluffy')
In MySQL and most other databases, a set of commands like this can be generated from an existing table that will recreate it exactly. This set of commands can be saved in a file, and imported into a remote database. This is what DaWei means by describing the database with files.
Arevos is offline   Reply With Quote
Old Feb 8th, 2007, 8:29 PM   #6
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 140
Rep Power: 4 paulchwd is on a distinguished road
oh...i didnt make the connection between the desc command and that


I know how to code Sql, but thank you.

My problem is that my hosting provider only has a gui interface to create tables / statements what not, i prefer command line and running my own scripts.

thank all of you:


Do you know of any program i can use to connect to the database command lie remotely, i had used Oracle before (throgh school) and we used sql plus to use to oracle
paulchwd is online now   Reply With Quote
Old Feb 8th, 2007, 8:33 PM   #7
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
What gui does your hosting provider provide for you?
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Feb 8th, 2007, 9:48 PM   #8
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 4 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
There is a program and I can't remember it's name but it's at the MySQL website and it's a remote way to do the command line (I Believe) if not you can create tables remotely. You might have to set the server to accept connections from your computer in order for it to work though.
PhilBon is offline   Reply With Quote
Old Feb 8th, 2007, 10:17 PM   #9
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 140
Rep Power: 4 paulchwd is on a distinguished road
sounds nice, just like what i want, i will look into that thanks
paulchwd is online now   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syncing MySQL drumltd PHP 3 Nov 2nd, 2006 6:10 PM
MySQL with python? snipertomcat Python 2 Apr 13th, 2006 2:34 AM
Tutorial - Using MySQL in C# Darkhack C# 12 Jan 17th, 2006 10:28 AM
Simple Perl / MySQL Problem.. pls help! domquemo Perl 0 Jan 11th, 2006 5:08 AM
More MySQL errors ArchAngel PHP 12 Mar 8th, 2005 10:53 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:07 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC