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 12-26-2007, 04:28 AM   #1
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Rep: Reputation: 15
Question mysql Error -> used phpmyadmin


Error

SQL query:

(
) ORDER BY `User` ASC , `Host` ASC

MySQL said: Documentation
#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 ') ORDER BY `User` ASC, `Host` ASC' at line 1


how to fix it

thanks a lot


chobo
 
Old 12-26-2007, 03:11 PM   #2
johnvoisey
Member
 
Registered: Jun 2002
Location: UK
Distribution: Used many over the years, main ones now "CentOS", Slackware and Arch
Posts: 31

Rep: Reputation: 15
I think the problem must be in your select statement and those brackets

Can you post more of the query ?

I ask because if I do THIS on the mysql 5 in slackware 12

use mysql
select user,host,password from user order by user asc, host asc;

That works

So does

select user, host, password from user order by 'user' asc, 'host' asc;

hope this helps
 
Old 12-26-2007, 11:26 PM   #3
chobo
LQ Newbie
 
Registered: Nov 2007
Posts: 21

Original Poster
Rep: Reputation: 15
oh ok

have worked too

mysql> select user,host,password from user order by user asc, host asc;

----+----------------------+-------------------------------------------+
11 rows in set (0.00 sec)



thanks a lot

johnvoisey
 
  


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 and phpmyadmin arya6000 Linux - Server 1 03-14-2007 11:12 AM
mysql and phpmyadmin jungleking Linux - Newbie 1 09-17-2005 08:07 AM
MySQL - PHP5 - phpMyAdmin 2.6.0 Fuel Linux - Software 2 07-25-2004 01:39 PM
mysql <> phpmyadmin error rizza Linux - Software 0 01-28-2004 06:34 AM
Mysql and PHPmyadmin auth error NewtonIX Linux - General 2 11-01-2003 09:37 PM

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

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