I'm doing a top 10 list from a database based on a group by and order
by, something like
select UserId, count(*) as NumActions from Actions group
by UserId order by NumActions desc limit 10;
Is there any way to put a separate column so I get results like
Rank, UserId, NumActions
1, 123, 43
2,
Hi Waynn,
Try:
SET @row := 0;
SELECT @row := @row + 1 AS Rank,
UserId, count(*) as NumActions from Actions group
by UserId order by NumActions desc limit 10;
HTH, Cor
- Original Message -
From: Waynn Lue [EMAIL PROTECTED]
To: mysql@lists.mysql.com
Sent: Friday, February 22,
I'm doing the above migration as mentioned in the subject line. I
figured I would use the MySQL Migration Toolkit to help it along but it
won't let me connect to my 3.23.49 server. Is there any other way to
migrate all my data easily.
Thanks,
Ed
--
MySQL General Mailing List
For list
On Fri, February 22, 2008 10:01, Ed Curtis wrote:
I'm doing the above migration as mentioned in the subject line. I
figured I would use the MySQL Migration Toolkit to help it along but it
won't let me connect to my 3.23.49 server. Is there any other way to
migrate all my data easily.
Thanks,
In the last episode (Feb 22), Ed Curtis said:
I'm doing the above migration as mentioned in the subject line. I figured I
would use the MySQL Migration Toolkit to help it along but it won't let me
connect to my 3.23.49 server. Is there any other way to migrate all my data
easily.
Basically
So I am trying to use mysqldump --tab for the first time. I am running
into the same problem everybody does on their first try --- Errcode: 13. I
have set the permissions on the target directory to be completely liberal
--- anybody can do anything with it --- and I still get Errcode: 13. I
Mike Spreitzer wrote:
So I am trying to use mysqldump --tab for the first time. I am running
into the same problem everybody does on their first try --- Errcode: 13. I
have set the permissions on the target directory to be completely liberal
--- anybody can do anything with it --- and I still
I am running MySQL 5.0.51a-community on RedHat Enterprise Linux 4. Here
is a further typescript showing the failure:
[EMAIL PROTECTED] /]# mysqldump -u root -p --skip-opt --quick --tab=/dump1 wyky
red1_p2
Enter password:
mysqldump: Got error: 1: Can't create/write to file '/dump1/red1_p2.txt'
what happens when you delete the files that are already in there? Looks
like you're dumping to a file owned by root.
Jed
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
Hi.
I have extra hdd only for mysql /var/lib/mysql directory.
I have one big database and ten different tables into it.
I had to move three of them into another directory on different hdd becouse
lack of disk space at /var/lib/mysql directory.
Is it possible and how can I do that ?
Regards.
--
Sorry if I have confused people by presenting evidence in the wrong order.
Also, it seems that the .sql file is written by the client while the .txt
file is (attempted to be) written by the server. Here is a single
typescript with all the evidence:
[EMAIL PROTECTED] ~]# cd /
[EMAIL
Grzegorz Paszka wrote:
Hi.
I have extra hdd only for mysql /var/lib/mysql directory.
I have one big database and ten different tables into it.
I had to move three of them into another directory on different hdd becouse
lack of disk space at /var/lib/mysql directory.
Is it possible and how can I
Mike Spreitzer wrote:
Sorry if I have confused people by presenting
evidence in the wrong order. Also, it seems that the .sql file is
written by the client while the .txt file is (attempted to be) written
by the server. Here is a single typescript with all the evidence:
[EMAIL PROTECTED]
13 matches
Mail list logo