Welcome Guest, Not a member yet? Register   Sign In
Importing .sql files
#5

(02-05-2024, 05:06 PM)kenjis Wrote: It seems the package does not provide feature to import.
But there is a sample code to import:
https://github.com/ifsnop/mysqldump-php/...p-from-php

There's no documented example but there is a "restore" function in the class which looks to use to incorporate that same code. The readme says one of the features is:
Code:
can restore a dump from a file, when no mysql executable is available.

I was able to use it to restore a dump.
Reply


Messages In This Thread
Importing .sql files - by jetspeed - 02-05-2024, 12:49 AM
RE: Importing .sql files - by kenjis - 02-05-2024, 01:09 AM
RE: Importing .sql files - by jetspeed - 02-05-2024, 09:26 AM
RE: Importing .sql files - by kenjis - 02-05-2024, 05:06 PM
RE: Importing .sql files - by jetspeed - 02-05-2024, 08:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB