Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Upload A Large Database To A New Server?


I have been developing a web app on my local server and i am now trying to import a large database (1.7million rows) to the production server. i have exported it using phpmyadmin, no worries but i can only upload a tiny 8mb to the productions server (hosted with one and one). i emailed them but changing php.ini or .htaccess files doesnt help as the database is hosted on a different server to the php files to which i have access.I considered writing a script to step through the rows on my localhost and post them like form data to the new site, then writing a script to insert them from the new server, but with 1. 7 million rows, this will take forever, and i'm not entirely confident about this idea at all.




View Complete Forum Thread with Replies

Related Forum Messages:
Upload MySQL Database To A Unix Server - What Path To Upload To?
I am going to upload a MySQL database to a Unix server. However, what path do I upload to?
Something makes me thing /var?

View Replies !
How Can I Upload My Database From Local Pc To Server
I got a problem when I tried to upload MYSQL database. I don't have any idea how to upload it. It is my first time to do it. I already upload the pages from my local pc to server with Bulletproof FTP transfer and now I want to upload my database. For now I am using vertrigoServ 2.15 and I found my database in folder path C:Program FilesVertrigoServ2Mysqldatamydatabase. And I want it to transfer to my server.

Do I need to install special software to fix my problem?
Do I need to install MYSQL and php5 to my server?

If there is any one who can give me detailed information, please make it clear and more detail b/se I don't have any idea how to upload database.

View Replies !
Upload A MySQL Database To Server
I need to upload a mySQL database at least once a week to a commercial ISP, which means that I DON'T have access to their mySQL databases directly; i.e., I can't upload the actual mySQL database file. What is the fastest method for uploading a mySQL database in this environment.

View Replies !
Upload Large Sql Files

Any suggestions for how to upload large data files (.sql).

Our data is updated every few days, and we need to upload the data on our webserver. How we can do that.

We are using PHP/Mysql on linux server.


View Replies !
Upload MySql To The Server
how to upload mysql database onto the server? I was told to use phpmyadmin on the server to upload it. However I used FTP to upload the php files and do not know where to upload the database.

View Replies !
PHP Upload MySQL Server Has Gone Away
I created an upload script which works fine with smaller files. When I try to upload a larger file I get MySQL server has gone away.

I did a little research and saw that it may be the max_allowed_packet size on the MySQL server so I set it to 160000000, but I still get the same error.

View Replies !
How To Upload Database
This may sound like a silly question, but i m working with mysql and php for the 1st time.
After creating the website, how does one upload the mysql database on the webhost? can i upload through mysql administrator? what type of file does one upload? basically i have no clue.
Also can i store non-english text in mysql? will i be able to show it on the web page? what if the user doesn't have the specific font i use.

View Replies !
Upload Database
I create a database in my pc. now i need to upload it to remote server(I use third party hosting companies), but I don't know how to do that!!?
I have mysql admin software and also I know the command:mysql dump may help,

View Replies !
Upload My Database
Im an absolute beginner with mysql and have successfully setup and have working a licensed copy of VBulletin of which I have uploaded the php files for, but not the database.I am completely lost here. How do I upload the mysql database to the web server?

View Replies !
Database Upload Problem
I'm trying to upload my MySQL database to my host.
My host is using MySQL version 4.0.17, and I'm using version 4.1.8.

When I use the "gzipped" compression option to save the database from within phpmyadmin (to create a .gz file for upload), the upload process finds fault with the first line:

CREATE DATABASE `database` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci;

I've been told on this forum (by Guelphdad (Dave L.)) that the problem results from the COLLATE clause which didn't come in to MySQL until release 4.1.

So I'm trying to use the 'none' compression option. This causes DirectAdmin on my host to report:

Success!

Details

Database has been successfully Restored

But when I go to check it using phpmyadmin on my host, it reports that there are no files in the database.

View Replies !
Error Upload Database
I've concluded that it is not physically possible to upload a database onto my hosts machine.I persist in trying to prove otherwise.

Why would I get the error message:

Error Restoring database. That database is not yours.
from DirectAdmin? From within DirectAdmin on my host, I'm not logged in as ANY database user surely? There's no database there yet!! What priviliges need to set up on my computer to allow me to export it?

View Replies !
Upload Data From .txt To Database
how to upload data from a .txt file deliminated by ~ to a table in MySql database.

View Replies !
Upload Database To WebServer
New to mysql and running it on XP Pro, server ver 4.0.2, client ver 5.0.I've created a database which is used on my website, when I test it locally it all works fine, but I need to upload it to a linux webserver which hosts my site. My ISP says they don't know the extensions .frm .myd and myi. They say I need a text file of my database to upload. How do I create a text file and why cannot the linux server read the extensions? Is it because they were created on a windows machine?

View Replies !
Upload MySQL Database
I have prepared my mySQL db in my local machin. I want to upload the DB with all the tables and data in my webserver.

View Replies !
How To Upload Database To Host
I have a database 'foo' on my local machine that I would like to upload to a server where my website is hosted. How can I do that?

View Replies !
How To Upload Database To WordPress?
I just recently bought a website and I’m having a problem with the website not showing up.

I installed Wordpress through Fantastico, dropped the tables in MyPhpAdmin and imported the SQL file sent by the seller. All went smoothly but when I visit the address, nothing shows up.

Is there something I missed? Should I install manually? Should I add the database first before installing Wordpress?

View Replies !
Upload File Contents To Database Using C API
What I am trying to do is to take the contents of a very large text
file and place it into a LONGTEXT field in a database. I am looking
for a solution using the C API to help me handle this. The code I use
right now is very ineffecient. I basically use a VERY large character
array that is like 600,000 characters long and store an UPDATE query to
the database in this. I place the contents of the file being uploaded
into this query where I SET the LONGTEXT field to the file contents. I
know there has to be a much better way of handling this, so if you have
any ideas, please let me know.

View Replies !
XLS/CSV Data Need To Upload MYSQL Database
I want to upload XLS/CSV huge data (90,000 rows in a XLS/CSV file) into MYSQL database.

I want to use only Import option of phpmyadmin to upload XLS/CSV files. How can i to do/proceed such task using this graphical interface (without php script).

View Replies !
How To Upload Image Into Mysql Database
how to upload image into mysql database. my insert.php can move the uploaded images into upload directory(public_html/Upload). Now how can I have the SQL statement to insert the images from upload directory into the bob field ? I use the sql statement: Code:

View Replies !
Upload Mp3 File And Info Into Database
I decided to create a directory on my server to store the mp3 files instead and then to store the files path in the mysql

so I would first create the table like this


$sql = CREATE TABLE mp3_files (
id int NOT NULL AUTO_INCREMENT Primary Key,
Song Name VARCHAR,
Artist Artist VARCHAR ,
Release_Date date,
Additional Notes VARCHAR,
Path ?? );


where "Path" would it me VARCHAR type?? and how would I store the absolute path of the file using PHP

Lets say I had a folder called MP3_Files on my server that would contain all my mp3 files and I uploaded an mp3 song called big poppa? How would I store this location so that when

View Replies !
Beginner: How Do I Upload A .sql File To My Database?
I searched about the forum for this, but it only came up with issues of people have problems with uploading a database through phpMyAdmin that was too large. I don't have this problem (I don't think, the file is 7,000 KB), my problem is, I am completely lost in this area.

The instruction for the files I have read as: 'Upload the database database.sql to the mysql database.'

I presume I use phpMyAdmin for this? So I log into it, I have my fresh database created, I have all my details, dbname dbpass etc at hand... ha... now what?

Do I have to upload the .sql file to my webspace through my FTP? Do I need a command line to type into the phpMyAdmin thing? Something else?

Anything I have ever used previously, such a forums auto-created the databases for me or did whatever it needed to!



View Replies !
Migrating Large Db From One Server To Another
I am having huge problems migrating large db’s from one server to
another. I use phpmyadmin to dump the data into a file, and then
migrate it to my production server. Then I try to use this:
mysql dbname < filename
but if the tables are too large, it simply does not work.

So I tried the following two work-arounds, which work but are tedious.
Is there a nicer way to do it:

Solution A: Create a dump file with subset of all the tables, to
reduce size

Solution B: Take a zip of the table structure directly, and then copy
that. Problem here is that all the tables have to be individually
"repaired" so that mysql is in synch with its new data.

View Replies !
Upload And Fetch Images From MySQL Database
I want to upload nearly 10 million small images pertaining to some database into a mySQL database. Is there any way I can do this using Shell Scripts. Subsequently, I want to fetch the records based on specific conditions using a web based form. The images are in tiff format. Can someone pls help?
The table structure would be :
ID_Number -- varchar(10)
SIgn_Image -- ?? (less than 50 KB).

View Replies !
Can I Upload A MYSQL Database To My Free Web Hosting Space?
I have a domain with awardspace.com which has php and MYSQL enabled.

I am a newbie and not quite sure how to set it all up or if it's even possible with the Database I've created on my desktop.

When I go to the Database Manager in the administrator section it has a spot to create a database,and confirm a password. From there I take it you would use the PHPMyAdmin to alter the database.

Can I just upload a database using an FTP manager like Dreamweaver, or do I need to start from scratch and create the database on this server. If so is there a way to eventually download it so I don't lose any of the information in it.

View Replies !
Live Backup Of Large Table On Production Server
I have a production server serving ads on our website using Openads (currently version 2.0) via PHP, MySQL, and Apache.

It's been operational for over a year now and the database, two tables in particular, have grown to a few hundred megs. It's live and we can't afford any downtime for this server as it serves our ads to generate revenue for us. Whenever an ad is viewed, a new recorded is added to the database. However, in order to do a backup, usually mysqldump, that requires locking the table for several minutes, during which time, it locks the tables, and any httpd (in our case all of them) processes depending on those tables.

Finally, the point of this post, DOES ANYONE KNOW A WAY OF BACKING UP OR DOING A MYSQLDUMP WITHOUT LOCKING THE TABLES for a very large database?

Can I just run a query that will get me all the information without locking the tables (relational problems shouldn't be a problem yet cause its usually only 1 table being written to).

View Replies !
VERY Large Database
I have such question - how I should split large data for the better performance?
Its seems to be old question, but can't find it in search

Lets say if I have 10000 items, each have 10000 records - at the start and much more later.
Main operations - INSERT/SELECT (search for the records on some item by key)
DELETE/UPDATE almost will not be used (because of the implementation)

I see few possible options
1. Create 100 databases, in each 100 tables, in each 10000 records (records for the 1 item).
2. Create 1 large table with internal index.

As I understand, main difference between 1 and 2, that in case 2 main load will be drived to the mysql and index, in case 1 main load will be drived to the FAT (or whatever else used at the server).

But before mysql will use index large file (or its index) will need to be loaded, so in case 2 FAT will be loaded too.

IMHO option 1 is better from performance side.

View Replies !
Extracting Data From Large SINGLE-table Database To MULT-table Relational Database
I have a very large single-table database of articles that I want to convert to a multi-table, relational database.

The existing single-table database contains fields for article author, article source, and article category, where several 'author', 'source', and 'category' IDs repeat dozens of times for hundreds of different articles.

I want to create seperate tables for author, source, and category and populate the new tables by extracting data from the original single-table database by unique ID field.

I figured out how to use INSERT and SELECT to pull data in new tables, but can't figure out how to pull only a single instance of a unique author, source, and category to create master reference tables for author/source/category.

View Replies !
Import Large Database
I saved my website databgase to my home computer. I am setting up a local
version of the site, and need to import the database. I have mysql and
everything set up.

But when I try to run the sql script that I exported from
my site's control panel, I get an out of memory error. What is the proper
way to import this database? Do I need to increase some memory setting?

View Replies !
Large DataBase Columns
I am developing, what i consider to be, an extremely large database, using mysql and php.
im concerned that one of my sql tables will be too large.
tonight, im running some tests, but i was hoping the forums
could toss me some good advise.
The table will be around 1500 columns long, and
about 500 rows on average.
each column will not be any larger than 20 varchars.
i've never created anything beyond 30 columns.
is this beyond what's recommended with using mysql ???
i know the queries may take a little bit to load, but is
this simply a bad idea anyway, or am i just getting nervous
for no reason at all.

View Replies !
Large Database Table
I am using MYSQL in order to develope a database table that currently has about 20 million records. The table grows on a daily basis and is expected to grow to a size of about 300 million records.I wanted to get some suggestions in order to handle such large database. What kind of indexes are best? When should splitting the table be considered? What are ways of achieving good performance of queries?

View Replies !
Large MySQL Database
There are many threads on here about large db designs etc but I'm looking for a little information I have been unable to find anywhere.
What sort of design to places like facebook/myspace use for their database(s).
Is it best to have a table for user info (id, username, email, etc) then have a table for every feature of your site (blogs, pictures, friends, comments etc etc) or do they have a table for every user.
I would assume the first as a table for every user would soon grow very very large and become inefficeint.

View Replies !
Split Large Database
I made a backup from cpanel and install a forum and website in localhost, with easyphp. Everthing works fine, but i need to install using pypmyadmin my database.
But phpmyadmin only import files at 8 Mb. My database are larger, almost 20Mb. I would like to know how to split my database in small files, in order to import from phpmyadmin. Maybe exist a software with a grafic interface?

View Replies !
Reduce Large Database
I have run into some issues as of late.I have a php program that stores information 4 times / day for multiple items in my database. This has been running for quite some time now and there are many, many records in the database.
The records are the same most of the time for each 'item', but it is used to archive information. At this point there are so many records that when I run queries from either PHP or a .NET application, I am receiving errors (which I think is really just the database timing out, but giving me different errors instead). I think this because when I run a smaller query, the code runs just fine.
So, I wrote a program in .NET that goes thru the whole database on an 'item' basis, iterates through and compares, if the current item is identical (besides timestamp) to the previous, then the current is deleted. This would probably move the records down from about 2 million to about 1000. However, this query will not run because the database is just too big (that's my guess)

View Replies !
Movement Of A Large Database Over A Wan
I have a need to transfer a 80GB live database over the Internet (one colo to another colo, no VPN's established). Then keep it consistent up to the colo cutover date.

I understand how to setup the replication once the initial copy is made, but my problem is over how to get the initial backup from colo1 to colo2....while maintaining the ability to keep both databases consistent.

My initial thoughts...
Can one lock the master DB, take a backup, establish SSH replication between the two servers, transfer the backup file (WAN, FedEx, etc..), and then import the backup file once it's transfered from A to B.

From how I see it, the DB will be taken down in a consistent state and replication will run for all new transactions. I'll miss all the historical data, but that will be solved once the backup is transfered and imported.

View Replies !
Large Database In Mysql
I have a database with two tables in MySQL 4.1. Die one tabel contains about 300,000 records and the other table contains about 70,000 records. I tried joining and subquering (very simple sintax) these two tables and received no result. The processor of the server was being tied down. I went to a bigger computer with the same results. I then tried minimizing the tables and had to go to about 10000 and 8000 records respectively, before it worked.
I did not try indexes, because I wanted to make a comparison between no indexes and with indexes. Granted I did not tweak many server variables, but shouldn't this
just make the query slower and not completely tie it up?

View Replies !
Is A 100mb Database Large Enough?
I run a forum on www.TheFloorPro.com and just added a gallery add-on. Images are stored on the server as files rather than in the database, but I am still concerned about the database size.

After doing a database backup today, I worry that my allowed 100mb database will become too small in a short time. It is already at about 10mb in just over 2 months time. My host is 1and1 and they allow 100 databases of 100mb each, which I don't understand. Don't know why I would need a hundred of them and don't know why the one or 2 that I might need are restricted to 100mb.

View Replies !
Question About A Large Database
a quick overview of what I'm trying to do. I have a database with about 3.5 million unique items. There is a table that covers which categories each item belongs to. The average item belongs to 3 categories.....the categories are used for navigation on a website.

The question - is it better to split each entry for each category into a its own row (~10m rows) or to have each unique item and list all of it's categories in a delimited fashion (category2323|category23489|category382233) in a single row for each category and only have around 3.5m rows.

View Replies !
Uploading Large Database.
I am trying to upload a large mySQL database of 120mb.

the file was downloaded from cpanel using the backup facility and is called forum.gz.

I have placed it on the root of my server for the time being.

View Replies !
Uploading A Large Database
Can someone please comment on how to host a large database - a database of about 500 MBs. Is a database of this size going to work on a shared hosting environment or is a dedicated server a must? And, how would you go about upload or importing the database to the host? I could be wrong, but I don't believe phpMyAdmin will allow importing a file over 50 MBs.

View Replies !
Large Database Problem
I am developing a PHP & Mysql application. I am using one big table to collect data and some other small tables. The problem is that with the growing number of the rows in the big table my application is getting slower and slower.

The application executes a lot of INSERTS almost all the time ( while collecting data). And then it calculates and summarize the data into statistical reports (this is done on demand at realtime). I opimize my queries with EXPLAIN as much as I can and rewrite a lot of them and it became faster but only for some time.

I read about the MyIsam storage machine that its locking mechanism is on table level so when an INSERT is executing the table is locked for SELECTs so they have to wait. If that is so is there any solution to this problem?

As more of the SELECTS are used to fetch number of rows or other statistical information I am thinking of writing a module to proccess and calculate the data (for example once a day) and to store it in summary tables and then fetch the summarized information for the reports. Is the a correct approach or its a waste of time?

And there is one more question. Accept for the summarize data one part of my application uses also the raw data, usually a small part of it (let say 100 rows). I was thinking with the processition and calculation of the data to perform also dublication of the information (maybe optimize it a little bit) in another table to use later for that kind of queries. Do you have any other suggestions. (A couple of month ago I tried to summarize the data while inserting it but it wasn't a good idea)

My table right now has 67000 rows and it works just fine when I am summarizing on about 10000 rows but it is geting really slow for 25000 rows. I expect to reach 50,000,000 rows for an year and the reports are going to be on 3,000,000 rows at least.

And some more information to help you help me . I execute each of the queries alone and they work fast but some of my reports (web pages) need to exequte 10 queries and it takes 10-15 seconds to load. All of the reports are made depending on a selected timeframe so do you know any working schema about storing data depending on time.

View Replies !
How Large Can Be A Mysql Database?
I have a q:

how large can be a mysql database in order to operate in optimal conditions?

View Replies !
Migrating Large Database
We've recently upgraded our DB server, and I now have to move our fairly large (10GB) DB to the new server. The DB consists of both MyISAM and InnoDB tables. The largest table is a 9GB InnoDB table with binary image data.

What's the best way to a) back the data up, b) migrate the db to the new server?

View Replies !
How Do I Backup Large Database?
I have a forum with over 130k members and the database is quite large. I'm on a shared server through hostmonster.com

My question is, how do I completely backup this forum database so if anything ever happens, I can restore every single detail.

Is there a way to do so that doesnt require codin or anything?

View Replies !
Large Database To Handle
I need to store more than 500 million records in a single table. These are basically historical data of different stock market for last 40 years.
Initially I thought about partitioning for each company. But there are more than 1024 companies. At the same time if I partition the database based on year then to show the chart for a particular company I need to call almost all the partitions.



View Replies !
Could Not Connect To The Database, Please Recheck The Settings You Specified. Also Make Sure That A Database With The Name You Specified Already Exists On The Database Server. PhpAdsNew Will Not Create The Database For You, You Must Create It Manually
The error message I get above is the same everytime when trying to install phpAdsnew. I have tried everything. I am hosted through yahoo! and have actually succesfully installed scripts before even though I know nothing about it. Now that I have a "auto-install", it does not work. Yahoo! also offers php-nuke with the auto-install where you just click a few buttons, and I get a similar error stating that it can not conect to the database.

Please can anyone help me and tell me what I am doing wrong?

View Replies !
Join Tables On A Large Database 200 Meg
i am trying to work out the most efficient way to list say multipl=
e categories of entries, the database is quite large about 200 meg.=20

I would like to know if using join tables is more efficient than storing th=
e keys in a varchar field then within the second loop doing a where in (1,2=
,3,4) where the 1,2,3,4 are the stored category keys in the varchar field =
rather than a where in (1), where 1 is the pirmaryID of the entry for insta=
nce ?

View Replies !
Large Database & Distinct Values
I have a rather large database table that has a column with maybe 20 different values repeated on and off throughout the database (around 4000 records total). Could someone shoot me a query example of how I can pull each value from this column once to create the list of the 20 or so reoccuring values? Lets call the column work_type. I think I'm maybe just missing knowledge of a particular query command for the WHERE portion maybe?

View Replies !
Changing Field Of Large Database
I have a fairly large database of aprox 7 million records. One of the columns is of type TEXT and I was wondering if it would be possible to change this to MEDIUMTEXT or LONGTEXT without complications?

Is this doable or is it discourraged to perform this operation on such a large database? The field is not indexed, it's simply there containing text and now I want to stuff even more text into it.

View Replies !
Large Database With Many Concurrent Users
We are looking into how to setup MySQL to have the best performance for mostly reads (around 70%) and some writes (around 30%). The database size is expected to start around 200GB for the first year and expand to around 1.5TB in 4 years. There will be around 350 concurrent users starting off, and it will expand to around 700 concurrent users within 4 years. It seems that clustering is out of the question due to RAM requirements.

One scenario I thought about involved having around 5 servers with replication setup to store a copy of the DB on every server. Another way involves a SAN, but I'm not sure how MySQL supports a SAN to store a DB that size while allowing just one copy of the DB to be located on the SAN. In other words, all MySQL servers access one DB on a SAN. Does anyone know which scenario would work best, or if there are better alternatives out there?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved