LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-29-2003, 07:33 PM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
mysql importing inq


mysql> show databases;
+------------+
| Database |
+------------+
| mysql |
| tutorial |
| testdb1 |
+------------+

mysql> tutorial < ./var/www/html/testingsite/catalog/install/learning.sql;
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'oscommerce < ./var/www/html/testingsite/catalog/install/learning

why am i not able to import the database
 
Old 11-30-2003, 09:12 AM   #2
bleah-man
Member
 
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
try

cd /var/www/html/testingsite/catalog/install/
mysql -u<yourusername> -p<yourpassword> <nameofdatabase> < learning.sql

then

mysql -u<yourusername> -p<yourpassword> <nameofdatabase>

and

mysql> <your query string>

Bleah!
 
  


Reply



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
Problem importing database back to MySql shubb Programming 3 11-29-2005 01:36 PM
Mysql importing problem nepcw Linux - Newbie 4 03-22-2004 05:09 PM
mysql adminstrator tool inq Robin01 Linux - Software 5 10-22-2003 02:07 PM
mysql installation inq Robin01 Linux - Newbie 1 10-06-2003 10:27 PM
MySQL: Importing a database from an XML file concoran General 0 09-08-2003 02:58 AM

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

All times are GMT -5. The time now is 11:22 PM.

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
Open Source Consulting | Domain Registration