![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I can use mysqldump to create a .sql file backup of my data.. For importing how can I test to see if the DB exists, if it does import the .sql If not create the DB then import the .sql ! Thanks | |||
|
| | #2 | ||
| <Frank @ MyPlace.Com (Frank)> wrote in message news:3f20f102.154973890@news.btclick.com... > I can use mysqldump to create a .sql file backup of my data.. > > For importing how can I test to see if the DB exists, if it does > import the .sql > > If not create the DB then import the .sql ! > > Thanks Dump the database with --opt --no-create-db mysqldump --opt --no-create-db database [tables] The manual SQL syntax would be something like USE dbname IF EXISTS dbname; Although I think the above commands accomplish what you want. Regards, Parallax | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: before, create, data, database, mysqldump, restoring, sql |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MMO Game - load data into ram or access from database? | Chu | Software Programming | 0 | 06-12-2007 11:54 PM |
| Please help - Cracking elevation data format in data file | Kevin Fishburne | Software Programming | 10 | 06-12-2007 11:31 PM |
| MySQLDump with fields enclosed help | techguru | Database | 2 | 05-31-2007 8:48 PM |
| [PEPr] Database::FlatFile Database deleted | Ali Fazelzade | Pear | 0 | 05-20-2007 7:41 PM |
| Featured Websites | ||||
|