Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




How Can I Increase The Import Maximum Size For MySql


I have a requirement for importing a sql file in my local databse.I
have exported the file from the client database.That file is more than
50mb.I want to import this sql file into my local database.My Maximum
import file size showin as 8mb.I tried to change by editing the ini
file.But still it showing the same.I am using phpMyAdmin.Please tell me
the procedure to change the Maximum File Size for Importing sql file.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Increase The Size Limit Nore Than 4 Kb While Mssql_fetch_array()
I am using php and ms sql .In which while fetching data from the databse using mssql_fetch_array() . i am getting data only upto first 4 kb ,the remaining think are not getting . i had increase size limit and text limit in the php.ini also.

Maximum Dropdown Size
I have a strange issue with dropdowns. Using php4, mySQL5, Apache 2 on
a fast XP pro PC, I have a form which requires 5 dropdowns populated
with indentical values. I extract the values using SQL and populate 2
variables and use a for-next loop to create the dropdown. The dropdown
contains some 310 items! It works beautifully if I have 1 or 2
dropdowns but as soon as I add more it partially creates the 3rd and
just stops until it times out!
All 5 work because I have altered their positions but it always stops
part way through creating the 3rd dropdown.

I tried an alternative method by doing away with the variables and
constructing the dropdowns with a 'while' statement reading through
the results of my SQL and got exactly the same problem only 2 and a
bit dropdowns.

Stopping it running after a few seconds or several minutes makes no
difference, it seems to reach a certain point and just stop - no error
messages or anything!

I have tried increasing the resourses in my php.ini file but this also
made no difference.

Can anyone suggest an alternative or a fix?

Maximum Integer Size?
I'm trying to figure out how big integers in PHP can be and am having
some difficulty.

My first idea was to try something like this:

<?
for ($bits=0; (1<<($bits+1)) > (1<<$bits); $bits++);
echo $bits;
?>

The result was 30. This, however, is incorrect as the following
demonstrates:

<?
$num = 1<<30;

echo "num = $num
";
echo 'num<<1 = '.($num<<1)."
";
echo 'num*2 = '.($num*2)."
";
?>

That my first idea would return the wrong result doesn't surprise me,
though, since bitwise operators in PHP are treated as arithematic ones
and not logical ones.

So I came up with another test.

<?
for ($bits=0; pow(2,$bits+1) > pow(2,$bits); $bits++);
echo $bits;
?>

In Windows XP, I got 1024 back. On Linux 2.6.13.2 and 2.4.28 (as
reported by phpinfo), all I get are timeout errors. So I decided to
make my script more efficient and hopefully faster:

<?
$x = 2;
$y = 1;
for ($bits=1; ($x*=2) > ($y*=2); $bits++);
echo $bits;
?>

On Windows XP, I again got 1024 back, whereas on Linux, I again got
timeout errors.

Maximum Size Of Cookie Content
I was wondering if anyone knows whether there is a maximum size limit on a cookie content
If so,

1) Is this a limit per cookie in a single domain? i.e. no single cookie value can exceed XX bytes
2) Is this a limit on all the cookies that get saved under a single domain? i.e. the total size of all the cookies cannot exceed XX bytes
3) Is the limit different from browser to browser?
4) How can I detect what the limit is?

What Is Maximum File Size For .php Files?
I'm currently working on a 56kb .php file, but my (Windows) PHP interpreter crashes very often when displaying the php script in my browser. What is the maximum size for .php files, and is 56kb actually too big? Should I split it up?

Maximum File Size That Can Be Handles With A PHP Script
I am currently trying to debug a script written by my predecessor.
Basically I have an HTML form that is used to upload a file that is
then processed using a PHP script. It has been in frequent use but I
have just been contacted because there is a PDF document that is not
uploading.

I reckon it may have something to do with the file size. All the
previously uploaded files are relatively small (<2MB) but this one is
about 5MB. When I try to upload the file using the script, which I know
uploads the file as it has been in use frequently in the past and I
have tested it with other files, it appears to reject it. When I do the
following (before any processing when the form has been submitted):

echo $_FILES['file']['size'];

....it returns zero (0) indicating that something has gone wrong
although when I do the following:

echo $_FILES['file']['name'];

....it returns the name.

I have tried including a hidden HTML form element MAX_FILE_SIZE and
setting it to exceed the file size (in bytes) but still no luck. Could
it maybe be something in the files content?

Session Limit (maximum File Size Of A Session)
We all now that upon calling session_start(), it will create a file and in this file the session variables that you assigned will be stored. My question is how big can a session file can be? is there a limit or maximum file size for a session file?

Php Import Xls Into Mysql
<?php
$target_path = "/home/vol1/example.us/a/ayush/www/virtual/closing/";
$target_path = $target_path . basename( $_FILES['file']['name']);
if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['file']['name']). " has been uploaded";

include ('mysql.php');
require_once 'reader.php'
$data = new Spreadsheet_Excel_Reader();
$data->setOutputEncoding('CP1251');
$data->read('closing/closing.xls');
error_reporting(E_ALL ^ E_NOTICE);

for ($i = 2; $i <= $data->sheets[0]['numRows']; $i++)
{
$closing = $data->sheets[0]['cells'][$i][2];
$sql = "UPDATE listedcomp SET closing = '$closing'";
if (mysql_query($sql)) {
echo "Done";
} else {
mysql_error();
}}

} else{
echo "There was an error". $_FILES['file']['error']." uploading the file, please try again!";
}?>

PLEASE HELP! This code isn't importing the data properly....when i see the closing column...all the values are set to 1000, idunno why?

The column is set to interger type......

Import SQL7 DB Into MySql?
Can I import a a SQL7 table into a MySql?

Import Access Into MySQL
Is there a way to import MS Access into MySQL? Maybe create a CSV or
something. If so, what would be the SQL to do this?

Import/export Problem With CSV/PHP/MySQL
I need to design an import/export system. Data comes from a filemaker
pro DB in a big CSV file. Some alterations are made on the data as it is
imported into my mysql table. Data is something like :id,text1html,
text1raw,... .

Problems :
1. Texts can contain html tags, including entities (&quot; etc), so
using only the '' as separator does not work.
2. Some line are so long that is appears php breaks them down, so I lose
data reading the file.

For 1, I've come across fgetcsv() in recent posts. Works fine for now.

For 2, I can't seem to find a solution. I've tried to detect "broken"
lines and stick them back together but no effect...

Another problem arises when I try to export the data back into CSV, as
it is suposed to be used in Excel. The CR/LF that are in the text are
logically interpreted as new rows in Excel. How can I get around this ?
Is there a special "new line" character that excel would not interpret
as new row ? Should I try another file format ?

Import Data From Access Database To MYSQL
I have some data in access database. I wish to import it (keeping the same structure) in MySQL.

Also I want to know what will be procedure for importing data from databases like Oracle, Sybase, Informix etc.

Import Excel File Into MySQL Database
I am relatively new in this field, and one of my first challenge is the following :

Importing an Excel file, containings URL, into a MySQL database.

It must be the simplest process possible for the end user, avoiding as far as
possible all steps of converting and/or transforming files.
Of course, we want to preserve the identity of the URL.

Import Excel File To Mysql Database
i want to import excel file into mysql database .

Setting A Maximum Limit On A Php/mysql Result?
I am using PHP and MySQL to do this script. I want to have a table that contains only numbers for data and then add them all up as a result to display and that I have accomplished with no problem and then I want to display a percentage of that number to the public however that also I have accomplished with no problem using round()...

The problem is I am trying to set a maximum number that it displays.

I want it to display 1-500 no matter what the number is or the decimal it may have is provided it doesnt exceed 500 but once it does I want it to display 500 as the limit so even if it is say 674 I want it to only display 500. How would I go about doing this?

The sql I am using for the adding is SELECT SUM which works just fine and I am using round( $total_number *.15, 2) to display the percentage number of 15%.

Maximum Execution Time Exceeded With A Mysql Query In A Loop
My script inserts a huge amount of rows to a mysql table and just as easy it deletes them, so to optimize the index numbers i'm trying to make it so that when i'm adding new rows it searches for an empty one to add the new one in.
It's a phpbb mod i'm writting. This is the code i'm trying: Code:

Getting Mysql Table Size?
How would I go about getting the size of a table in a mysql database with php? I am unable to find info on this in the manual. Which page is it on?

Size Of Mysql Result Set
How do I find the size of a mysql result set using php.

Increase Date()
i have: $nowdate=date("Y-m-d"); and i want to increase it by 6 months, how can i do that?

How Can I Increase Upload_max_filesize In Php.ini
How can I increase upload_max_filesize in php.ini from scripts.

Number Increase
I have a code which starts with a letter and then digits follow, an example code looks like

D002482

How can I get php to increase the codes number by 1, leaving the letter the same.

The above would look like

D002483

I tried

$codenum = substr('D002482', 1);
$codelet = substr('D002482', 0,1);
$code2 = $codenum+1;
print $codelet.$code2;

But that seems to remove the 00 at the start of the code.

How To Increase Speed?
I am building small application like utube. First thing is I want to convert different type of video format  into .fl(on server side) , How can I do this?
second thing is How can I increase speed So the video get visible to user as quickly as possible?

Size Of A Mysql Stored Session?
We are currently storing our sessions in a database for an online application that we have. I'm wondering if there is a way to find out in bytes/kb the size of a session...
A preferable way to find this out would be to echo the size on a browser page load for example...or at the end of the page load. Has anyone tried something like this or is there another way?

How To Increase The Execution Time ....
How can we increase the execution time ? I told them we can increase  the limit in the php.ini file then again they told me how we can do in the code?? I don't have any idea about this can any body tell me the answer .

Increase Date And Time
I need to increase a given date and time (by a flat text) with 30 seconds(incremental) on each item coming from my database.

exmpl:
item1 date  Apr 24, 2007 19:00:00
item2 date  Apr 24, 2007 19:00:30
item3 date  Apr 24, 2007 19:01:00

someone got an idea?

Want To Increase Upload Speed : Php
I am using php script to upload file. sometimes if file size is too big(1GB) it takes too much time to upload.

How To Increase PHP/pgsql Develop. Performance?
Can anyone give me recomendations on software that can increase my performance when devenlopping Php and Postgres applications?
I'm currently working on a big project and its taking too long (3 people working on it).

PHP Script Increase Server Load, What To Do?
I have built a php script and am using it on my apache server (php version 4 and red hat linux).

The problem that I am facing is that whenever I use the "top" command via ssh on my server, it shows a stuck httpd request due to these php scripts. The request remains stuck for an unforeseen time, increases memory usage and thus increases server load and processing power. Not just 1, there are several such httpd requests running for a very long time and I could say that they terminate only when I do a apache restart.

Finding Total Byte Size Of MySQL Query
I am working on an website messaging system. I want to be able to limit the amount of mail they can keep in their inbox. I want to do this by assigning them an amout of storage, but I need to calculate the total size of a MySQL query such as:

PHP + MS Access + How To Increase The Speed Scripts Are Executed At.
Background:

I have written a Call Logging and Reporting System using PHP that integrates
with an existing MS Access Database. The information in the database is all
held in flat tables with no relationships (I don't know why they did this)
and the users are currently using VBA forms to enter info into the database,
this meant that each time someone wanted to do a report of the call's
recorded over the last week that they would have to go throught the database
themselves and compile a report (e.g. re-type the info into excel or
something). I'm using PHP/GD to generate bar/pie charts and reports in HTML,
PDF and ms excel formats (well a CSV file).

Question:
Each call needs to be allocated a unique number, the way I'm doing this at
the moment is using SQL to look through the database and find the last
record and then incrementing it. The problem is that at the moment there are
over 40,000 records in the database and its taking roughtly about 11 seconds
for that call logging PHP page to load. Is there anyway of improving this
(other than increasing memory/processing power on the server side).

How To Do Import .sql File To A Db In Php
how would i would do something like this only with php

mysql>mysql -u user -ppassword database < file.sql

Import Dbf To PostgreSQL
Anyone can help me...i don't know how to import database from dbf to
postgreSQL......

Import Sql File Please Help Me!
i have just installed mysql on osx. i think its running ok. i have tried to import my dump file from the remote server to my local mysql. but no luck! please help me

tying to use -u -umyusername -pmypassword < path to sql file
in the mysql terminal in shell on osx

but its not working. to be honest i dont have a clue when it comes to using the terminal. i cant seem to be able to even create a new databse.

i have my .sql file and i want to run my local mysql the same as the production mysql online for testing.

also my database is called mydomain_com_-_mydatabase

not sure why i have _-_ but online all my php works fine.

i dont want to have to use two connect scripts, can i use the same connect script to connect local and remotely.

some one please help me to get mysql up and running localy!

Import And Export
Anyone could give me some tips about coding an import and export php script
with mysql ?

Import A Database
I need help importing a database using MySQL and PHP. I have a file that is tab separated, and I need to import it into a MySQL database.

Directory Import?
I'm developing an interface where I want the user, after logging in, to be able to view files such as images, pdf's, quicktimes.  First off, can they view these files within the interface or do they have to open the PDF's and Quicktimes with another piece of software?

Also, because the files will be changing every few hours, can I set this up so that they load from a folder rather than from a database.  I would need to be updating the database 24 hours a day in order to keep up so it would be much easier for me if they loaded from the folder.

Automating A Datafeed Import
I am integrating an external datafeed that is changing daily. How do I make my MySQL database pull this fresh data daily and update all my pages with new content?

Import Geographical Data
I'm writing an internet marketing application in php and I need to
import inside a mysql db all data about countries, district or
provinces, towns or cities, villages or other places of interest in
the world.

Can you suggest me where I can import or grab or simply buy these kind
of geographical data?

PHPMyADmin Error CSV Import
I recently upgraded to XP, Latest Mysql and Latest PHP. I run IIS local and used to be able to imprt CSV files to all my external databases as well as my local. Now I can only do it on my local. When I try to import to an external i get the following error using PHPMYADMIN SQL-query :

LOAD DATA INFILE 'C:PHPuploadtempphp24.tmp' INTO TABLE `developers` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '' LINES TERMINATED BY '
'
MySQL said: File 'C:PHPuploadtempphp24.tmp' not found (Errcode: 2) Now I thought it was permissions but they are wide open and I have the ini file set up correctly i think for windows - i have tried all combos of slashes so not that:

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

file_uploads = On
upload_tmp_dir = C:PHPuploadtemp
upload_max_filesize = 2M

Web Form Using Php To Import Into Access Db
I need to make a web form in php, that sends me the results by mail, ok, that is the easy part, I know how to do it, the thing I don't know, is that I need that the results get formated to import them into Access, as a delimited text with | delimiter.

I already have the web form, but the results that send by mail are not formatted to import them into Access, here is an example what I need, to ilustrate my question better:
Web form: (What the user see and must fill) Code:

How To Import Contacts From Hotmail
Please give me the solution for to import the contacts from Hotmail. I
searched for this criteria in google. It gives some demo site which
provides the actual process. Anyone got the script for import contact
from hotmail....

Mass SQL Import (singles Are Ok?)
i have some code that imports alot of data into the MySQL database,

Now this is fine when i use the INSERT INTO one record at a time.. but if i do 2 records ie

INSERT INTO `PB2` (`field1`,`field2`) VALUES ('111' ,'222');
INSERT INTO `PB2` (`field1`,`field2`, `field3`) VALUES ('333' ,'444', '555');

in which case i get the error

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; INSERT INTO `PB2` (`field1`,`field2on line 1

so it would seam the ; is causing the problem.. but even when i do them one by one it has the ;, AND if i copy the SQL statement that is echoed with the error and run it in PMA (phpMyAdmin) it runs without error!..

the only thing i can think of is a limit set by the host.. ?

Import Data From File.sql
i have already backup my database into a file named backup.sql from phpmyadmin..
now i want to make an interface using php to restore it like phpmyadmin too, does anybody know how? when i click submit then file backup.sql will be restored in database, Code:

File Import Script
I currently have an uploader that runs on my site that allows the user to upload a .csv file to the server, it then prompts them to match up each field in the file with the corresponding field in the database table.  It works pretty good, but a little bit clunky and with the way I currently have it setup, it will only insert into the database, I can't update. 

Does anyone know of a good .csv uploader that will let the customer match up the columns in the .csv file with the fields in the database as well as do updates and inserts with records in the database? 

Maximum Sizes
I have few more questions what is maximum string size, maximum header size for sending e-mails & maximum html e-mail size if we want to send html content in body and set content type tex/html.

How to configure linux server to increase mailbox size so that I can send huge mails. I'm really in a great trouble, It will be of great help to me if any one tells me this maximum sizes and how to handle if maximum size exceeds.

Maximum And Minimum Value
I want to find the maximum and minimum, average value from the text file

<?
$lines = file('./data.txt');

                foreach ($lines as $line) {
                $text_line = explode(":" , $line);


$text_line1 = explode(" " , $text_line[2]);
array_sum($text_line1);
}
?>

This method I am not able to get the array sum..... How to get the numerical value of numbers from strings When I explode the line it is in string format. I should find the array_sum and max() which I values  are in numeric not string.

Import CSV File Into Database Table
Are there any programs like phpmyadmin, that allow you to import CSV files without first converting them into mysql statements? mysql front?

I've created the table and fields, and it should be easy enough to import the data into its respective columns.

How To Import Images Stored Into A Remote PC
I need to put into a page of my site a window to "Sfoglia" into the PC of the visitor and to import to my site/server images.gif stored into his PC.

Check A Directory For Files To Import
I want our company employees to be able to update our website with special formated emails. My IT guy has made a perl script to parse the email to a text file formatted the way I want.

I want him to dump the txt file into a directory, that is being watched. When a new file is put there, I want something to pass the name onto my PHP script, so it can run, and import the file into mySQL. My PHP script works if I tell it what the name of the file is, but I have to execute the script myself. I am not sure if I can use PHP to monitor the folder for new files, or if I need to use a crontab, or what?


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