|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster 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 us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
execute sql file in php?
I've been trying to get this to work for a long fucking time and its pissing me off, anyone have an idea how to beable to take a sql dump from phpmyadmin, and just run it via a local php script, not phpmyadmin and make it work just the same?
|
|
|
|
|
|
#2 |
|
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
nobody knows?
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Apr 2004
Location: Metro DC Area
Posts: 298
|
Look at this:
php-mysql-tutorial.com/perform-mysql-backup-php.php Jimmy |
|
|
|
|
|
#4 |
|
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
|
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Miami, FL
Posts: 2,090
|
If there is nothing on the table, what is it you're trying to dump?
__________________
GetSCORECash.com | In the Biz Since 1991
Big Tits | Granny & MILFs | Amateurs | Big Booty | Foot Fetish | BBW | Teens Hosted Embeds | MP4s | RSS Feeds | FHGs | Model Directory |
|
|
|
|
|
#6 |
|
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
trying to dump a sql file to create tables and shit
|
|
|
|
|
|
#7 | |
|
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
Quote:
whatever you're using is missing that step. You need to create the table before you can populate it. Create Table ... insert into ....
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself |
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Nov 2006
Location: http://UUGallery.com http://UUGallery.com http://UUGallery.com http://UUGallery.com http://UUGallery.com http://UUGallery.com
Posts: 361
|
Not sure I understand it completely
/usr/local/bin/mysqldump --all-databases --user=NAME --password=PASS > my-dump.sql You can simply import this dump.sql (which is full of queries) into mysql later again using /usr/local/bin/mysql utility. I hope this will help
__________________
![]() UUGallery v3.37 builder plugin for Wordpress! Now it builds FLV VIDEO Galleries! It grabs galleries from FHG's, generates thumbnails, resizes originals, arranges within your template and posts a gallery within 1 click! Start making money right now! ICQ# 475-719-552, Email+MSN: msnaddress[-~at~-]uusoftware.com |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Jul 2005
Location: Rio de Janeiro
Posts: 95
|
It sounds to me like when you are doing your database
dump, you are not using the create table option. That way or a load/restore, it will create the tables if they do not already exist. |
|
|
|
|
|
#10 |
|
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
well, the first line in the sql dump is "CREATE TABLE `wp_comments`"
so i guess it works, but the command in that example requires you to set a table to dump to, which i had to set it to something thats not there due to having no tables in the database pretty much what im trying to do is make a script that all i give is mysql login info, a database name, and it will do what the sql file says, which is a bunch of create tables and insert into tables, the sql file is a mysql dump from wordpress |
|
|
|