» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2006, 10:33 AM
Tia Tia is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Tia is on a distinguished road
Default How to import sql file to server?

hello,
I have installed the MySql server on localhost and it is running smoothly. I have downloaded de SQL file to import into the server. the source file.sql command line returns me with failed to open file, error 2. i have stored the file in the data directory and i also tried to retrieve the file with c:\program files etc. does anyone have a answer to this? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-04-2006, 10:39 AM
Yadira Yadira is offline
Senior Member
 
Join Date: Jul 2006
Posts: 183
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 18
Yadira is on a distinguished road
Default

Hi,

To import a SQL file you need to launch mysql client program from mysql directory.

Mysql klient program is called mysql.exe and usualy it is in "Program files\Mysql\Bin" directory.

In case the SQL file is a datadump from some database, you will need to create a database first.

1 step: create database:

mysql.exe -u root

mysql> create database new_data;

mysql>quit

2 step: import data:

mysql.exe -u root new_data < your_file.sql -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free File Storage Hosts vishnuthegreat Domains For Sale - Fixed Price/Offer 1 03-06-2007 09:31 AM
importing form server to another sql server. HLeo MySQL Forums 1 11-21-2006 05:14 AM
Easy CGI Upgrades Microsoft SQL Server outsourcingplans Web Hosting News 0 11-15-2006 03:40 AM
DiscountASP.NET Launches SQL Database Transfer Tool outsourcingplans Web Hosting News 0 08-09-2006 04:23 AM
Visual Basic 6.0 & SQL Server 2000.... Reid MySQL Forums 1 08-01-2006 12:32 PM


All times are GMT. The time now is 10:58 AM.