Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-26-2007, 04:28 AM   #1
LQ Newbie
Registered: Nov 2007
Posts: 21

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


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

Old 12-26-2007, 03:11 PM   #2
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
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



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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration