durangod
12-25-2010, 03:09 AM
im trying to correct my auto database backup php script, i need the backups from the script to be just as if i did an export from myphpadmin. so all i have to do is import them..
i did a backup thru my php script and then i did another back up thru myphpadmin and i compared the sql files...
the difference i see is the header information, other than that its pretty much the same..
i dont expect anyone to do the work for me here. im just asking so that i can get a clear picture of the road ahead..
So question is, in order to make my php script create exactly the same as myphpadmin i would just simply have the php script write a similar header to the file..
the problem im having is that when i use a backup from y script im having to del the table and reacreate it, when i use the myphpadmin versi
is that pretty much in the ballpark ... or is it much more complicated
ok i thought i would show an example of the dif
here is the first part of my php script backup sql creation
CREATE DATABASE `xxxxxx_mastxx1`;
CREATE TABLE
and here is the first part of the myphpadmin sql using export
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 24, 2010 at 06:48 PM
-- Server version: 5.1.46
-- PHP Version: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 */;
--
-- Database: `xxxxxx_mastxx1`
--
-- --------------------------------------------------------
i see a dif in the create db vrs the myphpadmin that does not have that...
should i just go with the format of the myphpadmin version and have the php script follow that format
the problem im having is that when use the script version i have to delete the db first , when i use the myphpadmin version i dont have to i just import it as is and its great.
i did a backup thru my php script and then i did another back up thru myphpadmin and i compared the sql files...
the difference i see is the header information, other than that its pretty much the same..
i dont expect anyone to do the work for me here. im just asking so that i can get a clear picture of the road ahead..
So question is, in order to make my php script create exactly the same as myphpadmin i would just simply have the php script write a similar header to the file..
the problem im having is that when i use a backup from y script im having to del the table and reacreate it, when i use the myphpadmin versi
is that pretty much in the ballpark ... or is it much more complicated
ok i thought i would show an example of the dif
here is the first part of my php script backup sql creation
CREATE DATABASE `xxxxxx_mastxx1`;
CREATE TABLE
and here is the first part of the myphpadmin sql using export
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 24, 2010 at 06:48 PM
-- Server version: 5.1.46
-- PHP Version: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 */;
--
-- Database: `xxxxxx_mastxx1`
--
-- --------------------------------------------------------
i see a dif in the create db vrs the myphpadmin that does not have that...
should i just go with the format of the myphpadmin version and have the php script follow that format
the problem im having is that when use the script version i have to delete the db first , when i use the myphpadmin version i dont have to i just import it as is and its great.