Re: how would mysqld restart affect dynamically set global variables?

2007-03-14 Thread William R. Mussatto
lly. If they work change the my.cnf to make them survive the next time mysql is restarted (for example on a reboot). --- William R. Mussatto, Senior Systems Engineer http://www.csz.com Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: htt

Re: ENCODE() and DECODE()

2007-03-12 Thread William R. Mussatto
On Mon, March 12, 2007 8:04, Neil Tompkins said: > I've been researching the best method to store credit card numbers in a > database which are saved encrypted. My version of mysql is 3.23 therefore > I > think the only function I could use is > > ENCODE() and DECODE(). > > I've tried these functi

Re: Best Practice: Timezones and web development

2007-03-06 Thread William R. Mussatto
On Tue, March 6, 2007 9:40, Marcus Bointon said: > On 6 Mar 2007, at 17:12, David T. Ashley wrote: > >> Best practice is that all times maintained in a database (or >> anywhere on the >> server) are UTC, and are only converted to local timezone and/or >> adjusted to >> daylight savings time as requ

Re: MySQL Daylight Savings Time Patch - easy check

2007-02-28 Thread William R. Mussatto
On Wed, February 28, 2007 14:10, Ryan Stille said: > I am on 4.1.20-1. > > Maybe your OS isn't patched? > > Try this: "SELECT @@global.time_zone;" Won't help if you are on debian which is still on 4.0. > If you get back "SYSTEM", then MySQL is looking to the OS for timezone > data. And its only l

[Fwd: RE: [PART 2/2] InnoDB - Different EXPLAINs for same query]

2007-01-18 Thread William R. Mussatto
aracter field, using LIKE, etc. I'm slowly but sure tracking those down and fixing them, I'm just curious if that could have anything to do with this strange behavior. Thanks, John A. -Original Message- From: William R. Mussatto [mailto:[EMAIL PROTECTED] Sent: Wednesday, January

Re: [PART 2/2] InnoDB - Different EXPLAINs for same query

2007-01-17 Thread William R. Mussatto
gt; open_files_limit=8192 # Anything higher needs corresponding ulimit entry > > > > #Buffers > > join_buffer_size=128M > > key_buffer_size=512M > > key_buffer=512M > > large_pages > > max_heap_table_size=1024M > > myisam_sort_buffer_size=256M > > read_buffer_size=64M > > read_buffer=64M > > query_cache_size=32M > > query_cache_type=1 > > record_buffer=512 > > sort_buffer=512M > > table_cache=512 > > thread_cache=4M > > thread_stack=512K > > thread_cache_size=300 > > thread_concurrency=16 > > tmp_table_size=1G > > > #innodb > > innodb-table-locks=off > > transaction_isolation=REPEATABLE-READ > > innodb_buffer_pool_size=1024M > > innodb_log_buffer_size=8M > > innodb_flush_log_at_trx_commit=0 > > innodb_log_file_size=128M > > innodb_additional_mem_pool_size=32M > > innodb_thread_concurrency=16 > > innodb_commit_concurrency=4 > > innodb_flush_method=O_DIRECT > > innodb_open_files=8192 > > innodb_sync_spin_loops=32 > > innodb_thread_sleep_delay=1000 > > innodb_autoextend_increment=1024M > > innodb_file_per_table=TRUE > > > > [client] > > socket=/tmp/mysql.sock > > > > > > John Anderson > > > > --- William R. Mussatto, Senior Systems Engineer http://www.csz.com Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: OT: LAMP appliance for non-profit use

2006-12-07 Thread William R. Mussatto
Have you looked at ubuntu distribution of linux. I think they have a 'school' variant which might be close to what you need. Also, the people there might be able to give you more help. Good luck. On Thu, December 7, 2006 9:39, Saqib Ali said: > Hello All, > > I know this is little bit off-topic

test email

2006-11-16 Thread William R. Mussatto
Sorry, but I haven't gotten any emails from the list and I'm trying to determine if there is a blockages. Sorry to disturb the list. --- William R. Mussatto, Senior Systems Engineer http://www.csz.com Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing Lis

Re: Alter Table Add Column - How Long to update

2006-10-20 Thread William R. Mussatto
to match the new structure), drop the old table and rename the new table to the old tables name. So the time might be realistic. It depends on the hardware you are using and what else is going on on the system. Hope this helps. --- William R. Mussatto, Senior Systems Engineer http://www.csz.

Re: Simple JOIN on three tables

2006-10-18 Thread William R. Mussatto
t; Then it is really a UNION. I hope you have the date field as an index otherwise you are looking at a table scan which is always slow. --- William R. Mussatto, Senior Systems Engineer http://www.csz.com Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list

Re: Simple JOIN on three tables

2006-10-18 Thread William R. Mussatto
it a RELATIONAL database. If the tables don't have such a relationship you are asking for the UNION of the separate information from table a, where it meets its WHERE conditions, and the information from table b where it meets its WHERE conditions. The fact that both where conditions are the

Re: Simple JOIN on three tables

2006-10-18 Thread William R. Mussatto
; -- > http://www.spacemarc.it Well that's what you asked it to do, if you look closely at your query. How are table a, b, and c related to each other? Do you want all the information from each of the tables (which are NOT related to each other) between the specified dates? If that is the

RE: RE: How to rewrite query

2006-10-17 Thread William R. Mussatto
Would it not be best to have the field with the fewest repeats (i.e., the closest to unique) first, or is that what you meant. Bill On Tue, October 17, 2006 10:12, Jerry Schwartz said: > I didn't think of that (combinations). You are probably right. Due to my > background, I tend not to think a lo

Re: file i/o operations...

2006-08-25 Thread William R. Mussatto
A couple of comments: - Simultaneous connections can be increased, but at some point the user than runs the mysqld process will run out of file handles it can allocate (each table takes 2 or 3). - If we are talking about a database server and test server being the same box then what are you trying

Re: Windows Server Configuration

2006-08-25 Thread William R. Mussatto
Just noticed that you said partitions. I am assuming that you meat multiple drives in a raid array. Bill David Lazo said: > Thanx again. > > For the time being, we will keep 4 drives with Dan's suggestion. OS and > MySQL running from there. > > > > On 8/25/06 11:03 AM, "Dan Buettner" <[EMAIL PR

Re: 1 to many relationships

2006-08-16 Thread William R. Mussatto
ore issues, but no issue can 'belong' to more than one customer then its 1 to many and you can put the customer ID in the issues table. If several customers can have the same issue (row) then you will need an intermediate table which has two columns: customerID and issueID. --- Wi

RE: LIMIT Question

2006-06-29 Thread William R. Mussatto
somewhere >> > between 1000 and 2000 rows, but you just want to see the >> last 50. These >> > last 50 might be the most recent entries, for example. Can >> this be done >> > in single query? >> > >> > Dirk Bremer - Senior Systems

Re: Connection Pooling

2006-05-08 Thread William R. Mussatto
romyd misc said: > Hi Everyone, > > I'm developing an application using C# .NET and mysql as database. It's a > multithreaded application, we open a mysql database connection at the very > beginning when the application is started and all the database requests > use > the same connection. But under

Re: New User Setting up MYSQL

2006-04-13 Thread William R. Mussatto
ing the installation. I wasn't sure what to use > to Default Schema so I just put in test. I keep getting a connection error > number 2003 stating I can't connect to MYSQL server. Is there something > that someone can suggest? > > > > Thanks, > > > > Chu

Re: table keys

2006-03-28 Thread William R. Mussatto
as you can see I do not select a engine type, is there some > engine type better suited and or faster for the way I am > trying to use the keys? > > Thanks for your advice and help. Close but you need to specify that the index is UNIQUE (see changes above) --- William R. Mussatto, Seni

Re: LVM-snapshot + mysqldump -- is this a reasonable backup

2005-09-29 Thread William R. Mussatto
is implies, at least to me, that one doesn't need a 2nd > database server or to do a mysqldump (your steps 5-7). Instead, we just > tar cv /mnt/ops/dbbackup (to use the article's example name for the > mounted snapshot), save the tape, and dispense with the snapshot. > Wouldn&

Re: Difference between Blob and varchar binary

2005-08-02 Thread William R. Mussatto
Gleb Paharenko said: > Hello. > > In my opinion, one of the causes of the problem can be the processing of > trailing spaces in varbinary fields. See: > http://dev.mysql.com/doc/mysql/en/binary-varbinary.html Thanks, you may be right since the results are too short. > >

Difference between Blob and varchar binary

2005-08-02 Thread William R. Mussatto
I was storing some 8 bit information in a varchar binary field (encrypted stuff) and I think its getting corrupted. I thought they were (except for size) interchangable? I'm running debian GNU Linux and haven't moved to sarge so I'm still on 3.23.x but will be moving shortly. ---

Re: Sharing a Database Between Websites

2005-03-23 Thread William R. Mussatto
David Blomstrom said: > I discovered by accident that I can link any website > on my reseller account to one database. That would be > far more convenient than working with six separate > databases, and it would also cut down on file size > overall, since there are certain tables that I share > bet

Re: database pooling problem

2005-03-07 Thread William R. Mussatto
Eric Bergen said: > Apache 1.3 with php (not sure about tomcat) is a pre forked daemon. Any > connection pooling numbers will be per child. Try setting your > connection numbers per child (for most php apps this is 1) and let us > know what happens. I'm guessing it will create as many connections a

RE: insert data

2005-02-28 Thread William R. Mussatto
ald >>> >>> >>>>I am trying to insert data for the first time using MySQL. In Oracle >>>> I used the following: >>>> >>>># my $sql = "insert into bar( group_name, me, daily, item, unit, >>>> qty, amount, tax, total ) >>>> >>>># values( ?, ?, ?, ?,?,?, >>>> ?, ?, ? ) "; >>>> my $sth = $dbh->prepare( $sql ); >>>> die $dbh->errstr if $dbh->err; >>>> $sth->execute( $group_name, $me, $daily, $item, $unit, $qty, >>>> $amount, >>>>$tax, $total ) || die "Cannot execute FIRST >>>> Statement!!\n$DBI::errstr"; >>>> >>>> >>>>I keep getting "Can't call method "prepare" on an un undefined value. >>>> All the name listed are correct by looking at MySQLAdmin1.3\4. >>> >>>Apart from David Logan's answer: >>> >>>You have to create the $dbh object first (man DBI); the "undefined >>> value" in >>> >>>the error message refers to that. >>> >>> >>>HTH >>> >>>joe > -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: moving DB from one box to another.

2004-12-16 Thread William R. Mussatto
index named with a keyword, which 3.23.x appears to > allow but 4.0.x doedsn't. Edit the dump file and see. > > - ian Or it could be that a table name is now a reserved word. DIV in my case -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061

Re: Mysql client that does export and import

2004-12-14 Thread William R. Mussatto
myodbc on the windows box and then use access. The firewall's (if any) will have to be adjusted so that traffic on the correct port is allowed from only that IP. Just a thought. -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL Genera

Re: Ok now connector/J doesn't work.

2004-11-22 Thread William R. Mussatto
Mark Matthews said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > William R. Mussatto wrote: > >>>Tried it and now I get connection timed out after three tries. I'm >>> running the testbed using the tomcat buried in netbeans. Cut and >>> pas

Re: Ok now connector/J doesn't work.

2004-11-22 Thread William R. Mussatto
Hassan Schroeder said: > William R. Mussatto wrote: > >>>Tried it and now I get connection timed out after three tries. I'm >>> running the testbed using the tomcat buried in netbeans. > > Frankly, the whole concept of running a server from "within"

Re: [PHP-DB] Upgrading mySQL

2004-11-22 Thread William R. Mussatto
Warning!! Make sure the php module will handle the new password scheme in 4.1. DBD::mysql from AS will not. There are work arounds. I'm having to fall back to 4.0 because I can't get .jsp to work with 4.1 database (no connection). GH said: > What I have been asking for... is that the upgrade do

Re: Ok now connector/J doesn't work.

2004-11-22 Thread William R. Mussatto
William R. Mussatto said: > Mark Matthews said: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> William R. Mussatto wrote: >>> Keith Ivey said: >>> >>>>William R. Mussatto wrote: >>>> >>>> >>&g

Ok now connector/J doesn't work.

2004-11-21 Thread William R. Mussatto
Mark Matthews said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > William R. Mussatto wrote: >> Keith Ivey said: >> >>>William R. Mussatto wrote: >>> >>> >>>>I've been googling for 1/2 hr w/o any answers. sorry if I'

Re: Mysql-4.1.7 and client library - Client does not support authentication protocol requested by server; consider upgrading MySQL client

2004-11-16 Thread William R. Mussatto
lution I used was to create the passwords using OLD_PASSWORD('plaintextPassword') function Look at http://dev.mysql.com/doc/mysql/en/Password_hashing.html for the details as well as work arounds. When they update DBD::mysql this should go away. -- William R. Mussatto, Senior Systems Engineer P

Re: What changed in 4.1.7 to break DBD::Mysql

2004-11-16 Thread William R. Mussatto
Michael Stassen said: > > Rudy Lippan wrote: > >> On Mon, 15 Nov 2004, Patrick Galbraith wrote: >> >> >>>William, >>> >>>I'm not sure about this, because it involves windows/active state, and >>> those ppm packages used for active state perl are pre-compiled to >>> run. I'll talk to the current m

Re: What changed in 4.1.7 to break DBD::Mysql

2004-11-15 Thread William R. Mussatto
un older mysql which have to support the old interfaces. The only think I can think to do (assuming you can't ask which version is supported) is to try the long and then the short version of the passwords, or to allow the default behavior of the DBI-> connect function to be altered by

Re: What changed in 4.1.7 to break DBD::Mysql

2004-11-15 Thread William R. Mussatto
Mark Matthews said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > William R. Mussatto wrote: >> Keith Ivey said: >> >>>William R. Mussatto wrote: >>> >>> >>>>I've been googling for 1/2 hr w/o any answers. sorry if I'

Re: What changed in 4.1.7 to break DBD::Mysql

2004-11-15 Thread William R. Mussatto
Keith Ivey said: > William R. Mussatto wrote: > >>I've been googling for 1/2 hr w/o any answers. sorry if I've missed >> the obvious. >>Problem. Fresh install of mysql 4.7.1, AS perl 5.8 >>DBI and DBD-Mysql via ppm. >>Client does not support authn

What changed in 4.1.7 to break DBD::Mysql

2004-11-15 Thread William R. Mussatto
#x27;dbi:mysql:cjuhsdinfo', '{username}', '{password}') called at stdconfig.ph line 2 Any thoughts on how far I need to fall back to get around this? -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For li

Re: MySQL 4.0 and concat

2004-10-11 Thread William R. Mussatto
manual, and also read High Performance MySQL >> from Zawodny >> and Balling, and MySQL from Paul Dubois, but none of them seem to > address >> this issue. >> >> Can somebody point me to a URL or book that I should be reading to > improve, >> this, or

Re: bad "too many connections" error (os x)

2004-09-01 Thread William R. Mussatto
> I'll look into this, though. > > Thanks, > Michael Actually php may be using connection pooling which will NOT close off the connections. It can be configured either way in the apache php configuration file. I use squirrelmail, which is a php based webmail system with MySQL holdin

Re: ANNC: MySQL Administrator 1.0.11

2004-08-26 Thread William R. Mussatto
Alfredo Kengi Kojima said: > > MySQL Administrator 1.0.11 has been released. > > MySQL Administrator is a GUI management console for MySQL, with support > for tasks such as managing users, configuring MySQL, performing backups, > editing table definitions etc. > > More information at: > h

Re: InnoDB TableSpace Question

2004-08-03 Thread William R. Mussatto
k. From >>>> >> >> what >> >>>>I've been reading, a restart will cause this to happen, but I'm in a >>>> production environment, and I'm afraid that InnoDB will take its >>>> sweet >>> >>>time &g

Re: Problem with Mysql 4.0.18 + Debian

2004-08-03 Thread William R. Mussatto
onsive. Do each of your perl scripts include an explicit ' $dbh->disconnect;'? That may be needed to return things to the pool. You might also make sure that the $dbh is 'my'ed and that its scope is less than the entire program. For example putting it inside of set of { }

RE: Problem with Mysql 4.0.18 + Debian

2004-08-02 Thread William R. Mussatto
ble. > > I've read on this list that people running MySQL w/ FreeBSD can have > similar sounding problems. I am wondering if there is a connection. > > I know that the site is getting virtually no traffic, so the problem is > not that it is being overloaded. I have tried this scen

Re: Problem with Mysql 4.0.18 + Apache

2004-07-21 Thread William R. Mussatto
thing always happens. Is this a known issue > with Apache + mysql 4.0.18? > > Ryan > Are you using mod_perl by any chance? You might check to make sure that you are calling 'disconnect' at the end of each call. With mod_perl connections may stay open. I see a similar proble

RE: Where are BLOBs / TEXTs stored?

2004-06-17 Thread William R. Mussatto
s not involving the BLOB field, > and > after the indexes have been exausted, only the relatively small non-BLOB > > needs to be read and checked. The downside is that if the search > involves > the BLOB field, or if the BLOB field needsw to be fetched, then a second > > disk access is required, reducing performance. > > That is how I understand it: if anybody knows better, feel free to > correct > me - one learns by ones mistakes. > > Alec > There are certain performance advantages if the rows in a table are fixed length. If blobs/text fields are moved to a separate table then the varchar fields can be stored as char. Also, you will no have to clean up the database after large numbers of deletes/updates/inserts because the space in the file will not become fragmented. -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: DBI and last_insert_id()

2004-06-15 Thread William R. Mussatto
>> > $dialog->destroy; >> > >> > warn "Error updating recordset:[EMAIL PROTECTED]" . $@ >> . >> > "\n\n"; >> > >> > return 0; >> > >> > } >> > >> > >>

Re: load data into 2 tables and set id

2004-06-09 Thread William R. Mussatto
J S said: > > >> > Hi, >> > >> > I need some help please! I have 60GB of proxy logs to parse and load >> into a mysql database. I've written a parsing script but I'm stuck >> now on how to load the data in. >> > >> > I have a database called PROXY_LOG with 2 tables: >> > >> > USER_TABLE >> > user

Re: load data into 2 tables and set id

2004-06-09 Thread William R. Mussatto
elegent but it will get the job done. Note look into documentation on how to get the new url_id after you do an insert. Its in the DBD::mysql for perl. -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Unable to Programatically Create DB Connection

2004-05-25 Thread William R. Mussatto
ent connection setup. Class.forName("org.gjt.mm.mysql.Driver").newInstance(); // we register the driver, use the new driver string here this.conn = DriverManager.getConnection(this.DBUrl,this.dbuser,this.dbpasswd); where DBUrl is a string like "jdbc:mysql://localhost:3306/"+

Re: MySQL and NPTL

2004-05-18 Thread William R. Mussatto
rnel from 7.0 and newer + MySQL + high load = highly probable > instability > > > > -- > Sasha Pachev > Create online surveys at http://www.surveyz.com/ Any particular reason to use 2.4.x vs 2.6.x from kernel for base? -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-

Re: Backups with version 4.1

2004-05-17 Thread William R. Mussatto
/'` do mysqldump -u root --password={your mysql root password here} --add-drop-table -l $d > ../mysqlback/$d.dmp done Obviously for a linux setup. -- William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL Website

2004-04-26 Thread William R. Mussatto
Robert A. Rosenberg said: > This is a re-submission of a 4/21 reply that was bounded by the list. > > At 09:14 -0400 on 04/21/2004, Lou Olsten wrote about Re: MySQL Website: > >>I have not been able to access the mysql.com server for about a day and >> a half now from my office. From home, it's fi

Re: files stored in fields

2004-04-21 Thread William R. Mussatto
o the file system and then storing the address on the file system in the database. Last time I checked fixed length database records process much faster. What computer language are you using to do the work. That would help in answering the rest of the question. -- William R. Mussatto, Senior Syste

Re: DateDiff function in SqlServer ... How do it in MySql ?

2004-03-09 Thread William R. Mussatto
are used in the >calculation. > > For more date functions, see the manual: > ><http://www.mysql.com/doc/en/Date_and_time_functions.html> > > Michael > For finergrain accuracy: (UNIX_TIMESTAMP(TIStop)-UNIX_TIMESTAMP(TIStart))/60 This gets difference in minutes.

RE: InnoDB, mysqldump/mysql timeout dropping table (disaster recovery)

2004-02-27 Thread William R. Mussatto
How about if you dumped to a compressor and stored the result? Steve Williams said: > Hi, > > The problem with doing a myqldump to a file (via cron) is that at some > point it will hit the filesize limitiations. By streaming it over the > network, that problem is avoided on both ends of the pipe.

Re: order by: more that one field

2004-02-13 Thread William R. Mussatto
* from t2 Order by id > > _ > Choose now from 4 levels of MSN Hotmail Extra Storage - no more account > overload! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ > yes. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061

Re: mysqld hangs with no CPU activity...

2004-01-30 Thread William R. Mussatto
choice. If you can, I'd try running the queries on a different > machine. > > Good luck, > Ware If moving to new hardware solved the problem, it was the hardware. Had similar problem with Linux kernel compilation a few years ago. Drove us crazy for a while since on that

Re: ISP and users

2004-01-19 Thread William R. Mussatto
y run it that way. We have one customer who can use a web page to create databases so they meet certain criteria, but giving direct create and destroy rights to our customers is a bit of a security hole IMHO. And yes the web page is on a secured server. William R. Mussatto, Senior Systems Eng

RE: What Does This Mean

2004-01-12 Thread William R. Mussatto
to clear the buffer. > > > > mysql> > > > > Chris L. White > Network Administrator > Coe-Truman Technologies, Inc. > Email: [EMAIL PROTECTED] William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: What does this Mean

2004-01-12 Thread William R. Mussatto
Chris L. White said: > C:\MySQL\bin>mysql show > > ERROR 1045 (28000): Access denied for user: 'ODBC'@'localhost' (Using > password: > > YES) > > > > C:\MySQL\bin>mysql show -u root > > ERROR 1045 (28000): Access denied for user: 'root'@'localhost' (Using > password: > > YES) Your musql setup requi

Re: select lock - How reliable?

2004-01-09 Thread William R. Mussatto
p://webtuitive.com > >dream. code. On a related note. You should always "close" the connection before ending the jsp, not depend on the garbage collector to do it for you. In the case of a connection pool setup this will return the connection to the po

Re: Sleeping Processes

2004-01-06 Thread William R. Mussatto
not be an exaggeration to describe the >>> history of the >>> computer industry for the past decade as a massive effort to >>> keep up with >>> Apple." >>> - Byte Magazine >>> >>> Given infinite time, 100 monkeys could type out th

Re: OT: MySQL & NAT

2003-11-18 Thread William R. Mussatto
mysql server, i.e., the 'host' address will be the public IP of the NAT firewall. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: max_user_connections problem after upgrading

2003-11-12 Thread William R. Mussatto
ctions being used, and the limit is 300, we still get the >>>>>> >>>>>>"already >>>>>>more than max_user_connections" error... >>>>>> >>>>>>>>-- Henrik >>>>>>>> >>>>>>>>gerald_clark skrev: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>Henrik Skotth wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>>Hello all, >>>>>>>>>> >>>>>>>>>>We recently upgraded to 4.0, it went >>>>>>>>>>very well and the performance gains have been great. >>>>>>>>>>But now the server has started to act strangely. Every few >>>>>>>>>> days, >>>> >>>>the >>>> >>>>>>>>>> >>>>>>>>server starts to refuse connections, saying >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>>that there is already more than max_user_connections, but there >>>> >>>>is >>>> >>>>>>>>>> >>>>>>>>really only one or two active connections and our >>>> >>>>max_user_connections >>>> >>>>>>is 300. I have to take down and restart the server to solve the >>>> >>>>problem, >>>> >>>>>>and it keeps happening over and over again every few days... >>>>>> >>>>>>>> >>>>>>>>>>Am I the only one having this problem? Any suggestions? >>>>>>>>>> >>>>>>>>>>Regards, >>>>>>>>>>-- Henrik Skotth, Hogwarts.nu >>>>>>>>> >>>>>>>>>Are there 298 or 299 inactive connections? >>>>>>>>>If so, why are they not being closed? Is the user running "show processlist" allowed to see all processes (e.g. 'root')? William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: aes encryption bug

2003-11-07 Thread William R. Mussatto
>>>>>> >>>>>>INSERT INTO test SET >>>>>>`id` = AES_ENCRYPT('551850040', >>>>>> '0bf251c9aaf007deaf1143ca1492b561'); >>>>>> >>>>>>my field 'id' is VARCHAR(16) NOT

RE: Multiuser Programming

2003-10-29 Thread William R. Mussatto
I do that in Mysql? Or, maybe there is such system in Mysql. > Is there any Mysql reference talk about this matter? I thought this list wanted bottom posting? Sorry if I've got it backwards. How does connection pooling figure into this? I would assume a drop table command would be

Re: What are the effects of key_buffer on a dedicated slave [also]

2003-09-30 Thread William R. Mussatto
ges since. > > Please do, it sounds useful. I'd like to roll it into version 1.5 > before I release it. > > Jeremy > -- > Jeremy D. Zawodny | Perl, Web, MySQL, Linux Magazine, Yahoo! > <[EMAIL PROTECTED]> | http://jeremy.zawodny.com/ > > MySQL 4.0.15

Re: InnoDB / Linux

2003-09-29 Thread William R. Mussatto
Marvin Wright said: > Hi, > > I'm in the process of setting up a new database server that will run on > redhat linux. > The machine will be dual processor with 4GB ram and about 16GB disk. > > The machine is going to be used purely with InnoDB tables and will have > a few very large tables acting a

Re: last_insert_id()

2003-09-24 Thread William R. Mussatto
inserts you must get the last_inserted_id BETWEEN the inserts. If the second table also has a auto-increment column you will have to get its value after that insert. Hope this helps. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailin

Re: How much user LOAD can Mysql bear???

2003-09-03 Thread William R. Mussatto
same time. You set the number on connections. Each connection takes up a bit of memory, even if idle (php and mod_perl hold open connections. .jsp may or may not. Your response time (how long is acceptable) will depend on you actual database and questions you ask it as well as the hardware. It might

Re: Too many hours - brain not working.....

2003-08-28 Thread William R. Mussatto
t to keep up > with Apple." > - Byte Magazine > > Given infinite time, 100 monkeys could type out the complete works of > Shakespeare. Win 98 source code? Eight monkeys, five minutes. > -- NullGrey Welcome to 'Group By' Table: Date (y-m-d),amount (decimal),dealercode se

Re: Atomicity of a SELECT/UPDATE

2003-07-28 Thread William R. Mussatto
y. You almost have it. Look up 'Lock Tables' in the manual. Unlike most database engines, mysql allows various types of tables. The defaults is myisam which does not support transactions; however, InnoDB does. Please see docs for details. William R. Mussatto, Senior Systems Engin

Re: [Q] about AUTO_INCREMENT...

2003-07-25 Thread William R. Mussatto
I use is right after deleting the contents of the table and any related tables. (Its for a conversion program and I delete everything if the conversion fails). William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list

Re: Java API to mySQL

2003-07-17 Thread William R. Mussatto
> Hello > > I want to know if there is java API to mySQL like its available for C > and C++. > > Bye > Kalika > > SMS using the Yahoo! Messenger;Download latest version. Look for Connector/J on the MySql site. William R. Mussatto, Senior Systems Engineer Ph. 909-92

RE: Can someone help me??

2003-07-16 Thread William R. Mussatto
omeone tell me where i do mistake? >> > > >> > >Thanks a lot.. >> > > >> > >Sbandy >> > > >> > > >> > > >> > >[EMAIL PROTECTED] >> > >http://www.motormaniaci.com >> > >il portale pe

Re: How can I display images from a mySQL Database in a web page?

2003-07-15 Thread William R. Mussatto
gt;> Thanks in advance, >> >> Dan blob datatype. But again why do this. use a file system and put the file's address in the database. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SELECT TOP

2003-07-14 Thread William R. Mussatto
; history h > INNER JOIN servers s ON h.serverid = s.serverid > WHERE h.employeeid = 9 > ORDER BY h.historyid DESC > > Works fine once I remove the "TOP 20" from the query. If this isn't > supported, is there an equivalent? > > Thanks, > Jim > > remo

Re: !!! NEWBIW !!! how to start? !!! NEWBIE !!!

2003-07-14 Thread William R. Mussatto
ometimes the grep line) if the server is running. Normally you will start a safe_mysqld rather than mysqld Alternatively you would start it with mysqladmin William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql - Dual Xeon or Dual Opteron

2003-07-10 Thread William R. Mussatto
way... > Get yourself a quad Xeon-board, and start with two CPUs, adding more as > you go along... > > -- > Andreas D. Landmark / noXtension > > You mean they have solved the problem of having to used matched CPU's. Used to be that you had to throw out the old CPU's

Re: date and time

2003-07-08 Thread William R. Mussatto
e ref. manual. If you need both date and time use the datetime field type since you will simplify sorting and conditionals. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Newbie SELECT problem

2003-07-02 Thread William R. Mussatto
e >>> session numbers (one is enough). >>> >>>Make any more sense? >>> >>> >>> >>>Tim Winters >>>Creative Development Manager >>>Sampling Technologies Incorporated > --snip-- > While I was trying to figure an eleg

Re: Newbie SELECT problem

2003-07-02 Thread William R. Mussatto
>> >>Make any more sense? >> >> >> >>Tim Winters >>Creative Development Manager >>Sampling Technologies Incorporated --snip-- While I was trying to figure an elegant solution to this I noticed that you have a separate date and time field. Is there a

Re: Newbie SELECT problem

2003-07-02 Thread William R. Mussatto
999' give me the information where there is only one record with a given SessionID? b. For user '999' for each sessionID give me the unique Date and Time values. c. something else entirely. Also, are you running this in a procedureal language (e.g., perl, java)? This will give us o

Upgrade from mm to Connector/J under tomcat

2003-06-18 Thread William R. Mussatto
same time? Anyone done this? William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Java/JDBC - Connection refused on Linux

2003-06-17 Thread William R. Mussatto
calhost:3306/"+dbname; try { Class.forName("org.gjt.mm.mysql.Driver").newInstance(); this.conn = DriverManager.getConnection(this.DBUrl,this.dbuser,this.dbpasswd); } catch (Exception e) { e.printStackTrace(); } Hope this helps..

RE: RAID hardware suggestions/experience

2003-06-17 Thread William R. Mussatto
stion remains for SATA: basic drive reliability. Related to that is length of time drive will remain available. A dirty secret of RAID is that when a drive goes it must be replaced you must replace it with the same drive (please..please tell me I'm wrong). So, unless you have a spare in the back you will end up replacing 3 drives (assuming Raid 5). That may be why the WD model has such low capacity compared with the normal IDE drives. Just my 2 cents worth. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Which version do I install?

2003-06-12 Thread William R. Mussatto
family with linux would > be nice too. > > > -- This is a x86 (32 bit) chip. It may or may not have 'hyperthreading' where it can act as two processors. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List Fo

Re: MySQL Connector/J

2003-06-10 Thread William R. Mussatto
5) > .. > > > Thanks for your help. > eff. Usman Somehow you are still using the older org.gjt.mm.mysql drivers not connector/J. When I asked many moons ago I was told that they could not both be used at the same time by Tomcat even in separate contexts, but YMMV. William

Re: Why does auto increment not take into account deleted rows?

2003-06-03 Thread William R. Mussatto
tly used to link tables in a relationship. If you "reused" '3' the associated records would think the originial record was still there not that a new one had been substituted. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Join problem

2003-05-31 Thread William R. Mussatto
ser_id is NULL and users.user_id = WHATEVER The key is "dacs_access.user_id is NULL" While I haven't tried it with your data, I've used this in the past. For speed recommend user_id's in all tables be indexed. Obviously replace 'WHATEVER' with the userID va

Re: Join problem

2003-05-31 Thread William R. Mussatto
___ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > I sit corrected, 4.1x but its alpha from the manual: Subqueries are supported in MySQL version 4.1. I run a production IPP so we run debian with is very far

Re: Join problem

2003-05-31 Thread William R. Mussatto
users > ON dacs_access.user_id=users.user_id > WHERE users.username='sator') > > Susan Ator > Online Services Engineer > National Public Radio > Distribution Division > [EMAIL PROTECTED] Short answer is mysql does not do sub-selects (i.e., a select inside of a select).

Migrating to Connector/J

2003-05-30 Thread William R. Mussatto
We run Tomcat4. Currently we are using the older mm- drivers. Is there anyway to move to connector /J one context at a time rather than all at once? William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http

RE: Storing Images in MySQL

2003-03-28 Thread William R. Mussatto
r. In cases like that I use a tree of subdirectories tied to something like ISBM number. William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Slow Inserts

2003-03-27 Thread William R. Mussatto
wrong and how to fix it, I'm happy, but I'd rather not have to dump and > reimport. > > I'm running MySQL 4.0.11 on RHL 7.2. I'm using the "huge" my.cnf file > with some minor tweaks. The tables I'm speaking of have no indexes in > it. They had

Re: Foreign keys and being FIRST index

2003-03-06 Thread William R. Mussatto
, and more > importantly, I don't see why they have to be FIRST! Ugh. > Major performance hit would be a guess. Otherwise the database would have to do a table scan. Think about how it would find the related record. I think is a requirement of db2 as well > > William R. Mussatto,

Re: Temporary Tables

2003-03-04 Thread William R. Mussatto
Y table. The >>> non-TEMPORARY table is hidden to the client that creates the TEMPORARY >>> table as long as the TEMPORARY table exists. >>>A second TEMPORARY table with the same name cannot be created. >>> >>>This is on a connection-specific basis. Two cli

Re: count rows

2003-02-28 Thread William R. Mussatto
ations like UPDATE and DELETE), or after fetching all the rows of a SELECT statement. > Bye! William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 - Before posting, please check: http:/

  1   2   3   >