User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 401,954 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,230 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 1819 | Replies: 5
Reply
Join Date: Jan 2007
Posts: 8
Reputation: andy3250 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andy3250 andy3250 is offline Offline
Newbie Poster

Help MySql file

  #1  
Feb 13th, 2007
HI, I'm still rookie guy with mysql database, I have a mysql script file called "MYBox" in notepad and I want to export to the one of folder directory but I don't know to do that from Does.

I need someone help me what command do I need to type in does to export Mybox file please.

Thanks.
AM
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,222
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: MySql file

  #2  
Feb 13th, 2007
if that file actualy create table and than insert some vulues you can simple run command prompt

mysql -u user_name database_name<your_textfile+extension -p

so it can look like this

mysql -u root dvdDatabase<myDvds.sql -p
then it will ask you for db password
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jan 2007
Posts: 8
Reputation: andy3250 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andy3250 andy3250 is offline Offline
Newbie Poster

Help Re: MySql file

  #3  
Feb 13th, 2007
thank you for your help, please correct me if I'm wrong, the file that i have is called domes.txt and to make new database by run execute file by going to

mysql> -u Username domes<domes.sql -p

is this is correct! if so then why i did not showing on the database list!

please help!

AM


Originally Posted by peter_budo View Post
if that file actualy create table and than insert some vulues you can simple run command prompt

mysql -u user_name database_name<your_textfile+extension -p
 
so it can look like this
 
mysql -u root dvdDatabase<myDvds.sql -p
then it will ask you for db password
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,222
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: MySql file

  #4  
Feb 14th, 2007
  1. database to which you want to import your tables must exist, if not create it
  2. for import/export I do not use MySQL command prompt Client but Windows Command Prompt, that is why there are options(-u for user, -p for password), my mistake I should mention it. When importing make shore that you are in the same directory as the file which you want to import into database as typing full path is usualy problematic( plenty of spelling mistakes), so use cd.. to move out of current folder, dir to list content of folder and cd my_folder/sub_folder to enter into a folder

if you still have problem let me know
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jan 2007
Posts: 8
Reputation: andy3250 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andy3250 andy3250 is offline Offline
Newbie Poster

Re: MySql file

  #5  
Feb 14th, 2007
Peter;

thanks for your response, when you said you do not use command prompt but window command, i think that must be easier to use. can you let me know which program from window command to use!

please correct me if I'm wrong.

1) the first step is that to create empty database called "domes"
2) then run execute .txt file of "domes.txt" and will convert to the sql in new database of "domes.sql"

Is this is correct step what I'm suppose to do!

Is that possible for me to send you small txt file sql script and you can take look for few minutes then you might have better idea of what you think i should do better way.

please let me know thanks.

Alidad



Originally Posted by peter_budo View Post
  1. database to which you want to import your tables must exist, if not create it
  2. for import/export I do not use MySQL command prompt Client but Windows Command Prompt, that is why there are options(-u for user, -p for password), my mistake I should mention it. When importing make shore that you are in the same directory as the file which you want to import into database as typing full path is usualy problematic( plenty of spelling mistakes), so use cd.. to move out of current folder, dir to list content of folder and cd my_folder/sub_folder to enter into a folder
if you still have problem let me know
Reply With Quote  
Join Date: Jan 2007
Posts: 8
Reputation: andy3250 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andy3250 andy3250 is offline Offline
Newbie Poster

Re: MySql file

  #6  
Feb 14th, 2007
Peter;

thanks for your response, when you said you do not use command prompt but window command, i think that must be easier to use. can you let me know which program from window command to use!

please correct me if I'm wrong.

1) the first step is that to create empty database called "domes"
2) then run execute .txt file of "domes.txt" and will convert to the sql in new database of "domes.sql"

Is this is correct step what I'm suppose to do!

Is that possible for me to send you small txt file sql script and you can take look for few minutes then you might have better idea of what you think i should do better way.

please let me know thanks.

AM
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 5:45 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC