|
||||||
| Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC). |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hey, I'm looking to backup my database, but, instead of saving it as a .sql or whatnot, havin git write PHP code to build the database. Is this possible? Do any of you know of any exsiting programs that will take a mysql database backup file, and build a php file to build that database? If not, i guess i'll have fun writing my own, just would be faster if i didn't have to write my own. haha.
|
| Sponsored Links |
|
|
|
|||||
|
hmm, I'm not sure what you mean. You want a PHP app to build your database from a exported .sql file?
If so, you can just load the SQL from the backup file as a query and execute the query. When you export as SQL the SQL code in the file will execute as a query. So basically build your fopen and do PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||
|
Quote:
i have a database shell, with nothign in it. i want to make a backup of that database, only, instead of the normal backup file, i wish to have it be PHP'd, in the sense where you can run the .php file on ANY server, and it'll create the shell. i wish to dstribute a program i'm making, (it's not nearly done yet, just thinking ahead.) and i don't want to rely on the end user to know how to use a .sql backup, rather have them ust go to a PHP file that creates the database, tables, etc, and then have them delete that file, to prevent dataloss in the future. sorry i wasn't clear the first time around, i wish it had a name, it probably does, but i just dont know it.. |
| Sponsored Links |
|
|
|
|||
|
Quote:
I'm looking for a program, that takes a database file, and outputs PHP to create that database. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Retrieving Access Database | tigger | Visual Basic Programming | 0 | 07-06-2007 01:27 AM |
| Best program for SQL database manipulation | Rhadamanthys | Database & Database Programming | 3 | 07-02-2007 03:32 PM |
| Best way to save lots of small values (in a database)? | Vantage | General Programming | 2 | 05-14-2007 08:57 AM |
| Database and Database Users | DevilsCharm | Database & Database Programming | 2 | 08-27-2006 11:22 AM |
| Shell: MySQL Database Backup | Jordan | Tutorials | 0 | 08-15-2006 04:18 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%