473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MySql table upload problem

ree
I have a tables for a database that I have entried data in to. I have used
the table on my local comp. and used apache & mySql to test it out.
Now I need to upload the table to the site. But not sure how to do it. I
don't want to enter the details all again.

Can someone point me to a link that explains how to upload these tables.

Also the the webhost is using Cpanel.

Ta

Jul 17 '05 #1
5 3732
In article <Xn****************************@211.29.133.50>,
ree <re*@hotmail.coom> wrote:
I have a tables for a database that I have entried data in to. I have used
the table on my local comp. and used apache & mySql to test it out.
Now I need to upload the table to the site. But not sure how to do it. I
don't want to enter the details all again.

Can someone point me to a link that explains how to upload these tables.

Also the the webhost is using Cpanel.


I believe CPanel lets you import MySQL dump files. You want to do a
mysqldump to file, upload the dumpfile to your server, then import it to
your database. man mysqldump, or check mysql.com for documentation on
mysqldump.

If your webhost lets you use mysql from the command line, here is a
general example, assuming your database is named 'foo':

//On your local server
mysqldump -u user -p foo > dumpfile.sql
[enter password]

//On the remote server
[create a database named 'foo']
[upload dumpfile.sql]
mysql -u user -p foo < dumpfile.sql
[enter password]

You'll need the first part to generate the dumpfile whether you use
CPanel or not.

hth

--
Bulworth : fu***@fung.arg | My email address is ROT13 encoded, decode to mail
--------------------------|--------------------------------------------------
<http://www.phplabs.com/> | PHP scripts and thousands of webmaster resources!
Jul 17 '05 #2
ree
Senator Jay Billington Bulworth <fu***@fung.arg> wrote in
news:fu*************************@news-server-fe-01.columbus.rr.com:

[upload dumpfile.sql]
mysql -u user -p foo < dumpfile.sql
[enter password]

You'll need the first part to generate the dumpfile whether you use
CPanel or not.

hth


I cant find .sql files on my computer, just only these files in the mySQL
"data" directory files for the tables with the extensions of *.MYD, *.MYI,
*.FRM
Jul 17 '05 #3
Whichever direcory you are in when you type

mysql -u username -p password < dumfile.sql

will be the directory you save dumpfile.sql. It's probably handy if you
are in your home directory because you have to be able to save the file.
That is, you have to have permission to write to the current directory.
The files you described are the MySQL system files. You will/should not
be able to save files to that directory.

ree wrote:
Senator Jay Billington Bulworth <fu***@fung.arg> wrote in
news:fu*************************@news-server-fe-01.columbus.rr.com:
[upload dumpfile.sql]
mysql -u user -p foo < dumpfile.sql
[enter password]

You'll need the first part to generate the dumpfile whether you use
CPanel or not.

hth



I cant find .sql files on my computer, just only these files in the mySQL
"data" directory files for the tables with the extensions of *.MYD, *.MYI,
*.FRM


Jul 17 '05 #4
On 2003-12-21, ree <re*@hotmail.coom> wrote:
Senator Jay Billington Bulworth <fu***@fung.arg> wrote in
news:fu*************************@news-server-fe-01.columbus.rr.com:

[upload dumpfile.sql]
I cant find .sql files on my computer, just only these files in the mySQL
"data" directory files for the tables with the extensions of *.MYD, *.MYI,
*.FRM


have a look at the mysqldump program...

--
verum ipsum factum
Jul 17 '05 #5
ree
"Capt. Beefheart" <Ca***************@crystalfalls.com> wrote in
news:vX***********@news-binary.blueyonder.co.uk:



I cant find .sql files on my computer, just only these files in the
mySQL "data" directory files for the tables with the extensions of
*.MYD, *.MYI, *.FRM


thanks u guys got it working
Jul 17 '05 #6

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

Similar topics

4
by: steve | last post by:
I have an on-going problem that my ".MYI" mysql files get corrupted. I have written php trapping routine to report on the problem to admin. My next step is to initiate "repair table" right after...
11
by: grumfish | last post by:
I'm trying to add a row to a MySQL table using insert. Here is the code: connection = MySQLdb.connect(host="localhost", user="root", passwd="pw", db="japanese") cursor = connection.cursor()...
5
by: Douglas Hay | last post by:
I have a C++ Builder APP that uses the Advantage database. I want to export data from the Advantage tables to a MySQL database on my website. What is the best way to get my data into the MySQL...
1
by: murray | last post by:
Large table performance problem with MYSQL performance with ASP.NET I am doing some benchmarking of an application using MYSQL under Windows and I confused about the results. Environment...
0
by: OctoTools | last post by:
Large table performance problem with MYSQL performance with ASP.NET I am doing some benchmarking of an application using MYSQL under Windows and I confused about the results. Environment...
3
by: Sophisticado | last post by:
Greetings I have a script in which I am collecting sensitive information via a form (METHOD=POST) and encrypting the posted variable (format = BLOB) using mcrypt, then saving it in a MySql...
10
by: eholz1 | last post by:
Hello Members, I am setting up a photo website. I have decided to use PHP and MySQL. I can load jpeg files into the table (medium blob, or even longtext) and get the image(s) to display without...
11
by: kennthompson | last post by:
Trouble passing mysql table name in php. If I use an existing table name already defined everything works fine as the following script illustrates. <?php function fms_get_info() { $result =...
3
by: eyik | last post by:
Dear fellow members. In my workplace, we have an application using php MySQL which functionality is basically storing data from user input. The condition is like this, we have one computer act...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.