Re: uninstall/reinstall

2010-10-29 Thread George Larson
We're talking about a Windows machine, right? I don't have any of those these days but it sounds to me like it didn't thoroughly uninstall. If that much is correct, I'd first be suspicious of junk left in the registry or data directories. Even if it meant I had to install it again, I'd use a sep

Re: Ineffective OPTIMIZE TABLES

2010-10-04 Thread George Larson
Aha! You are precisely correct. Thank you! On 3 October 2010 21:16, Dan Nelson wrote: > In the last episode (Oct 03), George Larson said: >> I have an InnoDB table with a 'Data_length' of 114688 and 'Data_free' >> of '3896508416'.  If I'm

Ineffective OPTIMIZE TABLES

2010-10-03 Thread George Larson
Hello all. I have an InnoDB table with a 'Data_length' of 114688 and 'Data_free' of '3896508416'. If I'm correctly understanding what I've been reading, those are good conditions to optimize the table. I understand the part where it maps to 'ALTER' for InnoDB. However, nothing I do seems to aff

Re: InnoDB Buffer Pool Status

2010-09-21 Thread george larson
Willy Mularto wrote: > Hi, > I got this result on InnoDB Buffer Pool Status: > Free pages1 > Dirty pages 2,040 > Pages containing data 31,359 > Pages to be flushed 457,083,205 > Busy pages1,408 > > Read requests 31,348,288,497 > Write requests7,913,407,934 > Read

Re: SOLVED!!!!Re: hard disk crash: how to discover the db?

2010-09-16 Thread george larson
Uwe Brauer wrote: > > What I had to do in addition was to copy the ibdata1 > *then* I recovered the content of the db. > > Thanks a lot > > > Uwe Brauer > Uwe, Congratulations! That's great news! Sorry I didn't know to mention that step. Where is your 'ibdata1'? Mine is in '/var/lib/mysql' so

Re: Capitalize Input via Auto Complete?

2010-09-15 Thread george larson
Johan De Meersman wrote: > On Wed, Sep 15, 2010 at 12:50 AM, Daevid Vincent wrote: > >> You do know you can use ssh tunnels and such to connect to your server from >> your desktop right? I do it all day long. It's pretty easy to do and built >> in to these programs. >> > > You can't multi-jump, t

Re: Capitalize Input via Auto Complete?

2010-09-14 Thread george larson
Carlos Mennens wrote: > On Tue, Sep 14, 2010 at 2:24 PM, Daevid Vincent wrote: >> Get this tool: http://sqlyog.com/ it rocks. >> >> There is also http://www.quest.com/toad-for-mysql/ which is pretty great. > > I can't use any graphical or 3rd party add-on's. I was hoping MySQL > had this native /

Re: Capitalize Input via Auto Complete?

2010-09-14 Thread george larson
Daevid Vincent wrote: > Get this tool: http://sqlyog.com/ it rocks. > > There is also http://www.quest.com/toad-for-mysql/ which is pretty great. > > Alternatively, there is MySQL WorkBench. Some of the guys around here use SQLYog but, since it is a LAMP environment, I like that WorkBench is

Re: hard disk crash: how to discover the db?

2010-09-10 Thread george larson
Shawn Green (MySQL) wrote: > On 9/10/2010 10:01 AM, george larson wrote: >> >> Uwe Brauer wrote: >> ... >> The only one I know of, for my environment, is /etc/my.cnf. I believe >> that it can be located elsewhere but you could just use 'find' to find &

Re: hard disk crash: how to discover the db?

2010-09-10 Thread george larson
file, when it > does not exist, since you just deleted everything? > > anyway, I hope I missed the joke here, or missed something... > > Steve. > > > On Thu, 2010-09-09 at 18:02 -0400, George Larson wrote: >> We do nightly backups at work just by taring the mysql

Re: hard disk crash: how to discover the db?

2010-09-10 Thread george larson
Uwe Brauer wrote: >>>>>> On Thu, 09 Sep 2010 18:02:09 -0400, George Larson >>>>>> wrote: > >> We do nightly backups at work just by taring the mysql directory. In >> my environment, that is /var/lib/mysql. > >> Lik

Query conditions

2010-09-10 Thread george larson
Hi all. I've got a greenhorn question but I didn't find the right keywords to get Google to answer it for me. Is it more efficient to put conditions in a JOIN instead of sticking them all at the end in the WHERE clause, or is that just a matter of preference? Putting conditions in the JOIN It se

Re: hard disk crash: how to discover the db?

2010-09-09 Thread George Larson
We do nightly backups at work just by taring the mysql directory. In my environment, that is /var/lib/mysql. Like this: service mysql stop cd /var/lib/mysql rm -rf * tar zxvf file.tar rm -rf ib_logfile* chown -R mysql.mysql service mysql start Something similar might work for you. Somebody wit

Seems like an easy query, but isn't to me. Help?

2010-08-19 Thread George Larson
UUdate IS NULL GROUP BY UUid; ) as sub; In this case, the field 'previous' is the UUid that I want to copy the UUdate from and sub.UUid is where I want to copy to. Does that even make sense? Thanks, George

Disable bin-log without restart

2010-06-11 Thread George Chelidze
Hello, I have a quite loaded server with bin-log enabled. I'd like to disable binary logging globally not for a single session without restarting mysql. Is it possible? Any input is appreciated. Best Regards, George -- MySQL General Mailing List For list archives: http://lists.mysq

ANN: Debugger for MySQL 1.2 released

2010-05-31 Thread George Schmidt
http://www.mydebugger.com/whatsnew.php Thank you for your interest. -- Best regards, George Schmidt, http://www.mydebugger.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

RE: Mysql - Tables Export to Excel!

2010-04-08 Thread George Pitcher
You can also use HeidiSQL, another free tool to visually manage and export structure/data etc (and a whole host of other stuff) I use it to manage windows and linux hosted databases. George -Original Message- From: Krishna Chandra Prajapati [mailto:prajapat...@gmail.com] Sent: 08 April

ANN: Debugger for MySQL 1.1 released

2010-03-22 Thread George Schmidt
gards, George Schmidt, http://www.mydebugger.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

RE: Starting MySQL in Maintenance mode

2009-05-20 Thread TETTERTON George
...@logicworks.net] Sent: Wednesday, May 20, 2009 4:13 PM To: TETTERTON George; mysql@lists.mysql.com Subject: RE: Starting MySQL in Maintenance mode Do 'service mysql restart --skip-networking' This prevents all TCP/IP connections You can login as r...@localhost and the client program will use the s

Starting MySQL in Maintenance mode

2009-05-20 Thread TETTERTON George
equivalent for MySQL? George Tetterton Alcatel-Lucent 3400 W. Plano Pkwy Plano, TX 75075 Office: 972-477-1571 Cell: 972-400-0887 Email: george.tetter...@alcatel-lucent.com mailto:george.tetter...@alcatel-lucent.com> Yahoo Messenger ID: george_tetterton

Re: Creating / Lookup Users For Database

2009-04-22 Thread George Larson
On Wed, Apr 22, 2009 at 3:11 PM, Carlos Williams wrote: > On Wed, Apr 22, 2009 at 3:04 PM, Carlos Williams wrote: >> Now I did create that new database called 'forums' and would like to >> create a new user who has access only to that specific database from >> localhost. I can't seem to find the

Re: Creating / Lookup Users For Database

2009-04-22 Thread George Larson
On Wed, Apr 22, 2009 at 2:40 PM, Carlos Williams wrote: > On Wed, Apr 22, 2009 at 2:40 PM, Carlos Williams wrote: >> On Wed, Apr 22, 2009 at 11:53 AM, Brent Baisley wrote: >>> All user information is stored in the mysql database. If you want to >>> see a list of users that have been created, que

Re: learning mysql

2009-03-25 Thread George Larson
I'm quite a distance from the best person to answer this question but MySQL has weekly webinars and there are a ton of good tutorials on the web. I started with WAMP (LAMP, MAMP and XAMP are suitable alternatives) and just started reading tutorials. Then I went to the local discount store and got

Re: IBM could buy Sun?

2009-03-18 Thread George Larson
Yeah! No kidding. If IBM doesn't pick it up then maybe I will. ;-p On Wed, Mar 18, 2009 at 12:30 PM, Lin Chun wrote: > Sun only worth 6.5 billions? > > -- > - > Lin Chun >

Binary Log Incremental / Full Backups

2007-08-08 Thread George Cooke
I am new to MySQL administration, and must devise a backup plan, I have read the manual but still want to know if I am understanding and applying the principals correctly, please let me know if you have a better way, or if I am wrong somewhere, my main question is regardng the locking of the databa

Re: Mysql Crashes I/O error...

2007-08-06 Thread George F. Crewe
This was a faulty disk after all. I just did not see any errors, when running smartd. However, they showed up when looking on the system log. I am currently replacing the disk. Thank you, George Crewe On 8/3/07, George F. Crewe <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I

Mysql Crashes I/O error...

2007-08-03 Thread George F. Crewe
//dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html InnoDB: File operation call: 'read'. InnoDB: Cannot continue operation. I check my disk with smartd utility and it passes the test. I do not know where to look. Any help will be greatly appreciated. George Crewe

RE: www.innodb.com

2006-11-10 Thread George Law
I'm seeing:   innodb.comHere are some related websites for: innodb.com Sponsored Links MySQL database designData

Re: transaction in mysql 5

2006-10-31 Thread George-Cristian Bîrzan
t; the first script commit to the database or rollback ? http://dev.mysql.com/doc/refman/5.0/en/innodb-transaction-isolation.html -- George-Cristian Bîrzan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Inconsistent table rows with information_schema

2006-10-27 Thread George-Cristian Bîrzan
information_schema table, > however, I don't get a consistent reading. > executing it multiple times, I get multiple numbers. (and no, the table > is static already, no updates/deletes etc) That's a guesstimate if using InnoDB. Works for MyISAM... -- George-Cristian Bîrzan -- MySQL G

Re: InnoDB messup

2006-10-19 Thread George-Cristian Bîrzan
> created) and I then restored the data from a dump. Well, the thing is... There is no dump. Or rather, what we have is rather old... :-P -- George-Cristian Bîrzan Network Engineer ___ RCS & RDS Constanta Tel.: +40341.400.401 / +40341.400.402 Fax: +40

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

2006-10-19 Thread George-Cristian Bîrzan
ere is no way to do this in MySQL, does anyone have any > innovative suggestions as to how I could work around the problem? The > table is very large, so solutions involving multiple copies are tricky > to implement. Convert the table to InnoDB, which uses row level locking, as opposed t

RE: bin-log with expire_logs_days

2006-10-19 Thread George Law
I can get the disk space down to a more manageable capacity. The previous DBA had told me that the last time he purged the logs, it took it several minutes - but I can only assume he tried to purge too much at once. Thanks again! -- George >-Original Message- >From: Dan Buett

Re: InnoDB messup

2006-10-18 Thread George-Cristian Bîrzan
On Wednesday 18 October 2006 23:36, Dan Buettner wrote: > George-Cristian - is it possible that the *.frm files also got moved > about?? Nope. What I'm thinking is the logs got moved, server restarted, it created new ones and... -- George-Cristian Bîrzan Netwo

bin-log with expire_logs_days

2006-10-18 Thread George Law
f I were to add 'expire_logs_days 45' to my.cnf and restart mysql, is mysql going to attempt to purge the logs > 45 days old and if so... how long does it typically take. We cannot afford to restart if its going to take any significant amount of time for it to purge the logs and restart

Re: InnoDB messup

2006-10-18 Thread George-Cristian Bîrzan
TECTED] > > Sent: Wednesday, October 18, 2006 2:16 PM > > To: George-Cristian B�rzan > > Cc: mysql@lists.mysql.com > > Subject: Re: InnoDB messup > > > > Can you just put the files back where they were originally? > > Ordinarily that would be in the path s

InnoDB messup

2006-10-18 Thread George-Cristian Bîrzan
s, is there a way to fix this? (Well, I have the .MYD and .MYI from back when the table was MyISAM, but I lack the .frm, and using an older one makes MySQL segfault...) -- George-Cristian Bîrzan -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:ht

purging bin logs

2006-10-10 Thread George Law
m what the previous admin who I inherited this from says, this locks up the whole database while its purging the logs. Are there any low-impact solutions? This is a fairly high traffic DB, so locking up the database really is not an option. Thanks! George Law glaw at ionosphere.net -- MySQL Gener

Free chapter of O'Reilly High Performance MySQL on replication

2006-10-06 Thread Curious George
Thought this might be of interest to some on the list: http://www.oreilly.com/catalog/hpmysql/chapter/ch07.pdf -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Question

2006-10-03 Thread George Law
show processlist gives you an abbreviated list of queries. show full processlist gives you the full queries. >-Original Message- >From: Feliks Shvartsburd [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 03, 2006 1:57 PM >To: mysql@lists.mysql.com; [EMAIL PROTECTED] >Subject: Questio

perl/dbi - insert into server2.db2.table2 select * from server1.db1.table1

2006-09-29 Thread George Law
",?" : "?") for (@results); my $sth2 = $dbh2->prepare("INSERT INTO table2 values ($placeholders);"); $sth2->execute(@results); $sth2->finish; } $sth1->finish; $dbh1->disconnect(); $dbh2->disconnect(); George Law [EMAIL PROTECTED] MSN: [EMAI

Error 1064 when importing 4.0 dump into 4.1 via command line

2006-09-26 Thread Curious George
I dumped a database from a 4.0 mysql and am attempting to move it to a server running 4.1 - using the command line: $ mysql -u root -pmypassword empty4.1db < 4.0dump.sql The result: ERROR 1064 (42000) at line 2: You have an error in your SQL syntax; check the manual that corresponds to your MySQL

RE: Mysql and Perl

2006-09-25 Thread George Law
damn outlook! fire up perl's CPAN interface: perl -MCPAN -eshell cpan> i /mysql/ ... Bundle Bundle::DBD::mysql (C/CA/CAPTTOFU/DBD-mysql-3.0007.tar.gz) ... cpan> install Bundle::DBD::mysql >>>-Original Message- >>>From: Jørn Dahl-Stamnes [mailto:[EMAIL PROTECTED] >>>Sent: M

RE: Mysql and Perl

2006-09-25 Thread George Law
someone correct me if I am wrong. DBI is the generic database interface module for perl DBD::mysql is the mysql specific module DBI relies upon to talk to mysql. cpan> i /mysql/ >>>-Original Message- >>>From: Jørn Dahl-Stamnes [mailto:[EMAIL PROTECTED] >>>Sent: Monday, September 25,

Link request from a Hiking Forums

2006-09-18 Thread George McFee
Hello, My name is George and I'm from http://www.hikingforums.net/. While visiting your site I have noticed that you are collaborated with other sites, and I wish to invite you to work with my website as well. If you can support Hiking Forums by adding a link to your site, I'll be

RE: Degrading write performance using MySQL 5.0.24

2006-08-30 Thread George Law
crname` char(50) default NULL, `call_dest_custid` char(20) default NULL, `call_zone_data` char(20) default NULL, `calling_party_on_dest_num_type` int(1) default '0', `calling_party_from_src_num_type` int(1) default '0', `original_isdn_cause_code` int(1) default '0&#

RE: Degrading write performance using MySQL 5.0.24

2006-08-30 Thread George Law
l Message- >>>From: Jay Pipes [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, August 30, 2006 1:44 PM >>>To: George Law >>>Cc: mysql@lists.mysql.com >>>Subject: RE: Degrading write performance using MySQL 5.0.24 >>> >>>What type of data are

RE: Degrading write performance using MySQL 5.0.24

2006-08-30 Thread George Law
er get a solid answer. If I disable the keys, do the import, then re-enable the keys, it takes just as long, if not longer. I have just about given up on finding a solution for this and just rotate my tables out regularly once the imports take over 5 minutes to process roughly 10,000 records --

RE: Finding field in all tables

2006-08-22 Thread George Law
Love it when that happens :) Fastest way I can think of is dumping out the structure of the database with mysqldump -d > database.sql and then searching the output to see where those columns appear >>>-Original Message- >>>From: Jerry Schwartz [mailto:[EMAIL PROTECTED] >>>Sent: Tuesd

RE: sorting datafile for "load data infile"

2006-08-18 Thread George Law
idth char fields. So, I am eager to see if this sorting idea helps any. -- George >>>-Original Message- >>>From: Dan Buettner [mailto:[EMAIL PROTECTED] >>>Sent: Friday, August 18, 2006 3:53 PM >>>To: George Law >>>Cc: MYSQL General List &

RE: sorting datafile for "load data infile"

2006-08-18 Thread George Law
r [mailto:[EMAIL PROTECTED] >>>Sent: Friday, August 18, 2006 1:40 PM >>>To: George Law >>>Cc: MYSQL General List >>>Subject: Re: sorting datafile for "load data infile" >>> >>>George, I've not heard of that technique - "sorting

sorting datafile for "load data infile"

2006-08-18 Thread George Law
89628873 | | 008bbf9dc9691110800100201c00edff | 89627287 | Any suggestions on exactly how to sort those fields before Thanks!!! -- George Law [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: forcing leading 0 for numeric fields

2006-08-10 Thread George Law
Mark, Perfect! Thanks!! I altered my table to specify ZEROFILL and that did the the trick. -- George >>>-Original Message- >>>From: Mark Leith [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, August 09, 2006 3:56 PM >>>To: Jonathan Mangin &

forcing leading 0 for numeric fields

2006-08-09 Thread George Law
ery does not work, butselect * from table where concat(npa,nxx,station)=800123123 does. TIA! -- George -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Checkboxes

2006-07-26 Thread George Law
sure how this would work with an array (mod_type[]). PHP might treat the hidden field as index 0, and if the checkbox is checked, it would be index 1 - George >>>-Original Message- >>>From: Nicholas Vettese [mailto:[EMAIL PROTECTED] >>>Sent: Wednesday, July

RE: yes or no checkbox

2006-07-25 Thread George Law
I think if you do it as a enum field, it shows as a checkbox in phpmysql define it as enum 'Yes','No' >>>-Original Message- >>>From: Brian E Boothe [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, July 25, 2006 11:07 AM >>>To: mysql@lists.mysql.com >>>Subject: yes or no checkbox >>> >>>kn

RE: log

2006-07-11 Thread George Law
Just a shot in the dark... how about : \T /home/karl/sql_log_$$ I believe, in bash, $$ will give you the pid of the process, so you should get a unique (somewhat) file name every time >>>-Original Message- >>>From: Karl Larsen [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, July 11, 2006

RE: MS SQL TOP Replacement

2006-06-29 Thread George Law
SELECT max(id) FROM menu_links :) > -Original Message- > From: Mike Wexler [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 29, 2006 1:22 PM > To: Mike > Cc: mysql@lists.mysql.com > Subject: Re: MS SQL TOP Replacement > > Mike wrote: > > I have a SELECT statement for MS SQL that is > >

RE: reclaim disk space

2006-06-21 Thread George Law
I had to do some disk space recovery mysql last month... I have backed up some of the raw .MYI, .MYD files and deleted them from the data directory. Running 5.0.18, I had to shut down mysql and restart before it freed up the space. > -Original Message- > From: Dan Nelson [mailto:[EMAIL

RE: select 9000000000000.10*19.80 wrong result 178200000000001.97

2006-05-30 Thread George Law
You don't need to take it to 16 digits : mysql 4 : select 1/666; +---+ | 1/666 | +---+ | 0.00 | +---+ mysql 5.0.18: select 1/666; ++ | 1/666 | ++ | 0.0015 | +----+ George Law > -Original Message- > From: Chris W [mailto:[EMAIL PROTEC

RE: Fun with Dates and Incentives.

2006-05-24 Thread George Law
(unix_timestamp(NOW()) - 1148492137)/60; +-+ | (unix_timestamp(NOW()) - 1148492137)/60 | +-+ |2.32 | George Law > -Original Message- > From: Brian Menke [mailto:[EMAIL PRO

RE: SPAMs

2006-05-24 Thread George Law
more than likely someone is harvesting emails off groups.google.com http://groups.google.com/group/mailing.database.myodbc Your posting shows top of the list :) George Law > -Original Message- > From: Jørn Dahl-Stamnes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 24, 200

RE: Looking for free MySQL Administrator

2006-05-23 Thread George Law
there is also a nice tool for Mac OSX called CocoaMySQL. http://cocoamysql.sourceforge.net/ George Law > -Original Message- > From: Rajesh Mehrotra [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 23, 2006 3:58 PM > To: Rithish Saralaya; mysql@lists.mysql.com > Subject:

RE: Returning records in a circle

2006-05-12 Thread George Law
I ran into this same type of question the other evening at a local linux group. I think that once you reach the end of the results set the only way to start back at the beginning of that results set is to do the query again. Once option - do your query and grab all the rows load them into a dat

RE: Can I set UNIX_TIMESTAMP() as default?

2006-05-10 Thread George Law
Nicholas, just found something on google: "In general, this cannot be done. Default values cannot be the return of a MySQL function (as much as I'd love to use NOW() for default values!). However, there's one loophole. When inserting, not specifying a value for the first timestamp field in a ta

RE: MySQL 5 / phpMyAdmin

2006-05-10 Thread George Law
try a search for "old_password" -Original Message- From: Amer Neely [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 1:39 PM To: MySQL List Subject: MySQL 5 / phpMyAdmin I've finally got MySQL 5.0 going on my Win2K machine, but phpMyAdmin 2.8.0.3 is now giving me grief. It giv

RE: inserting server time into mysql

2006-05-09 Thread George Law
$query = "INSERT INTO staffs (firstname, lastname, signin) VALUES ('$firstname', '$lastname', NOW())"; I think if you alter the table and set a default value on signin to NOW() ALTER TABLE staffs CHANGE signin signin DATETIME DEFAULT 'now()' not null'; then you could just to : $query = "INSE

RE: Outfile syntax and out of memory

2006-05-08 Thread George Law
Johan, have you thought about doing this incrementally? ie - 25% at a time x 4 to show something for NULL, you can use the COALESCE function. ie - COALESCE(column,'nothing') -- George Law VoIP Network Developer 864-678-3161 [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] -Origin

RE: importing a dumpfile from with the mysql client

2006-05-05 Thread George Law
I think what he is saying is that be began the "transaction" in a command line client session from one location but was not able to give the > mysql> SET FOREIGN_KEY_CHECKS = 1; > mysql> COMMIT; commands in the same session. (ie - I owe, I owe, its off to work I go :) ) This is a good questi

RE: How to rename a DB

2006-05-05 Thread George Law
DOH! Sorry - I totally misread the question! A quick google for "rename database" shows Adrian is correct! -Original Message- From: Adrian Bruce [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 9:51 AM To: George Law Cc: Hardi OK; mysql@lists.mysql.com Subject:

RE: How to rename a DB

2006-05-05 Thread George Law
Hardi I rotate tables out on a monthly basis. The way I do it is: rename table1 to table2 If you need a new copy of table1, you can do : create table table1 like table2 -- George -Original Message- From: Hardi OK [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 11:19 PM

RE: EXPORTING results to CSV

2006-05-03 Thread George Law
try : select . into outfile '/tmp/t3.csv' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' from table where . This will create a file in the /tmp directory on the DB server itself this doesn't do the column headings and your output file cannot already exist. -Original Mess

RE: Help with this query. How to do a group by on a datetime just the month/day/year

2006-05-03 Thread George Law
try: group by substring(timeofclick,1,10) -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:25 AM To: mysql@lists.mysql.com Subject: Help with this query. How to do a group by on a datetime just the month/day/year Hello, Not sure if i ca

RE: UPDATE question

2006-05-03 Thread George Law
Shawn, Perhaps : UPDATE TABLE_NAME SET FIELD4 = concat(FIELD1,FIELD2); -Original Message- From: Cummings, Shawn (GNAPs) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 9:33 AM To: Mysql General (E-mail) Subject: UPDATE question If I have 4 Fields (FIELD1, FIELD2, FIELD3 &

RE: Script run how???

2006-05-01 Thread George Law
perl ? just quickly throwing something together - this is untested. $done = 0; $count = 0; while ($done) { $dbh->do("analyze table t1"); my $info = $dbh->{mysql_info}; if ($info =~ /some kind of error message/) { $dbh->do("repair table t1"); my $info2 = $dbh->

RE: Import from unknown format (.bdd .ind .mor .ped)

2006-04-27 Thread George Law
- chances are its just a flat file - try opening it in A text editor. If the file command reports "data" - then it is probably some type of database file. Just a thought :) -- George -Original Message- From: Pedro mpa [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2

RE: Carriage return in query ???

2006-04-21 Thread George Law
'\n' works for me in the command line client select concat('Co: ABC','\n','Acct: 123','\n','Drive: Summer Special'); +-+ | concat('Co: ABC','\n','Acct: 123','\n','Drive: Summer Special') | +---

RE: WHERE doesn't work

2006-04-20 Thread George Law
After you give the query, try : echo mysql_error()."".mysql_info(); This way, you should be able to see exactly what error is coming back from PHP/MySQL -Original Message- From: Tom Lobato [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 1:55 PM To: Jay Blanchard; mysql@lists

RE: Select a value between dates.

2006-04-12 Thread George Law
This brings up a question I was asked... Which is more efficient? Select . where date between '-mm-dd hh:mm:ss' and '-mm-dd hh:mm:ss' Or Select . where unix_timestamp(date) between unix_timestamp('-mm-dd hh:mm:ss') and unix_timestamp('-mm-dd hh:mm:ss')

RE: Error on T_echo ?? what is this ?

2006-04-12 Thread George Law
PHP is picky on what can and cannot be in quotes... I get this all the time. Try : $sql = "INSERT INTO addvalue (`value1`, `value2`, `sumfeild`) VALUES ('".$value1."', '".$value2."', '".$sumfield."')"; $result=MYSQL_QUERY($sql); I think part of the error had to do with you missing a ) at the e

RE: Days in Month

2006-04-04 Thread George Law
Mike, Maybe : LAST_DAY(date) Takes a date or datetime value and returns the corresponding value for the last day of the month. Returns NULL if the argument is invalid. mysql> SELECT LAST_DAY('2003-02-05'); -> '2003-02-28' mysql> SELECT LAST_DAY('2004-02-05'); -> '2004-02-29' m

Re: Restoring a database from a complete MySQL dump

2006-03-08 Thread George Law
You should be able to pull each table (create + inserts) out into a stand alone file table1.sql table2.sql etc... and then you can restore table by table. This might be harder depending on the size of your database tables. If you have a million rows, chances are your .sql file is huge and it

Re: Movable Type + OSXServer + MySQL issues.

2006-03-04 Thread George Law
Movable Type + OSXServer + MySQL issues.Miles, David is correct - DBI isn't installed in OSX by default. check out http://www.brandonhutchinson.com/installing_perl_modules.html for a brief into on installing from CPAN. Make sure you do this as root or through sudo -- G

RE: dumping results of a select

2006-03-02 Thread George Law
mysqldump has a -w option: -w, --where= dump only selected records; QUOTES mandatory! -- George > -Original Message- > From: 2wsxdr5 [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 02, 2006 12:30 PM > To: 'MySQL general mailing list' > Subject: du

RE: apostrophe char problem

2006-03-02 Thread George Law
ill change a single quote ' to a double '' so its mysql safe. Then when it reads it back in from the database and renders the HTML, it also displays the doubles. If you look in the database iteself from the mysql command line client do the double quotes show? -- George Law

RE: jdbc:mysql

2006-02-28 Thread George Law
Is your mysql server listening just on localhost (127.0.0.1)? That is differnet than 192.xxx.xxx.xxx > -Original Message- > From: Xiaobo Chen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28, 2006 11:27 AM > To: Amaia Anabitarte > Cc: mysql@lists.mysql.com > Subject: Re: jdbc:

Re: Query returns to many results

2006-02-23 Thread George Law
s running the query. This has helped me determine some additional indexes that greatly speed up my queries. -- George - Original Message - From: "Schalk" <[EMAIL PROTECTED]> To: Sent: Thursday, February 23, 2006 6:59 AM Subject: Query returns to many results Greet

RE: mysqlimport, \r\n and \n

2006-02-21 Thread George Law
Daniel, What about just running your import file through dos2unix before piping it to mysql? That way, it would leave \n alone (since that is unix format) and replace any occurrances of \r\n with plan old \n. -- George > -Original Message- > From: Daniel Kasak [mailto:

Re: MySQL and OpenOffice - JDBC

2006-02-19 Thread George Law
Michael, can you connect using the command line client? sounds to me like it may be the "old_password" problem. http://dev.mysql.com/doc/refman/5.0/en/old-client.html -- George - Original Message - From: "Michael Satterwhite" <[EMAIL PROTECTED]> To:

RE: Problems getting MySqlDump to use sub-queries

2006-02-15 Thread George Law
Henry, Maybe the shell is doing something funky with the parens? maybe try escaping them with the \ ?? Just a wild guess :) > -Original Message- > From: Henry Dall [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 15, 2006 12:06 PM > To: mysql@lists.mysql.com > Subject: Problem

Re: Insert and Update together

2006-02-11 Thread George Law
Andre, I tried this a couple weeks ago... I think you want the "on duplicate" option for the INSERT query. depends what version you have... I think this was introduced in mysql 4.1 insert into values () on duplicate key update set x=2,y=5; unfortunately, the server I was testing thi

Re: Migration

2006-02-11 Thread George Law
looks like there is only a partial query INSERT INTO `jos_banner` VALUES (1,1,'banner','OSM 1',0,46,0,'osmbanner1.png ','http://www.opensourcematters.org','2004-07-07$ there is no ending ', so when it hits the 'jos_banner /*!4 ALTER TABLE `jos_banner` it sees it as the end of the field

RE: Innodb table locked on delete

2006-02-10 Thread George Law
I have also seen the table locking on deletes and even on large selects with INNODB. I had converted to INNODB strictly for the "row level locking" that is the biggest selling point of using INNODB. So all the avantages of INNODB that are advertised (ie - row level locking) are mis-represented?

RE: Moving from PowWeb to Rackspace

2006-02-06 Thread George Law
t tool md5sum export.sql.gz Then after you upload, run the same command to make sure you didn't loose any bits in the transfer. -- George > -Original Message- > From: JamesDR [mailto:[EMAIL PROTECTED] > Sent: Monday, February 06, 2006 11:54 AM > To: mysql@lists

RE: Report Generator

2006-02-06 Thread George Law
site belongs to a previous employer). At the time, I think I had to drop the unpacked jar file for the mysql driver into the Tomcat source directory. That is about all I remember about Tomcat. -- George Law > -Original Message- > From: Chuck Craig [mailto:[EMAIL PROTECTED] >

RE: Support between MySQL and PHP

2006-01-30 Thread George Law
Phillip, You probably didn't need to upgrade - just set the mysql password to use "old_password": FTFM: "As indicated earlier, a danger in this scenario is that it is possible for accounts that have a short password hash to become inaccessible to pre-4.1 clients. A change to such an account'

RE: Lost connection to MySQL server during query

2006-01-24 Thread George Law
... Before continuing. -- George -Original Message- From: David Godsey [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 4:09 PM To: mysql@lists.mysql.com Subject: Lost connection to MySQL server during query I am getting this error when connecting to mysql with PHP: Lost con

Longest substring match

2006-01-24 Thread George Law
to find the longest sub string match right in SQL. Thanks!! George Law -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: How can I isolate the integer part of a varchar field and use it in an ORDER BY?

2006-01-24 Thread George Law
the numeric part), and sort based on these 2 column. -- George -Original Message- From: Nicolas Verhaeghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 11:09 AM To: mysql@lists.mysql.com Subject: RE: How can I isolate the integer part of a varchar field and use it in an

RE: How can I isolate the integer part of a varchar field and use it in an ORDER BY?

2006-01-24 Thread George Law
--+ | uid | name | +-+---+ | 1 | george099 | | 2 | george100 | | 3 | george101 | | 4 | george001 | | 5 | 123bill | | 6 | 100bill | | 13 | george| | 14 | darren| | 15 | joe | | 16 | bill | +-+---+ 10 rows in set (0.00 sec) mysql> select uid,name fro

  1   2   3   4   >