473,513 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

newbee - how to upload MYSQL to webserver

Hi
I have made several website using MS Access and asp. Now I need to upgrade
from Accesss to MYSQL -
I got my website working with MYSQL on my local PC - but now the problem is
how I get it working on my webhost . I have the right connecting string (
according to webhotels supporter) but how do I transfer my SQL database from
local pc to server..?? With MS Access it was very straight forward - I just
uploaded my .MDB file to my DB folder om the server.

How does this work with MYSQL - on the local pc my tables are stored in
C:\mysql\data\test
What I did was - uploading the folder 'test' (including the tables .FRM
files ) to my BD folder on the webserver . But I cant make it work - There
is no database called 'test' showed at the webhotel ...

Please someone - give me a clue ....

Thanks - Otto leholt

Jul 23 '05 #1
2 5826
Otto Leholt (le****@worldonline.dk) wrote:
: Hi
: I have made several website using MS Access and asp. Now I need to upgrade
: from Accesss to MYSQL -
: I got my website working with MYSQL on my local PC - but now the problem is
: how I get it working on my webhost . I have the right connecting string (
: according to webhotels supporter) but how do I transfer my SQL database from
: local pc to server..?? With MS Access it was very straight forward - I just
: uploaded my .MDB file to my DB folder om the server.

: How does this work with MYSQL - on the local pc my tables are stored in
: C:\mysql\data\test
: What I did was - uploading the folder 'test' (including the tables .FRM
: files ) to my BD folder on the webserver . But I cant make it work - There
: is no database called 'test' showed at the webhotel ...

: Please someone - give me a clue ....

I have always used the mysql admin tool to create the database, and then
re-run my scripts that create the various tables, and also the scripts
that define the grants required.

I do that using a small special purpose cgi script written in ksh, bash,
or whatever, that calls the mysqladmin and mysql programs directly.

#!/bin/sh

echo "Content-type: text/plain

"

mysqladmin create test
mysql < create-tables.sql
mysql < grant-grants.sql
mysql < insert-initial-data.sql
The above doesn't show the login details that mysql requires, so it isn't
100% what you need, but it's easy to test from your command line ahead of
time to get it all correct. (And of course you need to create the scripts
that do the creates and grants etc, and put them in an accessible
location.) Also, you may need to use the full paths to the mysql
programs, they may not be in the path.

Remove the script afterwards so no-one else can run it later.
Or use the phpmysqladmin (?) tool - that name is probably wrong, but a few
searches should turn up the program I am thinking about. That tools allow
you to administer mysql via a web interface, and if the host has mysql
they may already have that tool available for you to use.

--

This space not for rent.
Jul 23 '05 #2
There is also a program I use called mysql-front. it is very easy to use and
lets you copy your SQL tables between different mysql databases.

http://www.mysqlfront.de
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3188
by: Simon | last post by:
I would like to create a very basic file upload add image form to add to my web site and to keep them in a "tmp" directory within my web hosting file manager once uploaded. I understand the basic...
3
11739
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
3
2622
by: fred4534 | last post by:
Hello, I'm using the GoAhead embedded Webserver (http://webserver.goahead.com/webserver/webserver.htm) which can use only ASP and a set of javascript instructions. I'm trying to make an upload...
4
1459
by: Vic Spainhower | last post by:
Hello, I am trying to setup a file upload using the example from the PHP manual. However, I am getting an Undefined index on userfile in the 2 places where it is referenced. Can someone please...
2
2726
by: shahram.shirazi | last post by:
Hi I am looking to develop an application that provides decision support through various graphs and charts using a mysql backend. My problem is between the data collection and data...
2
1673
by: ¥|¥J | last post by:
Dear all, Please help~~ I have a problem in connecting my new FC5 webserver (apache 2.2 + php 5.1.4) to a few database servers through the PHP scripts (RH9, FC2, FC3). I have set host...
7
2590
by: MDB | last post by:
Anyone have any pointers / links / examples on how to upload files through FTP? I am currently using the built in file upload control however it seems to take a very long time to upload files and...
2
1240
by: techjohnny | last post by:
I'd like to know if anybody knows of a program already created that allows the user to select e-mails in their browser or Outlook client to upload to a web based database, i.e., mySQL? I'd like...
16
2050
by: Lawrence Krubner | last post by:
To guard against our users possibly uploading huge files, I've got this in my php.ini file: ; Maximum size of POST data that PHP will accept. post_max_size = 10M On a server running Ubuntu...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.