Re: 5.0.37 hangs on startup

2007-03-14 Thread James Green
rting? Cheers, James James Green wrote: > Hi, > > I've upgraded from 5.0.26 to 5.0.37, both compiled from same source > options, and the newer release crashes on startup. > > 5.0.26 Appears fine on all counts. > 5.0.37 Appears to start without innodb switched on, but mys

5.0.37 hangs on startup

2007-03-14 Thread James Green
ith-mysqld-ldflags=-all-static Any ideas? Cheers, James -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: speeding up a join COUNT

2007-01-25 Thread James Tu
ort 1 SIMPLE users ref user_type_idx,entity_idx,geo_idx geo_idx 7 geo_entities.id,const 4202 Using where; Using index -James On Jan 25, 2007, at 8:35 AM, Filip Krejc(í <[EMAIL PROTECTED]> Krejc> wrote: Hi, try CREATE INDEX geo_idx ON users(entity_id, user_type); Filip Al

speeding up a join COUNT

2007-01-23 Thread James Tu
FROM users, geo_entities WHERE users.user_type = 'user' AND users.entity_id = geo_entities.id GROUP BY entity_id LIMIT 0 , 30 It took 51 seconds to execute. Both tables only have an index on their unique record id. Is there a way to speed up this up? -James -- MySQL General Mailing List For list a

RE: Fulltext problem

2007-01-04 Thread Rick James
With so few rows, are you hitting the 50% rule? Try again with a decent number of rows. > -Original Message- > From: devy [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 5:46 AM > To: mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: Fulltext problem > > Hi, > today I've

Re: deadlocks on concurrent INSERTS

2006-12-07 Thread James Neff
emory allocated 22615268; in additional pool allocated 1045760 Dictionary memory allocated 273640 Buffer pool size 512 Free buffers 1 Database pages 510 Modified db pages 0 Pending reads 0 Pending writes: LRU 0, flush list 0, single page 0 Pages read 45294, created 16839, written 66895

deadlocks on concurrent INSERTS

2006-12-06 Thread James Neff
h to diagnose this problem and also fix it? Thanks in advance, -- James Neff -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Many-Many relation, matching all

2006-11-28 Thread James Northcott / Chief Systems
Peter Brawley wrote: >I want to find all A's such that >they have exactly B's 1 and 2 >SELECT A.ID, group_concat(BID ORDER BY BID) as Bs >FROM A INNER JOIN AhasB ON A.ID=AID >GROUP BY A.ID >HAVING Bs='1,2' Why the join? Doesn't your ahasb bridge table already incorporate the join logic? If your

Many-Many relation, matching all

2006-11-27 Thread James Northcott / Chief Systems
trying to do? I'm finding it hard to even Google for information, since a can't seem to describe what I want concisely enough for a search. Thanks in advance, James -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Best way to backup a 24/7 database

2006-11-17 Thread James Tu
rt? Does that handle a live database w/o any issues? -James -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

mysqlhotcopy errors osx

2006-11-17 Thread James Tu
08 not found first. Do I just install the Net package? ...OK I actually downloaded and installed Net:MySQL... sudo Perl Makefile.PL sudo make sudo make test sudo make install ...all went ok then I did the same steps for DBD ...all went ok and no warnings... But I'm still getting the same

Concatenate a column in multiple rows into one column?

2006-11-15 Thread James Eaton
I have a database with roughly the following structure: album -- albumid INT title VARCHAR(255) artist -- artistidINT nameVARCHAR(255) albumartist -- albumid INT artistidINT From the above, y

Re: optional date field and NULL

2006-11-15 Thread James Neff
e', (SELECT IF(LENGTH('{date_of_birth}') = 0, NULL, '{date_of_birth}'))) Thanks again, Jim James Neff wrote: I have a table like so: enrollments - ID - INT Name - VARCHAR(45) DateOfBirth - DateTime The DateOfBirth

optional date field and NULL

2006-11-15 Thread James Neff
ng: 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 ') = 0, NULL, '')), Is there a better way to handle optional dates that I am missing? Constructive criticism welcome. Thanks, -- James N

Using MySQL to log and report transactions

2006-11-10 Thread James Tu
ly go about doing this without breaking down the datetime? -James

php and utf8 problem

2006-10-20 Thread James Sherwood
nothing ive tried works. Any ideas? Thanks, James

Re: CPUs not being utilized

2006-10-19 Thread James Neff
e to the database. Good luck! --James -Original Message- From: Yoloits [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 1:25 PM To: mysql@lists.mysql.com Subject: CPUs not being utilized I am running MailWatch with mysql 4.1.20 with Red Hat Enterprise 4 on a dual XEON 3.2

Re: How can I do a SELECT without locking the table against updates?

2006-10-19 Thread James Neff
. --James Brent Baisley wrote: You would need to convert the table to InnoDB as George mentioned. Alternatively, break up your SELECT into many smaller selects. If your query is running slow now, it's only going to get slower and slower as your table grows. I've noticed with MySQL that la

RE: Innodb Locks

2006-10-10 Thread Rick James
e- > From: Robert DiFalco [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2006 11:50 AM > To: Jerry Schwartz; Baron Schwartz > Cc: Rick James; mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: RE: Innodb Locks > > Right, as I understand it the query optimizer in

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread James Eaton
- Original Message - From: "Bruce Dembecki" <[EMAIL PROTECTED]> To: Cc: "Ow Mun Heng" <[EMAIL PROTECTED]> Sent: Monday, October 09, 2006 3:13 PM Subject: Re: InnoDB, 1 file per table or 1 BIG table? There are some minor performance benefits here when run against benchmarks... but tin

Re: InnoDB, 1 file per table or 1 BIG table?

2006-10-09 Thread James Eaton
- Original Message - From: "Dan Nelson" <[EMAIL PROTECTED]> To: "Ow Mun Heng" <[EMAIL PROTECTED]> Cc: Sent: Monday, October 09, 2006 9:12 AM Subject: Re: InnoDB, 1 file per table or 1 BIG table? In the last episode (Oct 09), Ow Mun Heng said: Just wanted to know if it would be faster

re: foreign key not able to be made

2006-10-05 Thread James Black
S cardtypes(`id`); ALTER TABLE `facedefs` ADD constraint `fk_facedefs_cardtype` FOREIGN KEY(`cardtype_id`) REFERENCES cardtypes(`id`); - -- "Don't worry about people stealing an idea. If it's original, you will have to ram it down their throats." Howard Aiken James Black[EMAIL

Sorting numerically within a varchar

2006-10-03 Thread James Eaton
If I have the following strings in a varchar column: Piano Sonata 1 - Brendel Piano Sonata 10 - Brendel Piano Sonata 11 - Brendel Piano Sonata 12 - Brendel Piano Sonata 13 - Brendel Piano Sonata 14 - Brendel Piano Sonata 15 - Brendel Piano Sonata 16 - Brendel Piano Sonata 17 - Brendel Piano Sonat

RE: Innodb Locks

2006-10-03 Thread Rick James
Can't answer your question directly. But I wonder if this would trick it into avoiding the lock: UPDATE AnotherTable SET... WHERE id IN (SELECT id FROM SomeTable); And the real workaround would be CREATE TEMPORARY TABLE t SELECT id ...; UPDATE AnotherTable SET... WHERE id IN (SEL

MySQL 3.23 bind-address

2006-09-07 Thread James Eaton
I have a legacy app that only supports MySQL 3.23. I'd like to run it along with 5.0.24a on a Windows 2000 server, with each instance using the standard port 3306. So I need to have each instance bound to just one IP address. In MySQL 3.23 can you specify a bind-address in the my.ini file, o

RE: Performance: LIMIT 1 with UPDATE

2006-08-29 Thread Rick James
Maybe it is the tiny extra time to parse the unnecessary " LIMIT 1"? > -Original Message- > From: Robert DiFalco [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 29, 2006 10:09 AM > To: mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: RE: Performance: LIMIT 1 with UPDATE > > FWIW, m

Re: Re: How to query bind address?

2006-08-23 Thread James Eaton
bind-address of 127.0.0.1, which I'd removed, but since the MySQL server wasn't actually being restarted, the new configuration was never picked up. - Original Message - From: "Dan Buettner" <[EMAIL PROTECTED]> To: "James Eaton" <[EMAIL PROTECTED]>

Re: How to query bind address?

2006-08-23 Thread James Eaton
ected to localhost. Escape character is '^]'. A 5.0.21-standard-log&6{-kS?!,$2lMx:Ty%I!d (I then pressed return and the connection closed) I can telnet to MySQL from the localhost, but not from any other location. On 8/23/06, James Eaton <[EMAIL PROTECTED]> wrote: Is

How to query bind address?

2006-08-23 Thread James Eaton
Is there a way to query a MySQL (5.0.xx) server to find out which IP address(es) it's listening on? It should be listening on all, but I'm unable to connect from remote machines, so need to troubleshoot a bit. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To u

Re: mysql naming convention

2006-08-11 Thread James Harvard
need to do that. I suppose it just proves that, when it comes to coding practices, Your Mileage *Will* Vary. :-) James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql naming convention

2006-08-11 Thread James Harvard
from that I agree with Douglas Sims that what is most readable is best. select user_email, user_address, user_postcode from users where user_id = %d; # Hmm select email, address, postcode from users where user_id = %d; # Less typing and more readable. James Harvard -- MySQL General Mailing Lis

Re: Database design question

2006-08-07 Thread James Tu
PRIMARY KEY (`userid`,`messageid`) ) What that does is give each user their own incrementing message id. Then you can do things like allow users to enter a message id directly with a number that would be easy for them to remember. Just an idea. - Original Message - From: "

Re: Database design question

2006-08-07 Thread James Tu
Thanks everyone. Now I feel confident that one table will be fine (Tripp's stat of 30 million records put me at ease :) ). Cheers, -James On Aug 7, 2006, at 4:08 PM, John Meyer wrote: One table, USERS Another table MESSAGES With a foreign key referencing users. Maybe a second foreig

Database design question

2006-08-07 Thread James Tu
lions of records. Thanks. -James -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

SELECT duplicate set of rows

2006-08-04 Thread James Neff
to do in one SELECT statement, or should I just iterate through a resultset in my application? Thanks in advance, -- James Neff -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL lock tables - bug or not?

2006-07-30 Thread James Harvard
Thanks for your reply. I repeated your test with the same results on 4.1.21 (database in question is on 4.1). I'll give the ISP another kick and see what they have to say. So there's no other reason why an ISP might not want to grant LOCK TABLES in a shared hosting environment? Tha

MySQL lock tables - bug or not?

2006-07-28 Thread James Harvard
in the bugs db, nor is it listed in the manual as a side effect of granting 'lock tables' permissions. Does anyone know if it is a bug or not? Does anyone know whether LOCK TABLES really is a security risk in a shared server / multi-user environment? TIA, James Harvard -- MySQL

ON DELETE CASCADE question

2006-07-17 Thread James Sherwood
key from table 2 should it delete the row in table 2? Thanks, James

Re: Manually enabling root access from remote machine

2006-07-11 Thread James Barros
sorry if it's a stupid question, but just to cover the basics, you remembered to flush privileges after adding it right? -- James On Jul 11, 2006, at 9:31 AM, John Doolan wrote: Hi, I have just installed mySQL version 5 and want to enable root access from remote machines. However

Re: Error

2006-07-10 Thread James runaku
The package you sent me was infected, so send me one by mail.Thank you:James B.Runaku, P.O.Box 190-50100, Kakamega, Kenya. mysql@lists.mysql.com wrote: The message contains Unicode characters and has been sent as a binary attachment. - How low

Re: MySQL 5.0.22 and show columns bug?

2006-07-07 Thread James Harvard
OK, fair enough. In that case I would think that filing a report on bugs.mysql.com would be your best way forward. At 8:32 am + 7/7/06, SciBit MySQL Team wrote: >While you are not wrong, James, is the length member suppose to denote the >maximum length of data contained in re

Re: MySQL 5.0.22 and show columns bug?

2006-07-06 Thread James Harvard
Although I know nothing about C I imagine this is because the 'type' column can contain all the possible values from an ENUM or SET field. James Harvard At 10:30 am + 6/7/06, SciBit MySQL Team wrote: >Since a couple of recent stable versions back (and more recently, MySQL &g

RE: New to the group

2006-06-23 Thread James Harvard
7;t intend to write such an essay on this! Hope it is of some use. James Harvard >Ok, so you don't want info on databases, but on which language to use > to build a web site? You must sit down and determine what the site will be > used for and what features you *must hav

Re: Weird error when creating a field

2006-06-19 Thread James Sherwood
Thanks for the info, Not sure how this came about as it has been working fine and it is on a windows system and using the root user. Any ideas would be much appreciated, Thanks, James - Original Message - From: "Dan Buettner" <[EMAIL PROTECTED]> To: "Ja

Weird error when creating a field

2006-06-19 Thread James Sherwood
Hello, Today we tried to create a new field on a table in one of our databases. When we tried to save the field we get the error: Error on rename of "./DBNAME/TABLENAME.MYI" to "./DBNAME/#SQL2-210-174.MYI" (Errorcode: 13) Has anyone ever seen this before? Thanks, James

Re: intended behavior of host %

2006-06-14 Thread James Barros
Never mind. I'll just go RTFM and quit bugging you guys on list with stuff answered plain as day in http://dev.mysql.com/doc/refman/5.1/en/adding-users.html Sorry. I'll go caffeinate myself before asking more stupid questions. -- James On Jun 14, 2006, at 11:55 AM, James Barros w

intended behavior of host %

2006-06-14 Thread James Barros
Hey guys, I'm running mysql 5.1.9 and I've got a user who's mysql.user host is set to "%" and can log in from any domain except localhost. if I change to localhost, and flush privileges they can log in. Is this intended behavior, or should % be inclusive of localhost? -- MySQL General Ma

Re: ERROR 1045 (28000): Access denied for user (Using password: YES) from outside localhost

2006-06-07 Thread James Barros
Can this use log in from localhost successfully? Try flushing privileges again? If that failed, I'd drop the user and recreate? ( Theres really not alot to this, sorry I don't have any more ideas :( ) -- James On Jun 7, 2006, at 1:07 PM, Aron Levy wrote: Hi James i follow your rec

Re: ERROR 1045 (28000): Access denied for user (Using password: YES) from outside localhost

2006-06-07 Thread James Barros
Well, for starters don't worry about ports being open. If you werent able to connect, it would give you a different error message. select password('yourpassword'); and verify that the hash produced matches the password field in user exactly. -- James On Jun 7, 2006, at

mysqldump locks dumping db "mysql" in 5.1.9

2006-06-07 Thread James Barros
this issue? Other suggestions? Is this a legit bug I should report to the buglist or did I screw something up? Thanks :) -- James -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL Clustering

2006-05-30 Thread James Harvard
replication (multi-master replication) with >failover. > >Read the article >> > > http://dev.mysql.com/tech-resources/articles/advanced-mysql-replication.html HTH, James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How do I get off this list that I do not remember joining in the first place!!!!

2006-05-25 Thread James Harvard
At 11:55 am +1200 26/5/06, Phil Robbins wrote: >I've read the notice AND tried to unsubscribe TWICE. I still get the mail. http://lists.mysql.com/troubleshoot.php HTH, James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

RE: Momentary huge replication lag

2006-05-19 Thread Rick James
If you replicate a long command; more specifically, a command (or transaction) that started a long time ago, it will appear that replication is far behind. This is because the apparent delay is computed [I think] from the diff of the current time on slave and the time that the currently replicated

Re: Fulltext search for term 'c++'

2006-05-10 Thread James Harvard
lect f1 from t1 where match(f1) against ('"c++"' in boolean mode); HTH, James At 12:30 pm -0700 10/5/06, klute wrote: >Is there any way I can search for a term such as 'c++' >using a fulltext search index? >select f1 from t1 where match(f1) against('

RE: Streaming LOB Data

2006-05-08 Thread Rick James
Related inequalities: Given a blob of N bytes: max_allowed_packet > N innodb_log_file_size > 10 * N (if InnoDB) And maybe issues with bulk_insert_buffer_size innodb_log_buffer_size > -Original Message- > From: Jeremy Cole [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 2:5

Re: Determine version of *.frm, *.MYD and *.MYI

2006-05-06 Thread James Harvard
to the table file format. http://dev.mysql.com/doc/refman/4.1/en/news-4-1-x.html I would *guess* that you were using a pre-release version, because I would be surprised if a public release version in the 4.1 branch would be incompatible with its predecessor's file format. HTH & g

Slow query using between

2006-05-04 Thread James Riordon
82350 | NULL | NULL | YES | BTREE | | +++--+--+- +---+-+--++--+ +-+ 3 rows in set (0.00 sec) T1 has 20,029 rows T2 has 82350 rows Many thanks to anyone who can offer any insight to this quandary. Cheers James Riordon Hosting | Webdesign | PHP | DTP http://www.outofcontrol.ca

Re: Problems with Mysql 5 and Visual Basic 5

2006-04-24 Thread James Harvard
I think you will need to give the list some more information! What error message do you get? Is it an error when running SQL queries, or a problem connecting to the database? James Harvard At 9:22 am -0300 24/4/06, Gabriel Mahiques wrote: >I migrated to mysql 5 but the applications with Vis

Re: Fulltext 3 letter words

2006-04-24 Thread James Harvard
indexes on any tables with a full-text index. Also, note the warning about using myisamchk further down the manual page. HTH James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to Verify Replication Status?

2006-04-19 Thread James Harvard
Never used it, but this might help: http://dev.mysql.com/doc/refman/5.0/en/checksum-table.html James Harvard At 5:00 pm -0700 19/4/06, Robinson, Eric wrote: >I have master-slave replication working fine. However, I worry about the >possibility of the master and slave accidentally getting

Re: VPN Recommendation

2006-04-17 Thread James Nobis
articularly the queries even when I used stored procedures and functions. So I would like to know some of your suggestions on my setup. Thanks, Michael Louie Loria LoRz Technology Solutions htttp://www.lorztech.com James Nobis Web Developer / System Engineer Academic Superstore 2101 E. Sa

Re: Should we petition GoDaddy?

2006-04-16 Thread James Eaton
- Original Message - From: "Nicolas Verhaeghe" <[EMAIL PROTECTED]> To: "'MySQL General'" Sent: Saturday, April 15, 2006 11:20 PM Subject: Should we petition GoDaddy? I am slowly considering leaving GoDaddy, who has a very good bandwidth and ok tech support (I have seen better but muc

Re: Table Size

2006-04-05 Thread James Harvard
ase that was introduced in v5. http://dev.mysql.com/doc/refman/5.0/en/information-schema.html HTH, James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: drop table that doesn't exist

2006-03-21 Thread James Harvard
Not a db setting - the DROP statement itself. http://dev.mysql.com/doc/refman/5.0/en/drop-table.html HTH, James Harvard At 1:56 pm -0700 21/3/06, ChadDavis wrote: >I'm runnning a script that creates a few tables. I have line that drops the >tables before the creation of the tables j

Re: Accountability with MySQL

2006-03-16 Thread James Harvard
le with no matching rows. James Harvard At 11:27 am + 16/3/06, [EMAIL PROTECTED] wrote: >As someone totally unread in the theory of databases, that seems unduly >puritanical. I assume that what Date would propose is that you have another >table (related by master key) in which,

Re: Accountability with MySQL

2006-03-16 Thread James Harvard
But (in at least some situations) is not appropriate to record that you know that you don't have a value? I think the words of Donald Rumsfeld are appropriate here: "There are known knowns. These are things we know that we know. There are known unknowns. That is to say, there are things that we

Re: Accountability with MySQL

2006-03-15 Thread James Harvard
e to use >in many, many situations. It's not often you can say that two people are quite literally arguing about nothing! James Harvard (... being flippant because the actual arguments started going over my head about half-a-dozen posts ago...) -- MySQL General Mailing List For list archiv

Re: Accountability with MySQL

2006-03-14 Thread James Harvard
are *not* the same thing, the outcome (the absence of a value) *is* the same. So you're both right. Sort of. :-) James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Very large from

2006-03-14 Thread James Harvard
-JS browsers - i.e. they get the whole form on one page) James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Cannot connect to server

2006-03-14 Thread James E Hicks III
this MySQL server you can be assured that you made a connection to the MySQL server. The problem is the MySQL server doesn't think you should be allowed to connect. I'm sure if you read the page linked above you will be able to persuade your MySQL server into allowing you to co

Re: bind-address by name under 5.0.18

2006-02-28 Thread James Long
>6752 exit(1); >6753} >6754my_bind_addr = (ulong) > ((in_addr*)ent->h_addr_list[0])->s_addr; >6755 } >6756 break; > > > > And with other DBs, I can set 'sql.example.com' to resolve to N > > IPs (N=4 in this example): > > > > 10.0.0.10 > > 1

Re: bind-address by name under 5.0.18

2006-02-27 Thread James Long
> Hi, > > > Thank you very much! I'm willing to help test if you can provide me a diff > > of your changes. > > Well, that was easy. I checked the code, and it turns out that the > functionality is already there. I just tested it on my laptop (running > 5.0.13) and it does indeed work. > >

Re: bind-address by name under 5.0.18

2006-02-27 Thread James Long
> Hi James, > > >>> I would like to be able to bind to a host name, rather than > >>> an IP number. IP numbers come and go, and are beyond the > >>> control of anyone who doesn't have their own direct allocation. > >>> But since I own

Re: bind-address by name under 5.0.18

2006-02-27 Thread James Long
> Oh, no. I know about etc/hosts (even Windoze boxes has one). It's just > normally not available for reference until you bind your socket library to > at least one socket. Again, it's a cart and horse thing. You see, the > etc/hosts file counts as a "local" DNS server and the DNS protocol > re

Re: bind-address by name under 5.0.18

2006-02-27 Thread James Long
id I make sense? Yes, but none of the information was new. > Shawn Green > Database Administrator > Unimin Corporation - Spruce Pine > > James Long <[EMAIL PROTECTED]> wrote on 02/27/2006 03:59:14 PM: > > > > It doesn't allow to bind to a hostname. According t

Re: bind-address by name under 5.0.18

2006-02-27 Thread James Long
iguration parameter. > > On 2/22/06, James Long <[EMAIL PROTECTED]> wrote: > > I would like to be able to bind to a host name, rather than > > an IP number. IP numbers come and go, and are beyond the > > control of anyone who doesn't have their own dir

bind-address by name under 5.0.18

2006-02-22 Thread James Long
I would like to be able to bind to a host name, rather than an IP number. IP numbers come and go, and are beyond the control of anyone who doesn't have their own direct allocation. But since I own my domain, a host name is more permanent. When the time comes to change IP numbers, I want to just

Re: Inner join with left join

2006-02-22 Thread James Harvard
At 5:08 pm -0800 22/2/06, Scott Haneda wrote: >I think we are close, thanks >ERROR 1120: Cross dependency found in OUTER JOIN. Examine your ON >conditions > > SELECT p.id, p.prod_name, sum(oi.quantity) as qty >> FROM Products p >> LEFT JOIN orders as o >> ON (p.id = oi.product_id) Maybe

Re: Migration

2006-02-10 Thread James Dey
;s humongous... some lines above line 20 and > some > beneath... > > -- > Gabriel PREDA > Senior Web Developer > > > On 2/10/06, sheeri kritzer <[EMAIL PROTECTED]> wrote: > > > > James, > > > > You're going to need to show us the contents of ol

RE: Migration

2006-02-10 Thread James Dey
Sure, I just use "mysql db name < olddbname.sql Regards, James Dey tel +27 11 704-1945 cell+27 82 785-5102 fax +27 11 388-8907 mail[EMAIL PROTECTED] -Original Message- From: Martijn Tonies [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 11:58 AM T

Migration

2006-02-10 Thread James Dey
Could anyone perhaps let me know how I can remedy this, Thanks a lot! James Dey tel +27 11 704-1945 cell +27 82 785-5102 fax +27 11 388-8907 mail <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] myGUS / SLT retains all its intellectual proper

Re: Query Complexity Limit Question [Newbie Question]

2006-02-07 Thread James Harvard
l heavily load the >system if you are not careful. Yes indeed. You need to think carefully about what indices you need on your tables. As has already been said, EXPLAIN SELECT is your friend! James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscr

Re: Unclear about key_len in EXPLAIN output

2006-02-03 Thread James Harvard
7;s not very clear what the relationship between a multi-part key and key_len is. From what the manual says I initially assumed that key_len simply represented the number off key parts used. I don't think a manual suffers from things being spelt out more clearly! James Harvard -- MySQL

Re: Unclear about key_len in EXPLAIN output

2006-02-02 Thread James Harvard
e I see that it must be bytes, and I have posted a comment to that effect on the manual page. James At 10:58 am -0500 2/2/06, sheeri kritzer wrote: >according to: >http://dev.mysql.com/doc/refman/5.0/en/explain.html > >"The key_len column indicates the length of the key that MySQ

Re: Differences between numbers of rows in tables

2006-02-01 Thread James Harvard
exact number of rows someone could still add another 20 rows in the second after you run SHOW TABLE STATUS. James Harvard At 5:54 pm -0700 1/2/06, Dan Trainor wrote: >So, now this has made me think here. If 'SHOW TABLE STATUS' only shows an >"estimate" of the number of

Unclear about key_len in EXPLAIN output

2006-02-01 Thread James Harvard
t correct? TIA, James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Sudden Mysql Crashes - table damage?

2006-01-31 Thread James Harvard
First of all I would check for file system corruption. IIRC there is a command line tool for repairing MyISAM tables, so you can use that without needing the MySQL database server. I'm sure there are full details in the manual: http://dev.mysql.com/doc/refman/5.0/en/ Good luck! James Ha

Re: Support between MySQL and PHP

2006-01-30 Thread James Harvard
MySQL versions >= 4.1 use a new, more secure authentication protocol. Probably the version of PHP you are using does not support it. Ah, here it is: http://dev.mysql.com/doc/refman/5.0/en/password-hashing.html HTH, James Harvard At 1:18 pm -0600 29/1/06, Philip R. Thompson wrote: >

Re: DB Tables on separate hardisks

2006-01-26 Thread James Harvard
nks-to-tables.html HTH, James Harvard -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: UK Postcodes

2006-01-24 Thread James Harvard
is inflated, monopoly pricing which can only be hindering UK businesses from developing localised on-line services. James Harvard At 4:00 pm -0500 24/1/06, Rhino wrote: >You'd think that the people who run the post office in the UK - British >Telecom?? - would have had a number of en

Re: Troubles installing MySQL5 via Darwin Ports

2006-01-24 Thread James Harvard
cannot be read/written to), then download the appropriate installer from mysql.com and let the list know what problems you encounter with that. Good luck, James Harvard >On Jan 24, 2006, at 5:13 AM, James Harvard wrote: >>Is there a reason why you're using Darwin Ports and not the

Re: simple load query

2006-01-17 Thread James Harvard
Your FIELDS clause is not in the right place: http://dev.mysql.com/doc/refman/5.0/en/load-data.html HTH, James Harvard At 7:06 pm -0500 17/1/06, kalin mintchev wrote: > whats the problem with this: >load data infile 'stores.txt' into table useyourcash_sports_us (chain, >store,

Re: Query optimization

2006-01-12 Thread James Harvard
It might be a good idea if you could post the results of an EXPLAIN SELECT ... for a fast query and a slow query along with their actual SQL statements. James Harvard At 11:37 am -0800 12/1/06, Tripp Bishop wrote: >I've got a question regarding optimizing a query. -- MySQL General

Re: Geographical advice

2006-01-10 Thread James Harvard
dius of 3. Therefore you search WHERE x BETWEEN 3 AND 9 AND y BETWEEN 5 AND 11. I'm not certain but I think MySQL should be able to used a combined index of (x,y) for that. As you probably know you can use EXPLAIN SELECT to check whether MySQL is using an index. HTH, James Harvard At 12:01 p

Re: query with vars

2006-01-08 Thread James Harvard
You should be able to join the tables like this: select p1.id /* and other cols */ from people1 p1 inner join people2 p2 on p1.Lname = p2.Lname and left(p1.Fname, 3) = left(p2.Fname, 3) group by p1.id; HTH, James Harvard >I have two independently built tables of people. I am trying to ma

Re: join question

2006-01-05 Thread James Harvard
http://dev.mysql.com/doc/refman/4.1/en/example-maximum-column-group-row.html I'd translate it to your example, but it's bed-time here in England! HTH, James Harvard At 11:42 pm + 5/1/06, Terry Spencer wrote: >I have a question for clearer brains than mine. I would like to joi

Re: Strange insert

2006-01-05 Thread James Harvard
I assume you did not intend to post to this list, but if you did then this is a problem with your application code, not with MySQL, so I'm afraid this list is not the best place to ask. James Harvard At 11:19 am -0600 5/1/06, Ngim wrote: >Hi all, > >I have an one insert state

Re: SELECT help.

2006-01-05 Thread James Harvard
ay of doing this though, if your tables are very large. This might work too: select c_name, count(t.id) as t_count, max(t.date) as t_latest from customers c inner join transactions t on c.c_no = t.c_no group by c.c_no having t_count > 4 and t_latest < '2005-06-05'; HTH, James

Re: SELECT DISTINCT uses index but is still slow

2006-01-05 Thread James Harvard
0.01 seconds is so fast that I wonder if that's actually because the query cache is storing the query. Do you have query cache enabled? James At 6:35 am + 5/1/06, C.R.Vegelin wrote: >Hi James, >I have found similar - slowdown - effects for queries. >However, it is not alw

Inconsistent rows returned & examined in slow query log

2006-01-04 Thread James Harvard
the subsequent queries were not dealt with by the query cache. Any ideas? Thanks, James Harvard # Time: 060103 9:45:12 # [EMAIL PROTECTED]: lasso[lasso] @ localhost [127.0.0.1] # Query_time: 86 Lock_time: 0 Rows_sent: 12 Rows_examined: 6733255 select sql_cache dates.date_month from data_gb_e

<    1   2   3   4   5   6   7   8   9   10   >