Re: Creating Mysql DB with PHP



> It occurs to me that you could include the database files with the
package,
> and have the configuration script copy them into the correct directory.
This
> is much faster than running it as queries, and you won't face the
drawbacks
> with copying the database a row at a time (or running it from a dump)
>

I would try this... But can you tell me where the database files are ?

Alex.




> If you are running insert queries, the cycle will take much longer as the
> database gets bigger, so you will reach a point where PHP timeouts
interfere
> with running the program. You can change the PHP timeouts, but then you
run
> into SQL timeouts - and so on :) The database I was working with required
> everything to be broken up into smaller pieces & restart the process after
a
> pause.
>
> Use mysql_create_db() to create the database. Creating a database in MySQL
> consists of MySQL creating a directory in the MySQL data folder. All you
> need to do after this is copy the 3 relevant database files into that
> folder. If they're included with the distribution files, this would be a
> simple matter.
>
> Hope that helps at least a little
>
>


.



Relevant Pages

  • Re: Partial reinstall of XPE database
    ... Thanks, Andy. ... >> D drive was where my XPE database files were installed, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Do I need to set..
    ... "Sylvain Lafontaine" wrote: ... Right-click on the database | Tasks | Detach... ... the databases on SQL-Server in the same way that you are seeing your MDB ... to individual database files. ...
    (microsoft.public.access.adp.sqlserver)
  • [ANN] Accuracer 1.34 and SQLMemTable 1.31 have been released
    ... Now Accuracer database files can be compacted and repaired. ... SQL scripts running speed was essentially increased, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Sharepoint backing up
    ... You might find the database files under ... Program Files / MS SQL Server / MSSQL / Data ... What is the likely file name for the database file so I know what ... SBS 2003 installation so we know where we are. ...
    (microsoft.public.sharepoint.windowsservices)
  • Save XML data to new(empty) Access Database
    ... Dataflex database files that I have been able to export to XML ... and display the tablein a datagrid. ...
    (microsoft.public.access.externaldata)