Re: Sub query help

2007-05-16 Thread Peter Brawley
Brian, I think the answer is to create a sub query, Without your tables I can't test this transcription, but the trick is straightforward: if the first query includes the column(s) required to join it correctly to the 2nd query, replace the avgscore table reference in the second query with

Re: Sub query help

2007-05-16 Thread Brent Baisley
In a nutshell, one way to do subqueries is to just name the query and join on it as if it was a regular table. SELECT field1,field2,... FROM table1 INNER JOIN table2 ON field1=fieldT2 INNER JOIN (SELECT fieldA, fieldB FROM tableA WHERE ...) AS table3 ON fieldA=field1 ... More commonly people

Sub query help

2007-05-16 Thread Brian Menke
MySQL Version 5.0.22 I would be thrilled if someone could even just point me to a site that provided good examples of using sub queries. I have the following query: SELECT participants.store_id, completed_modules.module_id, AVG(completed_modules.score) AS AVGSCORE FROM partici

Re: dbnightly maintenance & backup script

2007-05-16 Thread Ofer Inbar
On Thu, May 10, 2007 at 03:23:31PM -0400, Ofer Inbar <[EMAIL PROTECTED]> wrote: > http://thwip.sysadmin.org/dbnightly The version I put up there had a minor bug: 176c176 < my ($sec,$min,$hour,$mday,$mon,$year) = localtime(time); $year+=1900; --- > my ($sec,$min,$hour,$mday,$mon,$year) = loc

Re: index overhead

2007-05-16 Thread Michael Dykman
As for question 1: the overhead will be exactly the same in both index layout scenarios. The only deciding factor is how your application uses this data.. the choice of structure has only to do with finding what accelerates application quiries most effectively. Question 2: by all means, add the

index overhead

2007-05-16 Thread Les Fletcher
I have two questions about the overhead associated with updating the indexes when records are added, deleted or modified. Lets say I have a table of 1 million records that is partitioned on partitionedfield (10 distinct values). id int partitionedfield int property1 int property2 int property

MySQL Connector/J 5.0.6 Has Been Released

2007-05-16 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, MySQL Connector/J 5.0.6 a new version of the Type-IV all-Java JDBC driver for MySQL has been released. This is a bug fix release for the current production branch of Connector/J. Version 5.0.6 is suitable for use with any MySQL version inclu

We would like to link to you!

2007-05-16 Thread Offshore Business Portal
Dear Sirs, We would like to exchange links with you. I am sure you appreciate that getting targeted links to your website is “key” to high search engine rankings. I am sure you will agree that this is a very good trade for both our companies as it will improve both of our rankings in the search e

Re: Network address functions in MySQL?

2007-05-16 Thread js
Hello, Good post, but not what i'm looking for. Well, Postgresql seems to be the winner, at least for handling network addresses. (Don't take me wrong. I'm not saying Postgresql is better RDBMS) Thanks. On 5/15/07, Baron Schwartz <[EMAIL PROTECTED]> wrote: Hi, js wrote: > Hi Baron. > Thanks f

block root(linux) reset permissions

2007-05-16 Thread Geisel Sierote
Hi, I want block root(linux) reset permissions mysql server. Is possible? Thanks Geisel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Reset root password

2007-05-16 Thread Sebastian Mendel
Johannes Skov Frandsen schrieb: > Hi > > For reasons unknown my mysql db has decide to lock me out and I can't > access it with my root account anymore from the shell. > > I have tried resetting it following this guide: > http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html > > but

Re: Reset root password

2007-05-16 Thread Sebastian Mendel
Johannes Skov Frandsen schrieb: > Hi > > For reasons unknown my mysql db has decide to lock me out and I can't > access it with my root account anymore from the shell. > > I have tried resetting it following this guide: > http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html > > but

Reset root password

2007-05-16 Thread Johannes Skov Frandsen
Hi For reasons unknown my mysql db has decide to lock me out and I can't access it with my root account anymore from the shell. I have tried resetting it following this guide: http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html but it doesn't seem to do the trick. I just get

Re: InnoDB dropping records / MyISAM working as it should

2007-05-16 Thread Kenneth Loafman
Folks, Thanks for all the help. Not only is the code working, but my understanding of the issue has improved, thanks to this list. ...Ken -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Server variables forced to be read-ony on MySQL 5.1.18

2007-05-16 Thread Giorgio Zarrelli
Hi, I compiled from source on Ubuntu server 64 bit, the new 5.1.18, using the my.cnf from 5.1.17 to run it. In the error log file now I see the following warnings: 070516 10:51:08 [Warning] Server variable data_file_path of plugin InnoDB was forced to be read-only: string variable without upda

Re: InnoDB dropping records / MyISAM working as it should

2007-05-16 Thread Joerg Bruehe
Hi ! Jon Ribbens wrote: On Tue, May 15, 2007 at 06:39:21PM -0500, Kenneth Loafman wrote: Interesting... guess the intent was a disconnect that would break code trying to work on MySQL, regardless of engine selected. That decision makes it two products, MySQL/MyISAM and MySQL/InnoDB with diff

Re: Newbie Question connecting with windows named pipes (resolved)

2007-05-16 Thread John Comerford
Hi Sebastian, That was it alright. I commented out the socket lines from mysql.ini (restarted it) and changed my php command to: $mysqli = new mysqli(".", $username,$password, $database); and all seems to be working fine now. Thanks again for your help, much appreciated. Regards, John

Re: Newbie Question connecting with windows named pipes (resolved)

2007-05-16 Thread Sebastian Mendel
John Comerford schrieb: > Hi Sebastian, > > I did read somewhere that sockets was not valid for windows, and > '/tmp/mysql.sock' doesn't resolve to anything on my machine. But I have > tried the following commands: > > $mysqli = new mysqli(".", $username,$password, $database); > or > $mysqli =

Re: Newbie Question connecting with windows named pipes (resolved)

2007-05-16 Thread John Comerford
Hi Sebastian, I did read somewhere that sockets was not valid for windows, and '/tmp/mysql.sock' doesn't resolve to anything on my machine. But I have tried the following commands: $mysqli = new mysqli(".", $username,$password, $database); or $mysqli = new mysqli(".", $username,$password, $