|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
|
Import mySQL tables
i need to import tables into a mySQL database. I have a file called sites.sql that contains the tables, but i have no clue how to import it.
|
|
|
|
|
|
#2 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
Do you have access to something like PHPmyAdmin (it would be in your admin/control panel)? There might be others your host might have installed, but that's the one that I'm familiar with.
I know how to do it if your host uses Cpanel as an admin panel...I'm not familiar with anything else though. Also, you could probably do it in a PHP page if you already have a MySQL database set up. Also, do you have a MySQL database set up for the tables? Or do you need to do that too? You do have MySQL available with the host you are using?
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers." Last edited by blue60007; 05-22-2006 at 03:54 PM. |
|
|
|
|
|
#3 | |
|
Member (8 bit)
|
Quote:
I do have phpmyadmin, cpanel, and a database setup and ready for the tables. And yes i am using mySQL, thanks for the quick reply
|
|
|
|
|
|
|
#4 |
|
Wx geek
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
|
OK good...if you hop into phpmyadmin and select your database from the side menu....on the right you should see a tab named "Import". Go there and you should be able to hit the browse button and select the sites.sql file from your hard drive and it should upload (after hitting Go) and automatically create the tables...
|
|
|
|
|
|
#5 |
|
Member (8 bit)
|
Worked great thabk you for the help
|
|
|
|
|
|
#6 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
From the command line it is:
Code:
mysql -u username -p database_name < sqldump
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|