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?
execute sql file in php?
Collapse
X
-
Tags: None
-
-
Look at this:
php-mysql-tutorial.com/perform-mysql-backup-php.php
JimmyComment
-
Comment
-
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 DirectoryComment
-
-
i know this sounds really fucking dumb but ...
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
Comment
-
Not sure I understand it completely
but which SQL file would you like to get executed? If you have a large dump and phpmyadmin just halts, it is much better to use mysqldump via ssh and direct its output to a file. Such as:
/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.comComment
-
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.Comment
-
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 wordpressComment



Comment