Creating tables and inserting data (MySQL Dump) using PHP Doctrine 1.2

Posted by Dimitry on Stack Overflow See other posts from Stack Overflow or by Dimitry
Published on 2010-05-13T18:38:33Z Indexed on 2010/05/13 18:44 UTC
Read the original article Hit count: 195

Filed under:
|
|

Hello.

I got a script that create a new database, now I need to fill that database with tables and values (from a MySQL dump file).

I'm using PHP - Doctrine 1.2.

Here is how I create the database:

$manager = Doctrine_Manager::getInstance();  
$newConn = $manager->openConnection($customer->Config->db_connection_string);  
$newConn->createDatabase();  

How I do this?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about doctrine