Shoutbox

need help with mysql... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: need help with mysql... (/showthread.php?tid=45481)

need help with mysql... by TheMusicPirate on 05-29-2005 at 02:53 PM

in phpmyadmin i know i can export, but how can i import?


RE: need help with mysql... by Dempsey on 05-29-2005 at 02:55 PM

click SQL at the top and then either paste in a query or upload a .sql file


RE: RE: need help with mysql... by TheMusicPirate on 05-29-2005 at 03:53 PM

quote:
Originally posted by Dempsey
click SQL at the top and then either paste in a query or upload a .sql file


thanks, now where is it saved?
RE: need help with mysql... by Veggie on 05-29-2005 at 03:57 PM

The export in phpmyadmin generates a sql query, thats how its backed up. To run the query simple find the file that has been exported then run the query. The file is saved where ever you saved it in the first place. A query can either be created then saved to a file to download or just cut and pasted.


RE: RE: need help with mysql... by TheMusicPirate on 05-29-2005 at 04:07 PM

quote:
Originally posted by Veggie
The export in phpmyadmin generates a sql query, thats how its backed up. To run the query simple find the file that has been exported then run the query. The file is saved where ever you saved it in the first place. A query can either be created then saved to a file to download or just cut and pasted.



sorry, you will have to dumb it down, i have no idea what your talking about.
RE: need help with mysql... by Eljay on 05-29-2005 at 05:27 PM

export: select export as file and save it wherever you like (e.g your desktop for easy access)
import: select import from file and go to wherever you saved it

thats all you need to know really...


RE: RE: need help with mysql... by TheMusicPirate on 05-30-2005 at 12:46 PM

quote:
Originally posted by Lee Jeffery
export: select export as file and save it wherever you like (e.g your desktop for easy access)
import: select import from file and go to wherever you saved it

thats all you need to know really...



i don't have a import button
[Image: dbe1b5d0.png]
RE: need help with mysql... by Eljay on 05-30-2005 at 12:50 PM

go to the database you want to import it into and click SQL at the top
then click browse where it says "Location of the textfile:" and click go

Note: if the file you exported was big this might take a while to import


RE: need help with mysql... by jren207 on 05-30-2005 at 03:07 PM

When you export, phpmyadmin creates MySQL code which is put into a text (.txt) file. When this code is put into a MySQL command window, or in a PHP script, it will create your tables (table structure) that you exported (and insert data in them if there was any records in the table/s). So when you import, it creates the tables that you exported for backup etc.

[Image: attachment.php?pid=470827]

Now to import, like Dempey said, click on the SQL image (label 1), a window will pop-up.

You can either copy the text from the exported file and past it into the area (label 2) or click on the "Import" part at the top of the window.

The area in the window will change to that of (label 3). Notice the textbox with "Browse". This, when clicked allows you to find that text file and upload it to the server. The code in the file will then be excecuted and create the tables etc.


RE: RE: need help with mysql... by TheMusicPirate on 05-30-2005 at 03:20 PM

quote:
Originally posted by jren207
When you export, phpmyadmin creates MySQL code which is put into a text (.txt) file. When this code is put into a MySQL command window, or in a PHP script, it will create your tables (table structure) that you exported (and insert data in them if there was any records in the table/s). So when you import, it creates the tables that you exported for backup etc.

[Image: attachment.php?pid=470827]

Now to import, like Dempey said, click on the SQL image (label 1), a window will pop-up.

You can either copy the text from the exported file and past it into the area (label 2) or click on the "Import" part at the top of the window.

The area in the window will change to that of (label 3). Notice the textbox with "Browse". This, when clicked allows you to find that text file and upload it to the server. The code in the file will then be excecuted and create the tables etc.



thanks, now i understand.:)