LinuxQuestions.org
Register a domain and help support LQ
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, 08: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, 10: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


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


All times are GMT -5. The time now is 07:16 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