i have a new apache2triad install, only used in localhost mode with no intention of setting it up as a internet connected web server with dns and such, purely so that i can learn more about the server side of things, and more about the config of apache, sql, and php etc, and develop scripts and test them away from my remote server.
all is well as far as i can see and everything works apart from php mail not relaying on the server, but at the moment this is not a big issue.
what is giving me a headache is not being able to load my sql database using phpmyadmin. i have exported the sqldb on the live server, and have it on my local pc. i have increased the file upload size to cope with the db (5.7mb) and i have tried changing the max_execution_time = 600, but it still bombs at 300seconds. if i import a small db, everything seems fine and the import is a success.
the error i get is this
Fatal error: Maximum execution time of 300 seconds exceeded in C:\apache2triad\htdocs\phpmyadmin\libraries\string .lib.php on line 91
the db file im trying to import has some extra bits at the top of the file that are not in the file generated locally, and need to be removed before the local server will accept the file otherwise i get a #1065 - Query was empty error. ....
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
by looking at the data contained in the tables i know that the db file is being processed correctly, but not to the end as it times out before it can finish.
anyone got any idea what i need to do to get myphpadmin to process the whole db file without having to split it into little bits, as i will be loading and dumping lots of db files of around the same size.
Do you have access to the command line? If so you can use the mysql command. Otherwise, breaking it into bits is probably your only option.
Mysql syntax if you do have access is
mysql -u <USERNAME> -p <DATABASE> < <IMPORTFILE>
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Must read Review for Serious PHP Developers
NuSphere PhpED 5.0
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.0
(a popular PHP IDE) and
NuCoder 1.4
(a PHP Encoding Utility), read up on all the details.