LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2009, 05:49 AM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
Mysql import table, how?


Err how do I do this?

Some of the games I want on my website come with a file filled with waht looks like mysql commands.

ex: newgame.sql

what do i do with this? The readme say import it. it doesn't say how.

thanks in advance
 
Old 09-09-2009, 06:09 AM   #2
satishmali1983
LQ Newbie
 
Registered: Mar 2009
Distribution: Mandriva 2008.0
Posts: 21

Rep: Reputation: 16
Quote:
Originally Posted by johnh10000 View Post
Err how do I do this?

Some of the games I want on my website come with a file filled with waht looks like mysql commands.

ex: newgame.sql

what do i do with this? The readme say import it. it doesn't say how.

thanks in advance
For Import in mysql from command line use following

mysql -h localhost -u username -p DBname < .sql file

-u usrename for DB
-p Prompt for DB password
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MYSQL Database Import Behrooz_Ice Linux - General 2 09-08-2006 04:15 AM
MySQL Database Import sbb Linux - Software 1 06-04-2006 11:15 AM
MySQL import database akines Linux - Software 3 04-19-2006 01:14 AM
MySQL non-realtime table-by-table mirroring Passive Linux - Software 1 01-20-2004 12:11 PM
How to import MS ACCESS Table including OLE filed into the MySQL Table ? myunicom Linux - General 1 11-28-2003 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration