IT Community - Software Programming, Web Development and Technical Support

Importing mysql dump file to my Local Server

This is a discussion on Importing mysql dump file to my Local Server within the Database Support forums, part of the Web Development category; A small query in importing mysql dump file to my Local Server. Actually I have installed 5.1.22-rc-...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-14-2007, 02:46 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Importing mysql dump file to my Local Server

A small query in importing mysql dump file to my Local Server.

Actually I have installed 5.1.22-rc-community to my local system. I have a mysql dump sql file in one of my server, now I want to execute the script to my local host mysql, how can I do it?

I normally will execute the script using the following command,

Code:
mysql -u root -p –h [My Server IP]  < [File Path].sql
How should I have to issue the command for importing the sql file to my localhost ? Any Ideas?
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-12-2007, 07:10 AM
priyan priyan is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 133
priyan is on a distinguished road
Default Re: Importing mysql dump file to my Local Server

Hi Murali,

I assume that you are using Win-XP and installed 5.1.22-rc-community on your machine(localhost).

If my assumption is right then you can use the same code which you specified in your post.

HTML Code:
 mysql -u root -p –h [My Server IP]  < [File Path].sql
Note : Since you are connecting your localhost as root user from remote machine, make sure that the following setting is enabled in your (localhost) mysql 5.1.22 server.

HTML Code:
        MySQL Server Instance configuration
	             Modifiy Security Settings
	             Enable root access from remote machines.
Either you can enable this setting or you can create another user in your localhost with all privileges and import your data using that user since root user not allowed to connect from remote machines.

eg.
If the new user created on your local machine is 'adminuser' then

HTML Code:
 mysql -u adminuser -p –h [My Server IP]  < [File Path].sql

Try this and let me know your feedback if you found any other issues ...
__________________
Keep smiling...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql database dump tips and tricks write2ashokkumar Database Support 31 12-14-2007 11:54 PM
ERROR 2002 (HY000): Can't connect to local MySQL server through socket Gopisoft Database Support 1 10-29-2007 03:07 AM
how to access local file from server? varghese HTML, CSS and Javascript Coding Techniques 5 10-18-2007 12:15 AM
How to import MySQL Dump files? kingmaker Database Support 2 07-24-2007 04:47 AM
mysql dump JSureshkumar PHP Programming 3 03-14-2007 04:55 AM


All times are GMT -7. The time now is 06:14 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0