LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2003, 10:53 PM   #1
verokard
LQ Newbie
 
Registered: Jul 2003
Location: Tangerang, Indonesia
Posts: 5

Rep: Reputation: 0
Question MySQL Instruction error


Hi !!!, I'm new in MySQL.
So please help me......

The Server is running, but when i want to use :
mysql> SELECT VERSION(), CURRENT_DATE;
the message appear like below statement :
bash : syntax error near unexpected token `('


Regards
Verdi

 
Old 07-11-2003, 06:18 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
you need to connect to the server, if its running locally then

mysql -u [your user name] -p

if its running on a different host then

mysql -h [hostname] -u [your user name] -p

then you can issue the commands you want, when your finished the QUIT command will return you to the bash prompt.
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
Mplayer Illegal Instruction error visualnoise Linux - Software 4 02-28-2005 03:49 PM
MySQL Instruction error verokard Linux - Newbie 5 07-11-2003 04:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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