What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » need help with mysql...

need help with mysql...
Author: Message:
TheMusicPirate
Full Member
***

Avatar

Posts: 412
Reputation: 8
40 / Male / –
Joined: Feb 2005
O.P. need help with mysql...
in phpmyadmin i know i can export, but how can i import?
[Image: ipod.gif]

05-29-2005 02:53 PM
Profile PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: need help with mysql...
click SQL at the top and then either paste in a query or upload a .sql file
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-29-2005 02:55 PM
Profile E-Mail PM Web Find Quote Report
TheMusicPirate
Full Member
***

Avatar

Posts: 412
Reputation: 8
40 / Male / –
Joined: Feb 2005
O.P. RE: RE: need help with mysql...
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?
[Image: ipod.gif]

05-29-2005 03:53 PM
Profile PM Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: need help with mysql...
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.
05-29-2005 03:57 PM
Profile E-Mail PM Web Find Quote Report
TheMusicPirate
Full Member
***

Avatar

Posts: 412
Reputation: 8
40 / Male / –
Joined: Feb 2005
O.P. RE: RE: need help with mysql...
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.
[Image: ipod.gif]

05-29-2005 04:07 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: need help with mysql...
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...
05-29-2005 05:27 PM
Profile PM Find Quote Report
TheMusicPirate
Full Member
***

Avatar

Posts: 412
Reputation: 8
40 / Male / –
Joined: Feb 2005
O.P. RE: RE: need help with mysql...
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]
[Image: ipod.gif]

05-30-2005 12:46 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: need help with mysql...
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
05-30-2005 12:50 PM
Profile PM Find Quote Report
jren207
Senior Member
****

Avatar
JR! - We <3 Fanta

Posts: 870
Reputation: 28
35 / Male / –
Joined: Sep 2003
RE: need help with mysql...
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.

.jpg File Attachment: sql.JPG (71.24 KB)
This file has been downloaded 201 time(s).
05-30-2005 03:07 PM
Profile E-Mail PM Web Find Quote Report
TheMusicPirate
Full Member
***

Avatar

Posts: 412
Reputation: 8
40 / Male / –
Joined: Feb 2005
O.P. RE: RE: need help with mysql...
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.:)
[Image: ipod.gif]

05-30-2005 03:20 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On