Re: why does it not work
3.22.32 has known Join issues, the machine running that version should be upgraded to the 3.23.32 STABLE release. Adrian D'Costa wrote: Hi, I have been trying this on my localhost and this works select special.contid, special.cityid, special.curr1, special.catalogo, special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1 My version +--+ | version()| +--+ | 3.23.22-beta-log | +--+ but the same sql statement on my online server does not work. select special.contid, special.cityid, special.curr1, special.catalogo, - special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 - DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1; ERROR 1064: You have an error in your SQL syntax near 'RAND() limit 1' at line 3 select version(); +---+ | version() | +---+ | 3.22.32 | +---+ What could be the problem Adrian - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: why does it not work
Err also, RAND() is a 3.23 feature ;-) Adrian D'Costa wrote: Hi, I have been trying this on my localhost and this works select special.contid, special.cityid, special.curr1, special.catalogo, special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1 My version +--+ | version()| +--+ | 3.23.22-beta-log | +--+ but the same sql statement on my online server does not work. select special.contid, special.cityid, special.curr1, special.catalogo, - special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 - DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1; ERROR 1064: You have an error in your SQL syntax near 'RAND() limit 1' at line 3 select version(); +---+ | version() | +---+ | 3.22.32 | +---+ What could be the problem Adrian - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: why does it not work
On Mon, May 21, 2001 at 11:32:46AM +0530, Adrian D'Costa wrote: Hi, I have been trying this on my localhost and this works select special.contid, special.cityid, special.curr1, special.catalogo, special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1 My version +--+ | version()| +--+ | 3.23.22-beta-log | +--+ but the same sql statement on my online server does not work. select special.contid, special.cityid, special.curr1, special.catalogo, - special.hf, special.curr2, special.vitofferta, special.fh, special.club, special.stars, city.city from special,city where DATE_SUB(special.periodo, INTERVAL 3 - DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1; ERROR 1064: You have an error in your SQL syntax near 'RAND() limit 1' at line 3 select version(); +---+ | version() | +---+ | 3.22.32 | +---+ What could be the problem A very-very-very quick search for 'ORDER BY RAND' in the MySQL manual turned up the following at the middle of the documentation of the RAND() function: You can't use a column with `RAND()' values in an `ORDER BY' clause, because `ORDER BY' would evaluate the column multiple times. In *MySQL* Version 3.23, you can, however, do: `SELECT * FROM table_name ORDER BY RAND()' It does say 'in MySQL version 3.23', doesn't it now? :) 3.22 does not support this syntax. G'luck, Peter -- Nostalgia ain't what it used to be. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: why does it not work
Hi, - DAY) '$tdate' and city.id=special.cityid order by RAND() limit 1; ERROR 1064: You have an error in your SQL syntax near 'RAND() limit 1' at line 3 select version(); +---+ | version() | +---+ | 3.22.32 | +---+ What could be the problem order by rand() didn't work back in 3.22. if i remember correctly (if this doesn't work, you can try to search the list archives), the workaround was: SELECT col1,col2,RAND() as r FROM table ORDER BY r LIMIT 1; Rgds, Tfr --== [EMAIL PROTECTED] == MySQL development team == Tallinn / Estonia ==-- - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
MYSQL and the Macintosh
Hi all, I would like to try and create a database that can be used for report/letter generation on both IBM and Macs, and eventually emails. I have success on the IBM simply using ODBC and Office, and was wondering how one would go about the same process on the Mac. The advantage of using Office was simply that templates already existed. I have had a look through the archives but only found references to FileMaker. Is this the only way to go on the Mac? Any suggestions? Ray. - Ray Smith Centre for Musculoskeletal Studies Department of Surgery University of Western Australia Royal Perth Hospital Medical Research Foundation Bldg Rear 50 Murray St, Perth, Western Australia, 6000 Ph: +61 8 9224 0307 Fax:+61 8 9224 0204 Email: [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Installing mysql on another directory than c: with windows
I can't manage to have an acces to my database with mysql installed on E: on a windows Nt server. What can I do ? Thanks
HEAP tables
Does anyone have comments about using HEAP tables to cache a real table from a database ? My HEAP tables has max 10 rows. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
import
Hi, I need to import data from tables writen in MS Word 97 into MySQL under Linux:(( THe problem is that I don'w have windows box with MS Office, and even if I have, I don't know to use Office. And the other problem is that I data r writen using Serbian latinic letters which I have to save when I import data into Mysql. Any help?? Ilic Aleksandar - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Win32 installation problem...
Hello, I am trying to install mysql on my Windows 98 box as a standalone. I would like to work on my computer only, testing, etc before sending stuff to my server; therefore I would like to have a version of mysql that runs independently on my win98 box, probably along with Apache once I get the mysql daemon to run. Here's what happened: I installed mysql, then went to the command line From C:\mysql\bin\ I entered mysqld I got this error: 010521 error Warning: listen( ) on TCP/IP failed with error 0 can't initialize Innodb as 'Innodb_datafile_path' is not set' I also tried mysqld --standalone from the same prompt and got the same error. I got the same version to run on my WINME laptop no problem, but not on my win98 box. Any ideas? Your help would be much appreciated. thanks in advance, jason
RE: mysql start failed.
thank you for your answer, but I ran mysql the way you explained (safe_mysqld --basedir=/usr -u user -p password), but it doesn't change anything. Here is the log : snip basedir: /usr/ datadir: /var/lib/mysql/ tmpdir: /tmp/ language:/usr/share/mysql/english/ pid file:/var/run/mysqld/mysqld.pid TCP port:3306 Unix socket: /var/lib/mysql/mysql.sock system locking is not in use Possible variables for option --set-variable (-O) are: back_log current value: 50 binlog_cache_size current value: 32768 connect_timeout current value: 5 delayed_insert_timeout current value: 300 delayed_insert_limit current value: 100 delayed_queue_sizecurrent value: 1000 flush_timecurrent value: 0 interactive_timeout current value: 28800 join_buffer_size current value: 131072 key_buffer_size current value: 8388600 long_query_time current value: 10 lower_case_table_names current value: 0 max_allowed_packetcurrent value: 1048576 max_binlog_cache_size current value: 4294967295 max_connections current value: 100 max_connect_errorscurrent value: 10 max_delayed_threads current value: 20 max_heap_table_size current value: 16777216 max_join_size current value: 4294967295 max_sort_length current value: 1024 max_tmp_tablescurrent value: 32 max_write_lock_count current value: 4294967295 myisam_sort_buffer_size current value: 8388608 net_buffer_length current value: 16384 net_retry_count current value: 10 net_read_timeout current value: 30 net_write_timeout current value: 60 open_files_limit current value: 0 query_buffer_size current value: 0 record_buffer current value: 131072 slow_launch_time current value: 2 sort_buffer current value: 2097144 table_cache current value: 64 thread_concurrencycurrent value: 10 thread_cache_size current value: 0 tmp_table_sizecurrent value: 1048576 thread_stack current value: 65536 wait_timeout current value: 28800 010521 11:34:12 mysqld ended /snip any other idea ? I even ran it with all options listed here in the log. I mean basedir, tmpdir, ... thanks, Bastien. -Original Message- From: Chris Freeman [SMTP:[EMAIL PROTECTED]] Sent: Saturday, May 19, 2001 3:07 PM To: DEVOS BASTIEN Subject: Re: mysql start failed. the answer is to set the basedir when you start the daemon. I can't remember the exact syntax, and I'm not near my linux box at the moment. something like. safe_mysqld -basedir=/usr -u root -p password that's probably not exact but along those lines. i had a bitch of a time getting it working too with the same error. found the answer in the installation guide at www.mysql.com your base directory may be different. Mine was on RH 7.0, following the installation instructions from mysql.com to the letter, using the RPM from the red hat CD. once i ran it with the basedir argument i stopped getting the error that you are. - Original Message - From: DEVOS BASTIEN [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Sent: Friday, 18 May 2001 10:40 PM Subject: RE: mysql start failed. Nothing is running. I tried removing the socket mysql.sock and trying reconnect, but it creates a new socket mysql.sock and mysql is not running. I know this kind of problem is known, but I never found a solution. -Original Message- From: Rolf Hopkins [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 1:29 PM To: DEVOS BASTIEN; [EMAIL PROTECTED] Subject: Re: mysql start failed. has it already started? ps -ef | grep mysql - Original Message - From: DEVOS BASTIEN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 19:11 Subject: mysql start failed. Here's a problem I have when trying starting mysql. Config : RH7.0, MySQL 3.23.32, kernel2.4.3. I read that there's a problem with RH7.0 and that a ´chown -R mysql /var/lib/mysql´ should resolve that, but it doesn't change anything. always this message : snip 010518 13:00:22 mysqld started 010518 13:00:22 /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13) 010518 13:00:22 mysqld ended /snip even when I boot, it says : blahblah [OK] blahblah [OK] Starting MySQL [OK] mysqld ended blahblah [OK] blahblah [OK] blahblah [OK] Any idea ? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
which db server
We are currently running a website witch both takes care of the database and the application. We will buy a HP server, which will only be used as a db server. It will probably be a dual PIII 800mhz with 512mb ram and 3 physical disks. We have the option of changing this a bit. What would give us the best performance ? More ram : how much ? more CPU's ? Any comments ? Please help us choose the right server. Best regards Jacob - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Help in mySql with Java Applet
Fayed Design wrote: - Original Message - From: Fayed Design To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 1:14 PM Hello to all of you, does anybody know how to connect an Java Applet with mySql.I am trying already since weeks,no success. It always response no suitable Driver although I uploaded the driver on the server. ... ON THE SERVER. And where are Java Applets usually execuded? ON THE CLIENT. You probably will have to add the JDBC MySQL Driver to Applet, by creating a JAR File. Also: Make shure that MySQL Server allows connections from other hosts. Robert - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: CPU usage running mysql
Randy, I did not receive any replies so any suggestions would be useful!. We are using mysql with PHP and the problem may stem from PHP hogging the database, but I cannot be sure. Thanks, David Randy Johnson wrote: Dave Did you get any replies?? I am having the same problem as you and it is driving me crazy... thanks randy -Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 8:59 AM To: [EMAIL PROTECTED] Subject: CPU usage running mysql Hi, We run mysql V3.22.32 (solaris 2.5.1 version ) on a Solaris 2.6 box. The top command shows the mysqld running at 98.3% of cpu time when the system is idling. On a Solaris 7 box runnning Solaris 7 running mysql-3.22.32 (solaris 7 version) but also idle, the top command shows 0.5% for the mysqld. Any ideas which is correct, how I can rectify the situation and could this explain why the 2.6 box has started to run slow? Stopping and restarting the mysqld has no effect on the cpu time used Thanks, David - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Mysql crash
hi there, from one day to another, my mysql in 2 machines with 2 different mysql version crashed after a quite long query, i've run mysql server with the log option, here are the details: in hostname.err: mysqld got signal 11; The manual section 'Debugging a MySQL server' tells you how to use a stack trace and/or the core file to produce a readable backtrace that may help in finding out why mysqld died. Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Stack range sanity check OK, backtrace follows: 0x4008847b 0x80f83c0 0x80f9e6e 0x80f9a5a 0x80f8b9e 0x80f8842 0x80de518 0x80d9d5a 0x80c0cd3 0x80c3d8b 0x80c008f 0x80bf599 Stack trace successful, trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd-query at 0x82a0ca8 = SELECT Site.nome , Section.descricao , Location.descricao , BuyingType.descricao , Dimension.descricao , (0+impressoescompradas+impressoesoferta) as totalimpressoes , sum(siteviews) , sum(systemclicks) , ifnull(max(Accounting_site.data), 'N/A') , '0' AS ocupation , '2001-01-01' AS month , Site.site_id , Location.location_id , Section.section_id , CampaignSite.dimension_id FROM Dimension,Site,Location,Section,BuyingType,CampaignSite LEFT JOIN Accounting_site USING (campaign_id, site_id, section_id, location_id, dimension_id) LEFT JOIN Accounting_sys USING (campaign_id, site_id, section_id, location_id, dimension_id) WHERE Accounting_site.campaign_id = '1' and CampaignSite.site_id = Site.site_id and CampaignSite.location_id = Location.location_id and CampaignSite.section_id = Section.section_id and CampaignSite.buyingtype_id = BuyingType.buyingtype_id and CampaignSite.dimension_id = Dimension.dimension_id and CampaignSite.campaign_id = 1 GROUP BY Site.site_id, Section.section_id, Location. thd-thread_id = 1 Successfully dumped variables, if you ran with --log, take a look at the details of what thread 1 did to cause the crash. In some cases of really bad corruption, this value may be invalid Please use the information above to create a repeatable test case for the crash, and send it to [EMAIL PROTECTED] Number of processes running now: 0 010521 12:55:01 mysqld restarted the mysql details on this machine is: mysqlclient: mysql \s -- mysql Ver 11.13 Distrib 3.23.36, for pc-linux-gnu (i686) Connection id: 1 Current pager: stdout Using outfile: '' Server version: 3.23.36-log Protocol version: 10 Connection: Localhost via UNIX socket Client characterset:latin1 Server characterset:latin1 UNIX socket:/var/lib/mysql/mysql.sock -- mysqlserver: [brandon@lamatra brandon]$ mysqladmin version mysqladmin Ver 8.18 Distrib 3.23.36, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB MySQL Finland AB TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 3.23.36-log Protocol version10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 7 min 56 sec On the second machine and different version the stacktrace is empty here it goes: hostname.err: 010521 12:06:39 mysqld ended 010521 12:07:04 mysqld started /usr/sbin/mysqld: ready for connections mysqld got signal 11; The manual section 'Debugging a MySQL server' tells you how to use a stack trace and/or the core file to produce a readable backtrace that may help in finding out why mysqld died Attemping backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong Bogus stack limit or frame pointer, aborting backtrace mysqlclient: mysql \s -- mysql Ver 11.12 Distrib 3.23.33, for pc-linux-gnu (i686) Connection id: 3 Current pager: stdout Using outfile: '' Server version: 3.23.33-log Protocol version: 10 Connection: Localhost via UNIX socket Client characterset:latin1 Server characterset:latin1 UNIX socket:/var/lib/mysql/mysql.sock mysqlserver: mysqladmin Ver 8.15 Distrib 3.23.33, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB MySQL Finland AB TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 3.23.33-log Protocol version10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 4 min 11 sec it's quite strange, i'm almost think it's an hardware bug, but i have 2 other machine that work correctly with the same query's, and some have the same version's like these one's. thx.
Re: CPU usage running mysql
I wish it was! See my note below, the 7 box runs at about 0.5% but the 2.6 box runs at 99%! David Simon Green wrote: Is that not 98% idle and mysqld using 5% of the total CPU use! i.e. you are looking at vary different things? Simon -Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 12:42 To: Randy Johnson; [EMAIL PROTECTED] Subject: Re: CPU usage running mysql Randy, I did not receive any replies so any suggestions would be useful!. We are using mysql with PHP and the problem may stem from PHP hogging the database, but I cannot be sure. Thanks, David Randy Johnson wrote: Dave Did you get any replies?? I am having the same problem as you and it is driving me crazy... thanks randy -Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 8:59 AM To: [EMAIL PROTECTED] Subject: CPU usage running mysql Hi, We run mysql V3.22.32 (solaris 2.5.1 version ) on a Solaris 2.6 box. The top command shows the mysqld running at 98.3% of cpu time when the system is idling. On a Solaris 7 box runnning Solaris 7 running mysql-3.22.32 (solaris 7 version) but also idle, the top command shows 0.5% for the mysqld. Any ideas which is correct, how I can rectify the situation and could this explain why the 2.6 box has started to run slow? Stopping and restarting the mysqld has no effect on the cpu time used Thanks, David - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: CPU usage running mysql
Hello again! Do you know if there is any way I can see what the mysqld is doing? If it is taking up 99% of the processor time, it is very busy doing something! I installed the binary version and consequently only have the tools available which came with that distribution. Thanks, David Simon Green wrote: Is that not 98% idle and mysqld using 5% of the total CPU use! i.e. you are looking at vary different things? Simon -Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 12:42 To: Randy Johnson; [EMAIL PROTECTED] Subject: Re: CPU usage running mysql Randy, I did not receive any replies so any suggestions would be useful!. We are using mysql with PHP and the problem may stem from PHP hogging the database, but I cannot be sure. Thanks, David Randy Johnson wrote: Dave Did you get any replies?? I am having the same problem as you and it is driving me crazy... thanks randy -Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 8:59 AM To: [EMAIL PROTECTED] Subject: CPU usage running mysql Hi, We run mysql V3.22.32 (solaris 2.5.1 version ) on a Solaris 2.6 box. The top command shows the mysqld running at 98.3% of cpu time when the system is idling. On a Solaris 7 box runnning Solaris 7 running mysql-3.22.32 (solaris 7 version) but also idle, the top command shows 0.5% for the mysqld. Any ideas which is correct, how I can rectify the situation and could this explain why the 2.6 box has started to run slow? Stopping and restarting the mysqld has no effect on the cpu time used Thanks, David - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
new reserved word right ?
Hi everybody, I wonder if this has been reported before. After upgrading MySQL to the version coming with SuSE 7.1 (3.23.33), I found that all writing operations to the field right in my table Rights would fail. Strangely enough, trying to fix the problem by enclosing the field name in quotes didn't help at all. I finally worked around the problem by renaming the field right to rights. But I wonder now if this is considered a bug or not - after all, right is nowhere to be found in the list of reserved words; and I seem to remember that enclosing field names in quotes should make it possible to use even reserved words as field names. Any info would be appreciated. Thanks! -- Jean-Pierre Gygax www.legacy-ovwp.org - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
listen to specific address
Hi, I would like to know how to tell mysql to listen to specific foreign address. I know I can use --bind-address to tell mysql to listen to specific local address. But I need mysql to listen to specific foreign address. HOW TO DO IT. Thank you Mark - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: mysql start failed.
-Original Message- From: Chris Freeman [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 2:29 PM To: DEVOS BASTIEN Subject: Re: mysql start failed. oops that was not quite right, that was a mixture of starting the daemon and connecting to the server all with one command, and would never have worked. I am very new to mysql, so you will have to forgive me for that one. first step, if you haven't done it already, is to go cd /usr ./bin/mysql_install_db [DEVOS BASTIEN] I did that, it looks like installing original tables. I even deleted the /var/lib/mysql directory, so mysql_install_db reconstruct it properly then, go to /var/lib/mysql, and make sure a folder called mysql exists within that directory (ie, if you can go cd /var/lib/mysql/mysql then it has worked) [DEVOS BASTIEN] ... if okay so far, try safe_mysqld --basedir=/usr -u root mysql [DEVOS BASTIEN] it returns the same thing : Starting blahblah ... 010521 15:08:40 mysqld ended that should start the daemon, [DEVOS BASTIEN] not really ... then try to connect with mysql -u root -p if that fails, please let me know where and in what way. [DEVOS BASTIEN] here you are. IF that works, configure it using instructions on this top-notch site http://www.mysql.com/documentation/mysql/bychapter/ Cheers, [DEVOS BASTIEN] thanks Chris [DEVOS BASTIEN] Bastien. - Original Message - From: DEVOS BASTIEN [EMAIL PROTECTED] To: 'Chris Freeman' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 7:39 PM Subject: RE: mysql start failed. thank you for your answer, but I ran mysql the way you explained (safe_mysqld --basedir=/usr -u user -p password), but it doesn't change anything. Here is the log : snip basedir: /usr/ datadir: /var/lib/mysql/ tmpdir: /tmp/ language:/usr/share/mysql/english/ pid file:/var/run/mysqld/mysqld.pid TCP port:3306 Unix socket: /var/lib/mysql/mysql.sock system locking is not in use Possible variables for option --set-variable (-O) are: back_log current value: 50 binlog_cache_size current value: 32768 connect_timeout current value: 5 delayed_insert_timeout current value: 300 delayed_insert_limit current value: 100 delayed_queue_sizecurrent value: 1000 flush_timecurrent value: 0 interactive_timeout current value: 28800 join_buffer_size current value: 131072 key_buffer_size current value: 8388600 long_query_time current value: 10 lower_case_table_names current value: 0 max_allowed_packetcurrent value: 1048576 max_binlog_cache_size current value: 4294967295 max_connections current value: 100 max_connect_errorscurrent value: 10 max_delayed_threads current value: 20 max_heap_table_size current value: 16777216 max_join_size current value: 4294967295 max_sort_length current value: 1024 max_tmp_tablescurrent value: 32 max_write_lock_count current value: 4294967295 myisam_sort_buffer_size current value: 8388608 net_buffer_length current value: 16384 net_retry_count current value: 10 net_read_timeout current value: 30 net_write_timeout current value: 60 open_files_limit current value: 0 query_buffer_size current value: 0 record_buffer current value: 131072 slow_launch_time current value: 2 sort_buffer current value: 2097144 table_cache current value: 64 thread_concurrencycurrent value: 10 thread_cache_size current value: 0 tmp_table_sizecurrent value: 1048576 thread_stack current value: 65536 wait_timeout current value: 28800 010521 11:34:12 mysqld ended /snip any other idea ? I even ran it with all options listed here in the log. I mean basedir, tmpdir, ... thanks, Bastien. -Original Message- From: Chris Freeman [SMTP:[EMAIL PROTECTED]] Sent: Saturday, May 19, 2001 3:07 PM To: DEVOS BASTIEN Subject: Re: mysql start failed. the answer is to set the basedir when you start the daemon. I can't remember the exact syntax, and I'm not near my linux box at the moment. something like. safe_mysqld -basedir=/usr -u root -p password that's probably not exact but along those lines. i had a bitch of a time getting it working too with the same error. found the answer in the installation guide at www.mysql.com your base directory may be different. Mine was on RH 7.0, following the installation instructions from mysql.com to the letter, using the RPM from the red hat CD. once i ran it with the basedir argument i stopped getting the error that you are. - Original Message - From: DEVOS BASTIEN [EMAIL PROTECTED] Newsgroups: mailing.database.mysql Sent: Friday, 18 May 2001 10:40 PM Subject: RE: mysql start failed.
Re: listen to specific address
On Mon, May 21, 2001 at 09:09:29PM +0800, Mark Lo wrote: I would like to know how to tell mysql to listen to specific foreign address. I know I can use --bind-address to tell mysql to listen to specific local address. But I need mysql to listen to specific foreign address. HOW TO DO IT. Have you first convinced your OS that it's possible? Jeremy -- Jeremy D. Zawodny, [EMAIL PROTECTED] Technical Yahoo - Yahoo Finance Desk: (408) 349-7878Fax: (408) 349-5454Cell: (408) 439-9951 MySQL 3.23.29: up 1 days, processed 11,847,947 queries (83/sec. avg) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
How to retrieve record-id after 'insert into'?
Hi! I like to know how to retrieve the record id after an insert into query. I have the table user containing two columns: UID (auto_increment) and USERNAME. After I have added a new user (using insert into user (uid) etc.) I like to know the UID of the new record. I can set the record pointer to the last record, but if anybody else also inserts a record at the same time, I think this will give a problem. Can anybody give me a suggestion? thanks in advance, Viktor v/d Berg - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
(solution) RE: mysql start failed.
It runs now. I tried many things, so I'm not sure of what I did in order to make it run, but I think these things where important - always be sure that /var/lib/mysql is 'chowned -R mysql:mysql' - run mysql_install_db to install base tables properly - start manually mysql with : 'safe_mysqld --defaults-file=/path/to/your/config/file' this file contains the following (in my case, but I think it's the rpm-orig too) : snip [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock [mysql.server] user=mysql basedir=/var/lib [safe_mysqld] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid /snip I did a lot of things to make it run, so this list is maybe not exactly the good way, but it will surely help ;-) Remember: - Read manual or search manual.pdf with your error, type in your error in the search box on www.google.com, you'll find directly mailing-lists archives talking about your problem. thanks , Bastien just do it Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) /just do it -Original Message- From: Chris Freeman [SMTP:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 2:29 PM To: DEVOS BASTIEN Subject: Re: mysql start failed. oops that was not quite right, that was a mixture of starting the daemon and connecting to the server all with one command, and would never have worked. I am very new to mysql, so you will have to forgive me for that one. first step, if you haven't done it already, is to go cd /usr ./bin/mysql_install_db then, go to /var/lib/mysql, and make sure a folder called mysql exists within that directory (ie, if you can go cd /var/lib/mysql/mysql then it has worked) if okay so far, try safe_mysqld --basedir=/usr -u root mysql that should start the daemon, then try to connect with mysql -u root -p if that fails, please let me know where and in what way. IF that works, configure it using instructions on this top-notch site http://www.mysql.com/documentation/mysql/bychapter/ Cheers, Chris - Original Message - From: DEVOS BASTIEN [EMAIL PROTECTED] To: 'Chris Freeman' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 7:39 PM Subject: RE: mysql start failed. thank you for your answer, but I ran mysql the way you explained (safe_mysqld --basedir=/usr -u user -p password), but it doesn't change anything. Here is the log : snip basedir: /usr/ datadir: /var/lib/mysql/ tmpdir: /tmp/ language:/usr/share/mysql/english/ pid file:/var/run/mysqld/mysqld.pid TCP port:3306 Unix socket: /var/lib/mysql/mysql.sock system locking is not in use Possible variables for option --set-variable (-O) are: back_log current value: 50 binlog_cache_size current value: 32768 connect_timeout current value: 5 delayed_insert_timeout current value: 300 delayed_insert_limit current value: 100 delayed_queue_sizecurrent value: 1000 flush_timecurrent value: 0 interactive_timeout current value: 28800 join_buffer_size current value: 131072 key_buffer_size current value: 8388600 long_query_time current value: 10 lower_case_table_names current value: 0 max_allowed_packetcurrent value: 1048576 max_binlog_cache_size current value: 4294967295 max_connections current value: 100 max_connect_errorscurrent value: 10 max_delayed_threads current value: 20 max_heap_table_size current value: 16777216 max_join_size current value: 4294967295 max_sort_length current value: 1024 max_tmp_tablescurrent value: 32 max_write_lock_count current value: 4294967295 myisam_sort_buffer_size current value: 8388608 net_buffer_length current value: 16384 net_retry_count current value: 10 net_read_timeout current value: 30 net_write_timeout current value: 60 open_files_limit current value: 0 query_buffer_size current value: 0 record_buffer current value: 131072 slow_launch_time current value: 2 sort_buffer current value: 2097144 table_cache current value: 64 thread_concurrencycurrent value: 10 thread_cache_size current value: 0 tmp_table_sizecurrent value: 1048576 thread_stack current value: 65536 wait_timeout current value: 28800 010521 11:34:12 mysqld ended /snip any other idea ? I even ran it with all options listed here in the log. I mean basedir, tmpdir, ... thanks, Bastien. -Original Message- From: Chris Freeman [SMTP:[EMAIL PROTECTED]] Sent: Saturday, May 19, 2001 3:07 PM To: DEVOS BASTIEN Subject: Re: mysql start failed. the answer is to set the basedir when you start the daemon. I can't remember the exact syntax, and I'm not near my linux box at
Problem with OBDC
is there anyone who can help me with my problem i posted a earlier? i know i shouldn't post this kind of requests, but i REALLY need help. i am on a deadline and having major problems exporting tables from access 2000 to mysql. please help _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
C-API and LOAD DATA
Hi, everybody: I have received no answer to my question and I suppose it is because no one has faced this problem before. Could anyone of you check this benchmark and tell me wether it also occurs in your environment or not? That could help me when looking for the possible causes. Thank you all for the bother. -- De: Manuel Barrientos Enviado el: jueves 17 de mayo de 2001 11:00 Para: '[EMAIL PROTECTED]' Asunto: C-API and LOAD DATA Hi: I'm having a memory leakage executing the next statement that iterates about 10 times within a loop in mysql 3.22.27: for (Count = 0 ; Count 10 ; Count++) { mysql_query(mysql ,LOAD DATA LOCAL INFILE '/tmp/FicN1N6.tmp' INTO TABLE Tab_n1n6 FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n' (n1,n2,n3,n4,n5,n6)); } I've tested it just with: File /tmp/FicN1N6.tmp': 1;2;3;4;5;6 Table Tab_n1n6(no indexes): Field Type N1tinyint(3) unsigned N2tinyint(3) unsigned N3tinyint(3) unsigned N4tinyint(3) unsigned N5tinyint(3) unsigned N6tinyint(3) unsigned When running this benchmark the memory used by the program increases about 4K every 20 iterations(I check it through top) I've realized that this statement returns some information with mysql_info(Number of files, Number of warnings,..) When executing the same loop with INSERT INTO Tab_n1n6 (n1,n2,n3,n4,n5,n6) VALUES (1,2,3,4,5,6) it does not occur(the memory leakage) and no information is retrieved through mysql_info. I've been trying with INSERT INTO .. SELECT ... and CREATE TABLE ... and DROP TABLE No leakage; and no information is retrieved through mysql_info. I think that, possibly, the problem is that that information is allocated and not freed. If that is the question: How can I free that memory? If it isn't, what am I doing wrong? where's my mistake? Does someone face this problem before? Regards. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Out of memroy
Bonjour, Solaris 2.8 on SPARC 4x64bit processor . Mysql-3.23.37 with InnoDB What I was doing : I was altering a lot of table, converting them from InnoDB to MyISAM type (I don't know if this is the cause of my problem ...) Now, on the console here is what happens : [4:52pm]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3770 to server version: 3.23.37 Type 'help;' or '\h' for help. Type '\c' to clear the buffer mysql use cotations Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_TOR_prev' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_VAN' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_VAN_prev' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_ZRH' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_ZRH_prev' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'intraday_ZRH_prev_tmp' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'libelle_recherche' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'livequote_ALB' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'livequote_ALB_5_tmp' mysql: Out of memory (Needed 8164 bytes) Didn't find any fields in table 'livequote_ALB_5_tmp2' mysql: Out of memory (Needed 8164 bytes) ... and so on for all the tables in the database. No special message in the error log. Here is the top of top :) === load averages: 1.55, 1.51, 1.74 134 processes: 133 sleeping, 1 on cpu CPU states: 84.7% idle, 10.7% user, 2.8% kernel, 1.9% iowait, 0.0% swap Memory: 1024M real, 17M free, 1762M swap in use, 1168K swap free PID USERNAME THR PRI NICE SIZE RES STATETIMECPU COMMAND 12031 root 49 580 400M 341M sleep 20.8H 10.68% mysqld === And here is mysqladmin var output : [4:58pm]# mysqladmin var +-+---+ | Variable_name | Value | +-+---+ | ansi_mode | OFF | | back_log| 50| | basedir | /usr/local/mysql/ | | binlog_cache_size | 32768 | | character_set | latin1| | character_sets | latin1 cp1251 | | concurrent_insert | ON| | connect_timeout | 5 | | datadir | /usr/local/mysql/var/ | | delay_key_write | ON| | delayed_insert_limit| 100 | | delayed_insert_timeout | 300 | | delayed_queue_size | 1000 | | flush | OFF | | flush_time | 0 | | have_bdb| NO| | have_gemini | NO| | have_innodb | YES | | have_isam | YES | | have_raid | NO| | have_ssl| NO| | init_file | | | innodb_data_file_path | ibdata1 | | innodb_data_home_dir| /usr/local/mysql/var/innobase_data/ | | innodb_flush_log_at_trx_commit | OFF | | innodb_log_arch_dir | /usr/local/mysql/var/innobase_logs/ | | innodb_log_archive | OFF | | innodb_log_group_home_dir | /usr/local/mysql/var/innobase_logs/ | | interactive_timeout | 28800 | | join_buffer_size| 131072| | key_buffer_size | 67104768 | | language| /usr/local/mysql/share/mysql/english/ | | large_files_support | ON
Out of memroy (no more, sorry)
Bonjour, Sorry for the previous email. I had to check more. I had a program of mine eating more than a giga of ram on the server :o( so no problem with Mysql this time :o) Regards, Alex. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
My Sql and default installation
Hi, I have installed mysql on WIN NT4.0.By default ,will mysql use ISAM as the default? When to opt for BDB? Regards, Ravi Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet and ftp problem
Rodolfo Baselli wrote: Gerald Clark wrote: You don't use telnet or ftp to connect to the MySQL server. You use the client mysql. Yes, I know, I probably mispelled the problem. Now, I can't telnet the telnet service and ftp the ftp service running on the MySQL server when the MySQL daemon is active on the server. If stop the MySQL server daemon, telnet and ftp services resume their normal operation. Why? Bye - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php Hi, Your problem seems very strange ! Since mysql, ftp and telnet are different services that listen on different port numbers, they can be started and stopped independently. How do you start and stop mysql ? BTW, on which OS are you running ? Regards -- Joseph Bueno NetClub/Trader.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: cobalt binary version
a == archive archie writes: a any binary version for cobalt qube2 (mips processor) ?? a have mysql ever tested install at cobalt qube/raq ?? a how is it done? There used to be a version on the cobalt ftp site in the contrib area. Don't know what's there now, since they seem to be ignoring the MIPS based equipment lately. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D.Khera Communications, Inc. Internet: [EMAIL PROTECTED] Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
my sql database and locking issues(URGENT)
Hi, 1. Does mysql inherently implement locking implicitly? 2. The following is the extract from mysql documentation: In MySQL Version 3.23.7 and above, you can insert rows into MyISAM tables at the same time other threads are reading from the table. Note that currently this only works if there are no holes after deleted rows in the table at the time the insert is made. ACTUALLY,VERSION 3.23.7 IS NOT RELEASED.ARE THESE THE EXPECTED FEATURES IN THE COMING VERSION? Regards, Ravi Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Installing mysql on another directory than c: with windows
Well... I installed mysql in my D: drive (at home) and it works perfectly. I set in the control panel/services to have mysql started automatically when the server is started. When I want to access it direct I just go to D:\Program Files\mysql\bin and type mysql. Yesterday I tested a cgi script appending rows to a table and it worked good until I decided to install Oracle driver. However in my job I installed first at C:, then at E: and then when I deleted the C: one I found problem trying to access the one that was in E:. At home I never got this issue because the first time I installed at D:. There is a note in mySQL guide that says that you should install it first at C: then move it to anotehr drive and the always start it making reference to the first location. Sorry I don't remember it exactly but the warning is in the manual. However I never followed this warning and at home it works perfectly. Siomara From: LE GAC [EMAIL PROTECTED] Reply-To: LE GAC [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Installing mysql on another directory than c: with windows Date: Mon, 21 May 2001 08:21:13 +0200 I can't manage to have an acces to my database with mysql installed on E: on a windows Nt server. What can I do ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: my sql database and locking issues(URGENT)
2. The following is the extract from mysql documentation: In MySQL Version 3.23.7 and above, you can insert rows into MyISAM tables at the same time other threads are reading from the table. Note that currently this only works if there are no holes after deleted rows in the table at the time the insert is made. ACTUALLY,VERSION 3.23.7 IS NOT RELEASED.ARE THESE THE EXPECTED FEATURES IN THE COMING VERSION? 3.23.7 is long gone! we know on 3.23.38 Regards, Ravi Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: The Syntax to Get JDBC Connection
I usually create a txt file like the following (I used Oracle but you can change to mysql stuffs): jdbc.driver=oracle.jdbc.driver.OracleDriver jdbc.driverType=jdbc:oracle:thin:@ jdbc.host=prokids jdbc.port=1521 jdbc.sid=orcl jdbc.username=scott jdbc.password=tiger Then I have a manager class (such as CustomerManager or ProductManager, whatever) establhishing connection like the following: cont... / * Establish a connection with the database / public void connectDB() { try { Properties props = new Properties(); FileInputStream dbPropFile = new FileInputStream(DBHomeProperties.txt); props.load(dbPropFile); this.dbConnection = new DBConnection(props.getProperty(jdbc.driver), props.getProperty(jdbc.driverType), props.getProperty(jdbc.host), props.getProperty(jdbc.port), props.getProperty(jdbc.sid), props.getProperty(jdbc.username), props.getProperty(jdbc.password)); } catch (Exception e) { System.out.println(e); } } OR you can set it directly like: this.dbConnection = new DBConnection (oracle.jdbc.driver.OracleDriver, jdbc:oracle:thin:@,prokids,1521, orcl, scott, tiger); And then in my DBConnection class I got the following: /** * Copyright (c) 2000 Objectry.com * File Name: DBConnection.java * @dateOctober 2001 * @author Siomara Pantarotto * Description: Definition of DBConnection class.This class is * design to access Oracle database via drivers and * to acces SQL Server database via ODBC bridge. **/ import java.io.*; import java.sql.*; import java.util.*; public class DBConnection implements Serializable { private Connection conn; private Statement stmt; private String driver; private String driverType; private String host; private String port; private String sid; private String username; private String password; / // Constructors // // No argument constructor for Java Bean requirement public DBConnection() { } // For accessing Oracle via drivers public DBConnection(String driver, String driverType, String host, String port, String sid, String username, String password) { setDriver(driver); setDriverType(driverType); setHost(host); setPort(port); setSid(sid); setUsername(username); setPassword(password); connect(); } // For accessing SQL Server via ODBC public DBConnection(String driver, String driverType) { setDriver(driver); setDriverType(driverType); setHost(); setPort(); setSid(); setUsername(); setPassword(); connect(); } / // Establish connection to the database // public void connect() { String url; url = getDriverType(); if (getHost().length() 0) { url = url + getHost(); } if (getPort().length() 0) { url = url + : + getPort(); } if (getSid().length() 0) { url = url + : + getSid(); } System.out.println(url); try { Class.forName(driver); } catch(Exception e) { System.err.print(ClassNotFoundException: ); System.err.println(e.getMessage()); } try { this.conn = DriverManager.getConnection(url,username, password); this.stmt = conn.createStatement(); } catch(SQLException ex) { System.err.println(SQLException: + ex.getMessage()); } } / // Disconnect from the database // public void disconnect() { try { this.stmt.close(); this.conn.close(); } catch(SQLException ex) { System.err.println(SQLException: + ex.getMessage()); } } / // Get connection // public Connection getConnection() { return conn; } / // Get statement // public Statement getStatement() { return stmt; } / // Set and get DRIVER attribute // public void setDriver(String newDriver) { this.driver = newDriver; } public String getDriver() { return driver; } / // Set and get DRIVER TYPE attribute // public
table corruption during large import.
I am having a heck of a time here. Im running RH 7.0 kernel 2.2.16 on a PII 300, 128meg RAM. Mysql 2.23.32, php 4.04. I have a DB set up that has 4 tables. 3 of the four only have a couple thousand records, but one table will have somewhere between 80k to maybe as many as a million records. The DB is a backend for a dynamic site and I have scripts to allow the uploading of files. These files are CVS and are handled by php scripts. Every night I plan on having a cron job run a script to copy the files to a working directory, deleting the originals and then processing the files one at a time, line by line and inserting them into the table in question. During testing I am using a data file that has 481 records. To mimick real scenario, I simply copy the file giving it a bunch of new names, but the content is identicle. Then I run my script to import the data. Everything seems fine upto about 200k records. After that things seems to go awry. At about 400k records the import runs fine, no erros and running CHECK TABLE shows no problems, however, if I try to do a select, I get an error 127. If I up the import to ver 1 million records for testing purposes my script actually aborts with error 127 and check table reports corruption. I thought perhaps it was a bug so updated via the RH RPM to mysql 3.23.36. I still have the same problem and my performance on small tables seems greatly reduced. Does anyone have any ides why this at moderat record counts I get thie error even though check table reports no problems? And why does my script abort with a corrupt table when I break 1 million records? P.S. I am no where close to OS file limitations, at 1.1 million records, my table is about 60 meg. - Larry Hotchkiss - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: which db server
Can you give more info on what type of system this is ?? Is this really a 'server' type machine, or an HP Vectra PC ?? (of the 'XU' series ?) Does it have the onboard SCSI controller (what size drives, and are they SCSI drives ?) - If they're SCSI, you might want to get 4 drives, and mirror the first 2 for the O/S and Program installations (and maybe the 'temp' spaces), and the 2nd pair for the data partitions. What type of network card(s) are you installing ?? (HP usually provides crappy versions of 3com cards) What O/S will you be installing on it ?? - If Linux, have you tested the 2.4.x kernel to make sure that the SMP kernel is compatible with the machine (on my ALR board, I had to change the SMP 'spec' to 1.1 from 1.4 to avoid crashing). I myself have a couple of HP Vectra's running Redhat (6.2) on them. But they're 'small' installations, mainly serving as 'firewall/gateway' systems with small implementations of Apache and stuff for home. The one thing I make sure of, is that I have at least 2 drives installed, in order to 'mirror' the drive contents. - Original Message - From: Jacob Friis Larsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 3:16 AM Subject: which db server We are currently running a website witch both takes care of the database and the application. We will buy a HP server, which will only be used as a db server. It will probably be a dual PIII 800mhz with 512mb ram and 3 physical disks. We have the option of changing this a bit. What would give us the best performance ? More ram : how much ? more CPU's ? Any comments ? Please help us choose the right server. Best regards Jacob - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: table corruption during large import.
Do you 'refresh' your tables before each test ? If so, is it possible that you're writing over the same disk space each time (which would point to a drive surface problem). Is it possible that the larger runs of 'inserts' are using more RAM than the smaller tests, and you're hitting a bad memory chip ? Are you running the tests at 'full speed', and are your drives setup to handle high levels of 'writes' ? (are they 'striped' or are you writing to 1 disk ?) - Original Message - From: Larry Hotchkiss [EMAIL PROTECTED] To: 'MySQL List' [EMAIL PROTECTED] Sent: Monday, May 21, 2001 10:05 AM Subject: table corruption during large import. I am having a heck of a time here. Im running RH 7.0 kernel 2.2.16 on a PII 300, 128meg RAM. Mysql 2.23.32, php 4.04. I have a DB set up that has 4 tables. 3 of the four only have a couple thousand records, but one table will have somewhere between 80k to maybe as many as a million records. The DB is a backend for a dynamic site and I have scripts to allow the uploading of files. These files are CVS and are handled by php scripts. Every night I plan on having a cron job run a script to copy the files to a working directory, deleting the originals and then processing the files one at a time, line by line and inserting them into the table in question. During testing I am using a data file that has 481 records. To mimick real scenario, I simply copy the file giving it a bunch of new names, but the content is identicle. Then I run my script to import the data. Everything seems fine upto about 200k records. After that things seems to go awry. At about 400k records the import runs fine, no erros and running CHECK TABLE shows no problems, however, if I try to do a select, I get an error 127. If I up the import to ver 1 million records for testing purposes my script actually aborts with error 127 and check table reports corruption. I thought perhaps it was a bug so updated via the RH RPM to mysql 3.23.36. I still have the same problem and my performance on small tables seems greatly reduced. Does anyone have any ides why this at moderat record counts I get thie error even though check table reports no problems? And why does my script abort with a corrupt table when I break 1 million records? P.S. I am no where close to OS file limitations, at 1.1 million records, my table is about 60 meg. - Larry Hotchkiss - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
mysql crash continued
hi, i've upgraded mysql server with 3.23.38 from mysql, and i have the same behaviour sinisa if you have some time i could give you access to one of the machines. :/ -- WEBSOLUT - Soluções Internet Emailto: [EMAIL PROTECTED] Personal Info: http://websolut.net/people/rui.html As informações contidas neste email são confidenciais e destinam-se apenas à(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: mysql crash continued
Rui Barreiros writes: hi, i've upgraded mysql server with 3.23.38 from mysql, and i have the same behaviour sinisa if you have some time i could give you access to one of the machines. :/ -- WEBSOLUT - Soluções Internet Emailto: [EMAIL PROTECTED] Personal Info: http://websolut.net/people/rui.html Are tables OK ?? Corrupted tables can still crash sometimes MySQL. If they are and that query or combination of queries always crashes mysql, then please mail to the [EMAIL PROTECTED] so that we may advise you where to upload your tables and queries that always crashes MySQL. Thank you in advance. Regards, Sinisa __ _ _ ___ == MySQL AB /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED] /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus /*/ /*/ /*/\*\_/*/ \*\_/*/ |*| /*/^^^\*\^^^ /*/ \*\Developers Team - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Results came from
Is there anyway to determine which part of the an sql query where blahblah produced the result? ie. select Title from inv where Title LIKE '%Green' OR Title Like '%Blue%' I need to distinguish if the Title was like Green or Blue.. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: users and passwords...users and passwords...
/mysql/bin/mysql_setpermission can also be handy but if you do stuff manually don't forget to do a /mysql/bin/mysqladmin flush-privileges a bit of manual reading probably wouldn't go amiss either :-) On Monday 07 May 2001 07:54, Daniel Goldin \(E-mail\) wrote: I've had similiatr problems setting passwords on my redhat box. Tried % mysql -p -u root mysql: Got error message: Access denied for user root@localhost (using password:YES) Help, please!!! -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 6:36 PM To: Simon Chan; mysql Mail List Subject: Re: users and passwords...users and passwords... At 12:16 PM -0700 5/6/01, Simon Chan wrote: NEWBIE QUESTION Hello, Just installed mysql on a solaris2.7 sparc machine, but I don't seem to have permission to do anything! I add a user by typing useradd username That creates a UNIX user account, not a MySQL user account. They have nothing to do with each other. To create a MySQL user (and set the password), use the GRANT statement in the mysql program: % mysql -p -u root mysql Then enter the MySQL root user password when prompted and execute your GRANT statements. See the MySQL Reference Manual for GRANT syntax. BUT HOW DO I SET THE PASSWORD? Someone suggested doing this: mysqlinsert into user (host, user, password) values ('localhost', 'myname' password('testpass'); But that doesn't work for me! It gives me the good ol' syntax error message. I've also tried this: mysql insert into user (host, user, password) values ('localhost', 'myname','testpass'); But that gives a message saying that no database selected. Help! - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
question about replication under version 3.23.38 for Unix (database)
HI, everyone, I met a problem about setting up replication(master/slave) of mysql sever on unix boxes. Mysql servers are installed under /usr/local/ on master and slave and they can be run under /usr/local/mysql/bin. It seems to me that I have three choices where to put my configuration files, my.cnf, after I modify them for master and slave respectively . 1) /etc/my.cnf (global options) 2) DATADIR/my.cnf (Sever-specific option) 2) ~/.my.cnf (User-specific option) I have already tried all the three options, but only the first one worked. For sever-specific option, DATADIR that I choose to use is /data/mysql on my unix. And for User-specific option, I have tried my home directory /home/joseph. For either of these two cases, it is obvious that mysql server didnot read the modified configuration under these two directories, because I tried show master status and show slave status and find nothing happened. Anyone can answer why and how to work it out under last two cases? thank you, Joseph
key_reads and opened_tables.
In the manual, it states if Key_reads is big, then your key_cahce is probably too small.so what exactly is BIG??? Same thing for opened_tables, it states if opened_tables is big then your then your table_cache variable is probably too small. Can someone please define BIG Im just using a default RH 7.1 install of mysql 3.23.36, no tweaks as of yet. PII 300 has 128 meg of RAM. My current opened_tables is 69 and my key_reads is 210251. My current db consists of 4 small tables. - Larry Hotchkiss - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Remote access to MySQL with MySQLGUI on Win32
I am trying to see if I can communicate with a MySQL on Free BSD from the MySQL GUI client on my Windows NT. The GUI client cannot connect because the MySQL seems to be refusing this connection. This does not seem to be server-related, but related to MySQL itself, since, when I try to telnet in port 3306 on that server, I got the error message: Host my FQDN is not allowed to connect to this MySQL server Do I have to modify something in the configuration file in that MySQL? And where is that file on the FreeBSD install? Thanks a lot if you can help! - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Results came from
What language are you using to prepare that query? If it's perl, do something like if ($title =~ /Green/) If it's php, do something like if (ereg(Green,$title)) If it's C, cycle the string finding that This is a job for the client truthfully...but if you absolutly MUST do this server side, here is your query: select Title, IF(Title LIKE '%Green','Green','Blue') AS whatmatch - Original Message - From: Carl Schrader [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 10:56 AM Subject: Re: Results came from Is there anyway to determine which part of the an sql query where blahblah produced the result? ie. select Title from inv where Title LIKE '%Green' OR Title Like '%Blue%' I need to distinguish if the Title was like Green or Blue.. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
count(*) on different tables
Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Results came from
Eric, I'm using php. The problem is that the where may have 100 or so conditions. I was hoping that mysql had some built in function or variable that would return this for me. I guess I'll have to code it in php.. argh. Eric Fitzgerald wrote: What language are you using to prepare that query? If it's perl, do something like if ($title =~ /Green/) If it's php, do something like if (ereg(Green,$title)) If it's C, cycle the string finding that This is a job for the client truthfully...but if you absolutly MUST do this server side, here is your query: select Title, IF(Title LIKE '%Green','Green','Blue') AS whatmatch - Original Message - From: Carl Schrader [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 10:56 AM Subject: Re: Results came from Is there anyway to determine which part of the an sql query where blahblah produced the result? ie. select Title from inv where Title LIKE '%Green' OR Title Like '%Blue%' I need to distinguish if the Title was like Green or Blue.. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
C API; queries within functions.
Hi! This is probably more of a C inadequacy than a MySQL problem. I'm playing around with C with MySQL (I have to date only interfaced with it in PHP) and I was curious if anyone had any example code which illustrates how you would write functions which return mysql data. For example, in PHP I might write a simple function like this: function get_specific_db_column($dbname, $tblname, $pk, $pk_val, $colname) { $sql = SELECT $colname as val FROM $dbname.$tblname WHERE $pk = '$pk_val'; $r = mysql_query($sql); while ($row = mysql_fetch_array($r)) $array[] = $row; return $array; } But, in C I haven't figured out how to do things like navigate passing the MYSQL *mysql init pointer into the function for mysql_query etc. I can however get a program WITHOUT functions (ie, hardcode the query) compiled and working: // Simple test application // for the C Mysql API #include sys/time.h #include stdio.h #include mysql.h #define def_host_name NULL #define def_user_name root #define def_password NULL #define def_db_name reflectivity int main (char **arg) { MYSQL_RES *result; MYSQL_ROW row; MYSQL *connection, mysql; int state; char colsize=10, rowsize=10; // connect to the mysql database on internal mysql_init(mysql); connection = mysql_real_connect(mysql, def_host_name, def_user_name, def_password, def_db_name, 0, /*port defaut*/ NULL, /*socket default*/ 0);/*flag*/ if (connection == NULL) // check for a connection error { // print the error message printf(mysql_error(mysql)); return 1; } state = mysql_query(connection,SELECT * from reflectivity.accounts); if (state != 0) { printf(mysql_error(connection)); return 1; } // you must call mysql_store_result before we can issue anything else result = mysql_store_result(connection); printf(Rows: %d\n, mysql_num_rows(result)); // process each row in the result set while ((row = mysql_fetch_row(result)) != NULL) printf(%s - %s - %s - %s - %s\n,row[0],row[1],row[2],row[3],row[4]); // free some memory mysql_free_result(result); // close the mysql connection mysql_close(connection); printf(Done.\n); } Ny guess is that if I just see a couple of examples which mimic some of the functionality of the above PHP function in C I'll be able to write them without a problem. Any pointers on where to look? Thanks! Seth - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Compute SQL Function Not Supported
I take it the Computer SQL Function is not support by MySQL and if not is there a substitute for it? If you are unfamiliar with the command it works like this: SELECT type, price FROM products ORDER BY type COMPUTE SUM(price) You will get a summary of prices by type in your results.
set options (not at safe_mysqld at startup)
Hello All, Is there some way, when mysql server is running, to change an option? I want to change skip_networking to OFF without doing a server restart. Thanks, Brian
Fastest query ?
Hi, I wonder which of the following queries is faster : $result=mysql_query(SELECT lastauteur FROM forum ORDER BY date DESC LIMIT 1); or : $max=mysql_query(SELECT max(date) FROM forum); list($max)=mysql_fetch_row($max); $result=mysql_query(SELECT lastauteur FROM forum WHERE date='max'); (column date is declare as datetime, and is a non unique index) Any idee ? Thanks, Jocelyn Fournier Presence-PC www.presence-pc.com
Re: count(*) on different tables
If you are using PHP (or anothe controlling language, you could take the results of SHOW TABLES and loop through it either doing a single select for each table or building a select statement that UNIONs the results together. i.e. Select 'Table1' as tableName, count(*) as rowCount from table1 UNION Select 'Table2' as tableName, count(*) as rowCount from table2 ... etc Assuming that MySQL can use the UNION clause. (I haven't checked) My DBA says that in MS T/SQL you can do this: select solcount = count( distinct s.solKey ), probcount = count( distinct p.probKey ) from sol s, prob p where SOL and PROB are tables. HTH, Cal http://www.calevans.com - Original Message - From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:18 PM Subject: count(*) on different tables Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: CPU usage running mysql
-Original Message- From: David Allen [mailto:[EMAIL PROTECTED]] Sent: lunes, 21 de mayo de 2001 14:36 To: Simon Green; [EMAIL PROTECTED] Subject: Re: CPU usage running mysql Hello again! Do you know if there is any way I can see what the mysqld is doing? If it is taking up 99% of the processor time, it is very busy doing something! I installed the binary version and consequently only have the tools available which came with that distribution. First of all, compare with supported tools such as vmstat or ps to ensure that top is correct. vmstat will not show the process itself but just total usertime, systemtime and idletime. You can also use Symbel ( www.setoolkit.com ), but I've experienced a bug in this too related to cpu/process info on Solaris 6, 7 and possible also 8. This is in all recent releases (3.0 - 3.2) and is present in toptool.se, aw.se and infotool.se. Tools in Symbel that will work and give you some info about mysqld is /opt/RICHPse/examples/pea.se this however tends to loop if you pipe the output to awk or another program. That's another bug ;-) For default debugging tools shipped with a standard Solaris go to /usr/proc/bin : # ls -al /usr/proc/bin total 30 drwxr-xr-x 2 root bin 512 Dec 31 20:25 . drwxr-xr-x 3 root bin 512 Dec 31 20:25 .. lrwxrwxrwx 1 root root 15 Dec 31 20:25 pcred - ../../bin/pcred lrwxrwxrwx 1 root root 16 Dec 31 20:25 pfiles - ../../bin/pfiles lrwxrwxrwx 1 root root 16 Dec 31 20:25 pflags - ../../bin/pflags lrwxrwxrwx 1 root root 14 Dec 31 20:25 pldd - ../../bin/pldd lrwxrwxrwx 1 root root 14 Dec 31 20:25 pmap - ../../bin/pmap lrwxrwxrwx 1 root root 14 Dec 31 20:25 prun - ../../bin/prun lrwxrwxrwx 1 root root 14 Dec 31 20:25 psig - ../../bin/psig lrwxrwxrwx 1 root root 16 Dec 31 20:25 pstack - ../../bin/pstack lrwxrwxrwx 1 root root 15 Dec 31 20:25 pstop - ../../bin/pstop lrwxrwxrwx 1 root root 15 Dec 31 20:25 ptime - ../../bin/ptime lrwxrwxrwx 1 root root 15 Dec 31 20:25 ptree - ../../bin/ptree lrwxrwxrwx 1 root root 15 Dec 31 20:25 pwait - ../../bin/pwait lrwxrwxrwx 1 root root 14 Dec 31 20:25 pwdx - ../../bin/pwdx There are man pages for all of them. They all give useful information about what a given process is doing. You can also use truss. ...ofcourse you can also get some info from MySQL itself with show processlist -- Un saludo / Venlig hilsen / Regards Jesper Frank Nemholt Unix System Manager Compaq Computer Corporation Phone : +34 699 419 171 E-Mail: [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: C API; queries within functions.
Any pointers on where to look? That line says it all really. Your initiallizing connection as a pointer (denoted by *), you have to treat it accordingly when passing it to functions. Your function init would look something like this: MYSQL_RES doquery (MYSQL *connection, char query[100]) { int state; MYSQL_RES *result; state = mysql_query(connection,query); if (state != 0) { printf(mysql_error(connection)); return NULL; } result = mysql_store_result(connection); return result; } then, in your code, you would connect like normal, then call the function like this: MYSQL_RES *result; result = doquery(connection, query); - Original Message - From: Seth Northrop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:25 PM Subject: C API; queries within functions. Hi! This is probably more of a C inadequacy than a MySQL problem. I'm playing around with C with MySQL (I have to date only interfaced with it in PHP) and I was curious if anyone had any example code which illustrates how you would write functions which return mysql data. For example, in PHP I might write a simple function like this: function get_specific_db_column($dbname, $tblname, $pk, $pk_val, $colname) { $sql = SELECT $colname as val FROM $dbname.$tblname WHERE $pk = '$pk_val'; $r = mysql_query($sql); while ($row = mysql_fetch_array($r)) $array[] = $row; return $array; } But, in C I haven't figured out how to do things like navigate passing the MYSQL *mysql init pointer into the function for mysql_query etc. I can however get a program WITHOUT functions (ie, hardcode the query) compiled and working: // Simple test application // for the C Mysql API #include sys/time.h #include stdio.h #include mysql.h #define def_host_name NULL #define def_user_name root #define def_password NULL #define def_db_name reflectivity int main (char **arg) { MYSQL_RES *result; MYSQL_ROW row; MYSQL *connection, mysql; int state; char colsize=10, rowsize=10; // connect to the mysql database on internal mysql_init(mysql); connection = mysql_real_connect(mysql, def_host_name, def_user_name, def_password, def_db_name, 0, /*port defaut*/ NULL, /*socket default*/ 0);/*flag*/ if (connection == NULL) // check for a connection error { // print the error message printf(mysql_error(mysql)); return 1; } state = mysql_query(connection,SELECT * from reflectivity.accounts); if (state != 0) { printf(mysql_error(connection)); return 1; } // you must call mysql_store_result before we can issue anything else result = mysql_store_result(connection); printf(Rows: %d\n, mysql_num_rows(result)); // process each row in the result set while ((row = mysql_fetch_row(result)) != NULL) printf(%s - %s - %s - %s - %s\n,row[0],row[1],row[2],row[3],row[4]); // free some memory mysql_free_result(result); // close the mysql connection mysql_close(connection); printf(Done.\n); } Ny guess is that if I just see a couple of examples which mimic some of the functionality of the above PHP function in C I'll be able to write them without a problem. Any pointers on where to look? Thanks! Seth - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: count(*) on different tables Date: Mon, 21 May 2001 20:18:35 +0200 Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
MYSQL performance question
I would like to know the limitations of Mysql with extremely large tables. I need to store 20+ million records. Each record would contain only 4-6 fields and would not be longer than 128 bytes of information. The records could be divided among several tables, but at what size is the performance hindered enough to need to split records between several smaller tables? Any information leading to an optimal solution would be greatly appreciated. Thanks Shane Anderson Software Developer Web Accessibility in Mind - http://www.WebAIM.org - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Problems with MySQL and Poweredge 6450..
Hey, We just got a new Dell Poweredge 6450 preloaded with redhat 6.2. Our intention is to move the database off a smaller machine and load it into this one. We currently have MySQL 3.23.38 using the innobase driver on redhat 6.2 with kernel 2.4.4. This is on a dual PIII650 with 1 gig of ram and it runs fine. Here is a copy of a status readout in mysql: mysql Ver 11.15 Distrib 3.23.38, for pc-linux-gnu (i686) Connection id: 232107 Current database: Current user: root@localhost Current pager: stdout Using outfile: '' Server version: 3.23.38 Protocol version: 10 Connection: Localhost via UNIX socket Client characterset:latin1 Server characterset:latin1 UNIX socket:/tmp/mysql.sock Uptime: 1 day 19 hours 23 min 39 sec Threads: 55 Questions: 70609984 Slow queries: 15 Opens: 203 Flush tables: 1 Open tables: 155 Queries per second avg: 451.994 As you can see we have quite a load on this poor machine, this is why we wanted to move to a bigger badder machine so we could push more out of MySQL. Anyway, as mentioned before, our machine is a Poweredge 6450 with 4 Xeon 750mhz processors and 4gb of ram. We also have a dell 4 channel PercRaid card that does a raid 5 onto 4 36gb scsi disks. So we loaded Mysql 3.23.38 onto the machine with no extra tweeks, just with the raw install from dell, setup the Innobase driver and imported our data. Once we moved the site onto the new server everything worked great, we could do super heavy queries in no time, it was great! Then a day later I was looking at the .err log and noticed that MySQL had crashed several times! Each time it crashes it restarts itself and the innobase tables fix themselves. Innobase is verry cool! But this is a real problem! So I took the .err file and parsed the stack trace against the symbol file for mysql like the manual says. Here is a copy of the .err file with the stack dump from one crash. This one is from kernel 2.4.3: mysqld got signal 11; The manual section 'Debugging a MySQL server' tells you how to use a stack trace and/or the core file to produce a readable backtrace that may help in finding out why mysqld died. Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Stack range sanity check OK, backtrace follows: 0x81c508a 0x80f4ca5 0x80f44d4 0x80f823e 0x80f4021 0x80caee6 0x80c4a2d 0x809bdbf 0x8097de1 0x8097522 0x8098177 0x80abede 0x8084967 0x80877fd 0x8082ba9 0x80820d6 Stack trace successful, trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd-query at 0xb91044a8 is invalid pointer thd-thread_id = 6230 Successfully dumped variables, if you ran with --log, take a look at the details of what thread 6230 did to cause the crash. In some cases of really bad corruption, this value may be invalid Please use the information above to create a repeatable test case for the crash, and send it to [EMAIL PROTECTED] Number of processes running now: 0 010516 15:55:52 mysqld restarted InnoDB: Database was not shut down normally. InnoDB: Starting recovery from log files... InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 2512947858 InnoDB: Doing recovery: scanned up to log sequence number 0 2512963 Here is the results of running stackresolve: [root@cobalt /tmp]# /usr/local/mysql/bin/resolve_stack_dump -s /tmp/mysqld.sym -n /tmp/mysql.stack 0x81c508a pthread_sighandler + 150 0x80f4ca5 dict_col_add_to_cache + 153 0x80f44d4 dict_table_add_to_cache + 1128 0x80f823e dict_load_table + 3326 0x80f4021 dict_table_get + 169 0x80caee6 open__11ha_innobasePCciUi + 310 0x80c4a2d ha_open__7handlerPCcii + 33 0x809bdbf openfrm__FPCcT0UiUiUiP8st_table + 4959 0x8097de1 open_unireg_entry__FP3THDP8st_tablePCcN22b + 69 0x8097522 open_table__FP3THDPCcN21Pb + 950 0x8098177 open_ltable__FP3THDP13st_table_list13thr_lock_type + 71 0x80abede mysql_insert__FP3THDP13st_table_listRt4List1Z4ItemRt4List1Zt4List1Z4Item15enum_duplicates13thr_lock_type + 302 0x8084967 mysql_execute_command__Fv + 5339 0x80877fd mysql_parse__FP3THDPcUi + 209 0x8082ba9 do_command__FP3THD + 1305 0x80820d6 handle_one_connection__FPv + 578 We have tried 2.2.x kernels and all kinds of memory configs but we are at a loss for what to do. It seems to be a machine problem because the same data on a different machine works fine. If anyone has any ideas I would love it! Thanks. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
Actually, as far as performance goes, it depends on table types. Most of the MySQL table handlers keep an internal count of record numbers. Thus, a select count(*) from table; is as fast as it gets. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:26 PM Subject: Re: count(*) on different tables Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: count(*) on different tables Date: Mon, 21 May 2001 20:18:35 +0200 Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: Compute SQL Function Not Supported
Okay I may have been a bit vague on my description. SELECT location, date, type, price, FROM products ORDER BY location, type, date Group By location, type COMPUTE SUM(price) Is there something similar for compute? -Original Message- From: Chris Bolt [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 1:07 PM To: [EMAIL PROTECTED] Subject: RE: Compute SQL Function Not Supported SELECT type, sum(price) FROM products GROUP BY type ORDER BY type I take it the Computer SQL Function is not support by MySQL and if not is there a substitute for it? If you are unfamiliar with the command it works like this: SELECT type, price FROM products ORDER BY type COMPUTE SUM(price) You will get a summary of prices by type in your results. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Change port #
my ISP firewall dosen't allow access to port 3306. How can I change this port assignment? I saw this in the doc but I couldn't find the my.ini file. What affect other than remote access will changing the port have? I need to change it to port 21, or something. mysql - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: MYSQL and the Macintosh
Hmm. One way might be to use MacPerl to generate tab delimited files that you could then use to create an Excel document, then mail merge into your Word doc. I could have sworn that there was some kind of ODBC setup with Mac Office, though.. Z On Monday, May 21, 2001, at 02:17 AM, Ray Smith wrote: Hi all, I would like to try and create a database that can be used for report/letter generation on both IBM and Macs, and eventually emails. I have success on the IBM simply using ODBC and Office, and was wondering how one would go about the same process on the Mac. The advantage of using Office was simply that templates already existed. I have had a look through the archives but only found references to FileMaker. Is this the only way to go on the Mac? Any suggestions? Ray. - Ray Smith Centre for Musculoskeletal Studies Department of Surgery University of Western Australia Royal Perth Hospital Medical Research Foundation Bldg Rear 50 Murray St, Perth, Western Australia, 6000 Ph: +61 8 9224 0307 Fax:+61 8 9224 0204 Email: [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail mysql-unsubscribe- [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: Compute SQL Function Not Supported
Please strike previous message the query should be: SELECT location, date, type, price, FROM products ORDER BY location, date, type Group By location, date, type COMPUTE SUM(price) -Original Message- From: Brandon Lewis [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 2:14 PM To: Chris Bolt; [EMAIL PROTECTED] Subject: RE: Compute SQL Function Not Supported Okay I may have been a bit vague on my description. Is there something similar for compute? -Original Message- From: Chris Bolt [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 1:07 PM To: [EMAIL PROTECTED] Subject: RE: Compute SQL Function Not Supported SELECT type, sum(price) FROM products GROUP BY type ORDER BY type I take it the Computer SQL Function is not support by MySQL and if not is there a substitute for it? If you are unfamiliar with the command it works like this: SELECT type, price FROM products ORDER BY type COMPUTE SUM(price) You will get a summary of prices by type in your results. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Problems with MySQL and Poweredge 6450..
On Monday 21 May 2001 13:50, Cody Swanson wrote: Hey, We just got a new Dell Poweredge 6450 preloaded with redhat 6.2. Our intention is to move the database off a smaller machine and load it into this one. We currently have MySQL 3.23.38 using the innobase driver on redhat 6.2 with kernel 2.4.4. This is on a dual PIII650 with 1 gig of ram and it runs fine. Here is a copy of a status readout in mysql: mysql Ver 11.15 Distrib 3.23.38, for pc-linux-gnu (i686) Connection id:232107 Current database: Current user: root@localhost Current pager:stdout Using outfile:'' Server version: 3.23.38 Protocol version: 10 Connection: Localhost via UNIX socket Client characterset: latin1 Server characterset: latin1 UNIX socket: /tmp/mysql.sock Uptime: 1 day 19 hours 23 min 39 sec Threads: 55 Questions: 70609984 Slow queries: 15 Opens: 203 Flush tables: 1 Open tables: 155 Queries per second avg: 451.994 As you can see we have quite a load on this poor machine, this is why we wanted to move to a bigger badder machine so we could push more out of MySQL. Anyway, as mentioned before, our machine is a Poweredge 6450 with 4 Xeon 750mhz processors and 4gb of ram. We also have a dell 4 channel PercRaid card that does a raid 5 onto 4 36gb scsi disks. So we loaded Mysql 3.23.38 onto the machine with no extra tweeks, just with the raw install from dell, setup the Innobase driver and imported our data. Once we moved the site onto the new server everything worked great, we could do super heavy queries in no time, it was great! Then a day later I was looking at the .err log and noticed that MySQL had crashed several times! Each time it crashes it restarts itself and the innobase tables fix themselves. Innobase is verry cool! But this is a real problem! So I took the .err file and parsed the stack trace against the symbol file for mysql like the manual says. Here is a copy of the .err file with the stack dump from one crash. This one is from kernel 2.4.3: mysqld got signal 11; The manual section 'Debugging a MySQL server' tells you how to use a stack trace and/or the core file to produce a readable backtrace that may help in finding out why mysqld died. Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... Stack range sanity check OK, backtrace follows: 0x81c508a 0x80f4ca5 0x80f44d4 0x80f823e 0x80f4021 0x80caee6 0x80c4a2d 0x809bdbf 0x8097de1 0x8097522 0x8098177 0x80abede 0x8084967 0x80877fd 0x8082ba9 0x80820d6 Stack trace successful, trying to get some variables. Some pointers may be invalid and cause the dump to abort... thd-query at 0xb91044a8 is invalid pointer thd-thread_id = 6230 Successfully dumped variables, if you ran with --log, take a look at the details of what thread 6230 did to cause the crash. In some cases of really bad corruption, this value may be invalid Please use the information above to create a repeatable test case for the crash, and send it to [EMAIL PROTECTED] Number of processes running now: 0 010516 15:55:52 mysqld restarted InnoDB: Database was not shut down normally. InnoDB: Starting recovery from log files... InnoDB: Starting log scan based on checkpoint at InnoDB: log sequence number 0 2512947858 InnoDB: Doing recovery: scanned up to log sequence number 0 2512963 Here is the results of running stackresolve: [root@cobalt /tmp]# /usr/local/mysql/bin/resolve_stack_dump -s /tmp/mysqld.sym -n /tmp/mysql.stack 0x81c508a pthread_sighandler + 150 0x80f4ca5 dict_col_add_to_cache + 153 0x80f44d4 dict_table_add_to_cache + 1128 0x80f823e dict_load_table + 3326 0x80f4021 dict_table_get + 169 0x80caee6 open__11ha_innobasePCciUi + 310 0x80c4a2d ha_open__7handlerPCcii + 33 0x809bdbf openfrm__FPCcT0UiUiUiP8st_table + 4959 0x8097de1 open_unireg_entry__FP3THDP8st_tablePCcN22b + 69 0x8097522 open_table__FP3THDPCcN21Pb + 950 0x8098177 open_ltable__FP3THDP13st_table_list13thr_lock_type + 71 0x80abede mysql_insert__FP3THDP13st_table_listRt4List1Z4ItemRt4List1Zt4List1Z4Item15enum_duplicates13thr_lock_type + 302 0x8084967 mysql_execute_command__Fv + 5339 0x80877fd mysql_parse__FP3THDPcUi + 209 0x8082ba9 do_command__FP3THD + 1305 0x80820d6 handle_one_connection__FPv + 578 We have tried 2.2.x kernels and all kinds of memory configs but we are at a loss for what to do. It seems to be a machine problem because the same data on a different machine works fine. If anyone has any ideas I would love it! Thanks. Thanks for a good bug report. Looks like you are using InnoDB tables. Please be aware that although we have tested them, they are not quite 100% production ready, although they are getting better and better. Let's hope
Telnet into MySQL
Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
Cool but how about if you put a where clause to your select?? SQL select count(1) from product where productid 3; COUNT(1) -- 7 Would count(*) show the same performance as count(1)??? Siomara From: Eric Fitzgerald [EMAIL PROTECTED] To: Siomara Pantarotto [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: count(*) on different tables Date: Mon, 21 May 2001 13:11:38 -0700 Actually, as far as performance goes, it depends on table types. Most of the MySQL table handlers keep an internal count of record numbers. Thus, a select count(*) from table; is as fast as it gets. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:26 PM Subject: Re: count(*) on different tables Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: count(*) on different tables Date: Mon, 21 May 2001 20:18:35 +0200 Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: Telnet into MySQL
go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
CRT (www.vandyke.com) Tim Thorburn wrote: Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
Well, let's do a test: mysql CREATE TABLE testcount (product INT NOT NULL AUTO_INCREMENT PRIMARY KEY, description VARCHAR(50)); Query OK, 0 rows affected (0.00 sec) **Ran perl script here to populate the table** mysql SELECT * FROM testcount LIMIT 10; +-+---+ | product | description | +-+---+ | 1 | Decription 1 | | 2 | Decription 2 | | 3 | Decription 3 | | 4 | Decription 4 | | 5 | Decription 5 | | 6 | Decription 6 | | 7 | Decription 7 | | 8 | Decription 8 | | 9 | Decription 9 | | 10 | Decription 10 | +-+---+ 10 rows in set (0.03 sec) mysql SELECT COUNT(*) FROM testcount; +--+ | COUNT(*) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(1) FROM testcount; +--+ | COUNT(1) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(2) FROM testcount; +--+ | COUNT(2) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(*) FROM testcount WHERE product 10; +--+ | COUNT(*) | +--+ |0 | +--+ 1 row in set (0.32 sec) mysql SELECT COUNT(1) FROM testcount WHERE product 10; +--+ | COUNT(1) | +--+ |0 | +--+ 1 row in set (0.32 sec) mysql As you can see, it really makes no difference to MySQL. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:48 PM Subject: Re: count(*) on different tables Cool but how about if you put a where clause to your select?? SQL select count(1) from product where productid 3; COUNT(1) -- 7 Would count(*) show the same performance as count(1)??? Siomara From: Eric Fitzgerald [EMAIL PROTECTED] To: Siomara Pantarotto [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: count(*) on different tables Date: Mon, 21 May 2001 13:11:38 -0700 Actually, as far as performance goes, it depends on table types. Most of the MySQL table handlers keep an internal count of record numbers. Thus, a select count(*) from table; is as fast as it gets. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:26 PM Subject: Re: count(*) on different tables Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: count(*) on different tables Date: Mon, 21 May 2001 20:18:35 +0200 Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check:
Re: Telnet into MySQL
On Mon, May 21, 2001 at 03:21:10PM -0500, Tim Thorburn spake thusly: *] Can someone here recommend a good Telnet program (with SSH) that I can use *] to connect to my servers MySQL database? *] Tim, You don't use telnet to connect to the MySQL database... You use the mysql client -- -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Peter L. Berghold[EMAIL PROTECTED] Schooner Technology Consulting http://www.berghold.net Unix Professional ServicesPerl Perl/CGI mod_perl - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
About MyODBC Some Common Errors
In ODBC documents some common error section is says - If you are connecting to a server with a character set that isn't compiled into the MySQL client library (the defaults are: latin1 big5 czech euc_kr gb2312 gbk sjis tis620 ujis ) then you need to install the mysql character definitions from the charsets directory into the c:\mysql\share\charsets. Is it possible to read it from my.ini or is it possible to recompile it with the recent charsets Index file (from 1 to 30) Regards Yusuf INCEKARA - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
On Mon, May 21, 2001 at 05:13:44PM -0400, Peter L. Berghold wrote: On Mon, May 21, 2001 at 03:21:10PM -0500, Tim Thorburn spake thusly: *] Can someone here recommend a good Telnet program (with SSH) that I can use *] to connect to my servers MySQL database? *] Seeing your mailclient (X-Mailer: QUALCOMM Windows Eudora Version 5.1) you probably want one for a windows box :) Try Putty: http://www.google.com/search?q=putty.exe small and light. Tim, You don't use telnet to connect to the MySQL database... You use the mysql client Well yeah. Asking the right question is an art ;) Good luck, -- The Moon is Waning Crescent (2% of Full) nieuw.nl - 2dehands.nl - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
At 3:21 PM -0500 5/21/01, Tim Thorburn wrote: Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim Unless you're thinking about some kind of Telnet program that you can use to set up an SSH forwarder, this won't work. You don't Telnet directly to the MySQL server; it speaks a binary protocol. -- Paul DuBois, [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re[2]: Telnet into MySQL
Hello Eric, Tuesday, May 22, 2001, 12:23:24 AM, you wrote: EF I really prefer SecureCRT from VanDyke software myself. Perfect blend of EF features and simplicity for my needs. It has a shareware version that does EF expire, but the license is cheap for it. Go to www.vandyke.com and download EF the shareware version to give it a try. EF - Original Message - EF From: Angerer, Chad [EMAIL PROTECTED] EF To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] EF Sent: Monday, May 21, 2001 1:58 PM EF Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php EF - EF Before posting, please check: EFhttp://www.mysql.com/manual.php (the manual) EFhttp://lists.mysql.com/ (the list archive) EF To request this thread, e-mail [EMAIL PROTECTED] EF To unsubscribe, e-mail [EMAIL PROTECTED] EF Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php The best is PuTTY http://www.chiark.greenend.org.uk/~sgtatham/putty. It's absolutely free. -- Best regards, Olexandrmailto:[EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
RE: Compute SQL Function Not Supported
In your original message, you said You will get a summary of prices by type in your results. and that is what my query gives you. It returns the sum of the price columns from any rows that are eliminated by the GROUP BY clause. What do you want it to return? Please strike previous message the query should be: SELECT location, date, type, price, FROM products ORDER BY location, date, type Group By location, date, type COMPUTE SUM(price) SELECT type, sum(price) FROM products GROUP BY type ORDER BY type - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
That's really cool Thanks siomara From: Eric Fitzgerald [EMAIL PROTECTED] To: Siomara Pantarotto [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: count(*) on different tables Date: Mon, 21 May 2001 14:08:00 -0700 Well, let's do a test: mysql CREATE TABLE testcount (product INT NOT NULL AUTO_INCREMENT PRIMARY KEY, description VARCHAR(50)); Query OK, 0 rows affected (0.00 sec) **Ran perl script here to populate the table** mysql SELECT * FROM testcount LIMIT 10; +-+---+ | product | description | +-+---+ | 1 | Decription 1 | | 2 | Decription 2 | | 3 | Decription 3 | | 4 | Decription 4 | | 5 | Decription 5 | | 6 | Decription 6 | | 7 | Decription 7 | | 8 | Decription 8 | | 9 | Decription 9 | | 10 | Decription 10 | +-+---+ 10 rows in set (0.03 sec) mysql SELECT COUNT(*) FROM testcount; +--+ | COUNT(*) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(1) FROM testcount; +--+ | COUNT(1) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(2) FROM testcount; +--+ | COUNT(2) | +--+ | 10 | +--+ 1 row in set (0.00 sec) mysql SELECT COUNT(*) FROM testcount WHERE product 10; +--+ | COUNT(*) | +--+ |0 | +--+ 1 row in set (0.32 sec) mysql SELECT COUNT(1) FROM testcount WHERE product 10; +--+ | COUNT(1) | +--+ |0 | +--+ 1 row in set (0.32 sec) mysql As you can see, it really makes no difference to MySQL. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:48 PM Subject: Re: count(*) on different tables Cool but how about if you put a where clause to your select?? SQL select count(1) from product where productid 3; COUNT(1) -- 7 Would count(*) show the same performance as count(1)??? Siomara From: Eric Fitzgerald [EMAIL PROTECTED] To: Siomara Pantarotto [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: count(*) on different tables Date: Mon, 21 May 2001 13:11:38 -0700 Actually, as far as performance goes, it depends on table types. Most of the MySQL table handlers keep an internal count of record numbers. Thus, a select count(*) from table; is as fast as it gets. - Original Message - From: Siomara Pantarotto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 12:26 PM Subject: Re: count(*) on different tables Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara From: Ansgar Becker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: count(*) on different tables Date: Mon, 21 May 2001 20:18:35 +0200 Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED]
Re: Telnet into MySQL
hahah Check out SecureCRT it's a wonderful product and well worth the price. [EMAIL PROTECTED] wrote: Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
I vote for VanDyke's CRT as well -- lots of features and ~ $30 (US) for the license. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 3:04 PM Subject: Re: Telnet into MySQL Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
At 4:04 PM -0600 5/21/01, [EMAIL PROTECTED] wrote: Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. That's exactly why you don't Telnet to the MySQL server. You're seeing information that's part of the binary client-server protocol. Use the mysql program instead. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Paul DuBois, [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
My sql and myISAM
Hi, Do someone have answers to these questions: 1. Maximum table size myISAM type tabes can handle? 2. Default maximum database size for a particular database. Your help will be highly appreciated. Regards, Ravi Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
Ahh come on.. I want to make things difficultG Normaly I never think about Telnet but for Fun on a borring Monday I decided hmmm let's play. If I do any thing it normaly through an ASTA Server and Client. Cool stuff. Cheers -Original Message- FROM: Paul DuBois TO: [EMAIL PROTECTED], [EMAIL PROTECTED] DATE: Mon 5/21/01 16:46 SUBJECT: Re: Telnet into MySQL At 4:04 PM -0600 5/21/01, [EMAIL PROTECTED] wrote: Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. That's exactly why you don't Telnet to the MySQL server. You're seeing information that's part of the binary client-server protocol. Use the mysql program instead. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Paul DuBois, [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: count(*) on different tables
As far as I know, they should be the same. The only case in which I can see count(colname) would be slower is if it doesnt count rows that contain null values for that column (this is only a guess, I dont know if count does that or not). ryan Would count(*) show the same performance as count(1)??? Siomara Actually, as far as performance goes, it depends on table types. Most of the MySQL table handlers keep an internal count of record numbers. Thus, a select count(*) from table; is as fast as it gets. Well ... I don't know enough about mysql but it must allow you somehow to specify the column by number as in Oracle and other DBs SQL select count(*) from product; COUNT(*) -- 10 SQL select count(1) from product; COUNT(1) -- 10 Once you just want to count the rows the performance of your select will be much better if you specify a column rather than *. Siomara Hi, is it possible to get *one* quick result with the rowcount of each table in one database, without knowing the column-names? this does *not* work: select count(t1.*), count(t2.*) from table1 t1, table2 t2 Manual doesn't say anything about that. Greetings, Ansgar Becker - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
sql to select 2 entries/name?
Hello list, I have a table in a database that has a field named 'artist'. There are multiple entries of the same artist/band. Example: deftones iggy pop kiss deftones glassjaw deftones kiss new found glory kiss There's 3 entries for deftones and 4 entries for kiss. What I need to do is select a maximum of 2 entries for each artist. I've tried a few different things, but nothing has given me what I need. Is there any way to do this? Thanks everyone, Tyler Longren - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
Before you listen to anyone else (and spend any money on a commercial SSH client) download and try PuttySSH, which is a free 'telnet like' SSH client (it WILL do straight telnet if you want it to) that works fabulously (at least for me at home and work for the past year). You can also download SCP (secure copy) and other utilities (i.e. SFTP) from the website: http://www.chiark.greenend.org.uk/~sgtatham/putty/ Even if you're actually trying to connect to the MySQL 'service' with this utility (which would be pointless) you should still download it, since using Telnet and/or FTP for communicating with your servers is suicidal... j.urban wrote: Take a look at the posts from Paul and others... You can't connect directly to MySQL using telnet without knowning the MySQL communication protocol... There are many MySQL client programs -- a good one for Windows is urSQL available from http://www.urbanresearch.com/ursql You might also want to have a look at the MySQL manual at http://www.mysql.com/doc/ Good luck. On Mon, 21 May 2001 [EMAIL PROTECTED] wrote: Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
secure connection (SSL/SSH tunneling) with windows client
Hi, I know this has been discussed a lot. I did read the mail archive and found lots of interesting info. Although I have a problem. We're developing a windows software that has to exchange sensitive data with a mySQL server. I read about implementing a SSH tunnel. It works well, although I have not found a free ssh client for windows. Even if I did, it would not be really helpful as we don't want to explain to our users they have to install a third party software that does IP tunneling in order to transmit data securely. Any suggestions? Even if SSL support was added to mySQL, I guess I'd still have to wait for SSL support in the client libs we use on windows (ZeosLib)... I am ready to encrypt every sensitive fields in the database, although I am wondering if the username and password will be transferred in plain text. I've seen somewhere that it isn't, but what kind of security/encryption is used and can we consider it safe? Any suggestions greatly appreciated. Cedric - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
unaunthenticated user?
Hi~~~ My SHOW PROCESSLIST's output | 22 | unauthenticated user | 10.169.xxx.xxx || Connect | | login | what 'unauthenticated user' means? who is he? anonymous user? Thank you for your advanced answer! database --MIME Multi-part separator-- - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Telnet into MySQL
Okok, my bad!! What I meant to say was that I needed a Telnet program with SSH so that I could log into the shell of my web hosting provider and thereby access MySQL from shell. At 05:46 PM 5/21/2001 -0500, you wrote: At 4:04 PM -0600 5/21/01, [EMAIL PROTECTED] wrote: Any good ones for the Windozes version..When I use just regular ol Telnet I get Smiley and clovers and hearts and the version. That's exactly why you don't Telnet to the MySQL server. You're seeing information that's part of the binary client-server protocol. Use the mysql program instead. Cheers -Original Message- FROM: Eric Fitzgerald TO: Angerer, Chad, 'Tim Thorburn', [EMAIL PROTECTED] DATE: Mon 5/21/01 15:58 SUBJECT: Re: Telnet into MySQL I really prefer SecureCRT from VanDyke software myself. Perfect blend of features and simplicity for my needs. It has a shareware version that does expire, but the license is cheap for it. Go to www.vandyke.com and download the shareware version to give it a try. - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: 'Tim Thorburn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:58 PM Subject: RE: Telnet into MySQL go to www.ssh.com .. I beleieve there a few nice clients there. Chad -Original Message- From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Telnet into MySQL Hello, Can someone here recommend a good Telnet program (with SSH) that I can use to connect to my servers MySQL database? Preferably something shareware/freeware - but if it must be purchased, I'm not against that. Thank you -Tim - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Paul DuBois, [EMAIL PROTECTED] - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: MYSQL performance question
Shane Anderson wrote: I would like to know the limitations of Mysql with extremely large tables. I need to store 20+ million records. Each record would contain only 4-6 fields and would not be longer than 128 bytes of information. The records could be divided among several tables, but at what size is the performance hindered enough to need to split records between several smaller tables? Any information leading to an optimal solution would be greatly appreciated. MySQL doesn't have a real limitation on the # of records, but I speak only from 1/2 million record table experience. But there is a point to that, I split my tables to have no more than that number because I don't want to take my system offline for very long if I want to add an index, or recover my database from a server crash. MERGE tables might allow you to break up your large tables nicely. But what I'm saying is true for any database, that if you have 20 million rows, your database maintenance window has to be a lot bigger, so while the query speed may be great on myisam with 20 millions rows, your DBA ( or you? ) may be none too happy when adding that new index. Comparing Oracle vs. MySQL myisam tables, MySQL will save disk space, and provide you with much faster queries, but you have to be aware of the table locking issues if you are doing updates/inserts/deletes mixed with reads. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: Fastest query ?
Jocelyn Fournier wrote: Hi, I wonder which of the following queries is faster : $result=mysql_query(SELECT lastauteur FROM forum ORDER BY date DESC LIMIT 1); or : $max=mysql_query(SELECT max(date) FROM forum); list($max)=mysql_fetch_row($max); $result=mysql_query(SELECT lastauteur FROM forum WHERE date='max'); (column date is declare as datetime, and is a non unique index) I'd bet the all-in-one solution behind door #1. SELECT lastauteur FROM forum ORDER BY date DESC LIMIT 1 # very elegant If not, I'd use explain on the select to see whether it's picking up your index on date. When it comes down to it, doing your own benchmark of each method will always be better than what anyone might think. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: copy from one db's table to another
Jeff Shipman - SysProg wrote: I have two databases that have identical table structures. I would like to copy all data from the 'tickets' and 'notes' in one db to the 'tickets' and 'notes' field in the other. How could I do this? You could try the lock/flush strategies employed by the script mysqlhotcopy, and copy the raw data files at the OS level. You could also try this SQL: # uncomment if you are purging first # delete from dest.notes; insert into dest.notes select * from source.notes; --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: my sql and memory--A confusing issue for a newbie
VVM Ravikumar Sarma Chengalvala wrote: Hi, 1. How much memory does mysql allocate by default to a database?Any default table wise memory limitations as well? Its doesn't allocated very much by default ( 10M ? ), and there is no per table memory allocation. 2. Is mysql's memory management and Oracle's memory management similar?Or altogeather different? They both have things like key buffers sort buffers that you can explicitly size, but MySQL doesn't have a db_block_buffer kind of thing that Oracle has. Rather, it lets your OS cache the data file, which works very well in Linux just fine on WinNT. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Auto Increment
Dear All I am inputting data into a MySQL database where i have set the primary key as the ID and it is auto-incrementing. I make sure that my input file contains a null or 0 value where it should be auto- incrementing. While entering data using LOAD command, my input file had an error with the result that erroneous values were entered. I deleted them no problem. However, this disturbed the sequence of the db. Suppose, my records were at 100 and i entered data of 50 lines then my ID starts from 150 instead of 101. How can i reverse the count so that my ID starts from 101 with the good data. Thanks in advance Asaf Maruf [EMAIL PROTECTED]
Re: key_reads and opened_tables.
Larry Hotchkiss wrote: In the manual, it states if Key_reads is big, then your key_cahce is probably too small.so what exactly is BIG??? Its all about ratios, you just want a hit cache hit, so that your read_requests are a lot larger than your actual reads. | Key_read_requests| 6324| | Key_reads| 51 | 100 - 1 ratio is OK. 1000 - 1 would be better. Obvi, this database hasn't been up very long, but this ratio should only improve over time if the key buffer is large enough. Same thing for opened_tables, it states if opened_tables is big then your then your table_cache variable is probably too small. Can someone please define BIG | Open_tables | 19 | | Opened_tables| 851 | This is big, especially for the amount of action my db has seen. BUT, I call [flush tables] all the time, so that my data gets written to disk in a more persistent way ( I'm on NT, which doesn't play as nice as Linux ). You might want to see if your flush-time is set to anything, as this could be a source of closing your table, which might be a good thing anyway now and then. You probably should have your open_tables and opened_tables be in the same area if you haven't been running your database for very long ( 1 day ). --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Odd table view
Using Windoze version, latest build. My table has three fields two VCHAR and one BLOB. After inserting into the table two names and two bmp files into the blobs, worked nice thanks to the help I got from here, my table looks like this -FIRSTNAME--LAST NAME-BLOB-- ---Mike Hill bmp I did a Flush Tables and a restart but it still looks well butt ugly! It still works and I can update from the mysql or from the SQL Querry tool in MySQL. Any thoughts? Cheers Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: mysql crash continued
Hello, I am running MySQL (3.23.xx) on Linux RedHat 6.2 and plan to increase volume of data in the near future. So, I would like to know some db schema , total row and your SQL you used to protect my database. Sommai Fongnamthip At 20:56 21/5/2001 +0300, Sinisa Milivojevic wrote: Rui Barreiros writes: hi, i've upgraded mysql server with 3.23.38 from mysql, and i have the same behaviour sinisa if you have some time i could give you access to one of the machines. :/ -- WEBSOLUT - Soluções Internet Emailto: [EMAIL PROTECTED] Personal Info: http://websolut.net/people/rui.html Are tables OK ?? Corrupted tables can still crash sometimes MySQL. If they are and that query or combination of queries always crashes mysql, then please mail to the [EMAIL PROTECTED] so that we may advise you where to upload your tables and queries that always crashes MySQL. Thank you in advance. Regards, Sinisa __ _ _ ___ == MySQL AB /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic /*/ /*/ /*/ \*\_ |*| |*||*| mailto:[EMAIL PROTECTED] /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca, Cyprus /*/ /*/ /*/\*\_/*/ \*\_/*/ |*| /*/^^^\*\^^^ /*/ \*\Developers Team - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Table appearing in multiple databases
Is it possible to place the same table in multiple databases, by linking the MYD file from one database to the next? I can see obvious problems with such a technique, so I thought I'd ask here. Thanks, -- Scott F. Crosby E-Mail : [EMAIL PROTECTED] Web : http://www.skroz.net It's some kind of soft stuff. I can kick it around with my foot. -- Neil Armstrong If a cluttered desk signs a cluttered mind, of what, then, is an empty desk a sign? -- Albert Einstein Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it -- Richard Feynman What good is science if it isn't used for EVIL!? I can accept encrypted messages enciphered with Verisign or GPG/PGP. Both public keys can be found at http://www.skroz.net PGP signature
Re: Win32 installation problem...
Here is a link that I used to install MySQL on my machine running Win98 http://www.net-language.com/workshops/Default.asp?workshop=21 NOBBY - Original Message - From: Jason Rackley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 6:13 PM Subject: Win32 installation problem... Hello, I am trying to install mysql on my Windows 98 box as a standalone. I would like to work on my computer only, testing, etc before sending stuff to my server; therefore I would like to have a version of mysql that runs independently on my win98 box, probably along with Apache once I get the mysql daemon to run. Here's what happened: I installed mysql, then went to the command line From C:\mysql\bin\ I entered mysqld I got this error: 010521 error Warning: listen( ) on TCP/IP failed with error 0 can't initialize Innodb as 'Innodb_datafile_path' is not set' I also tried mysqld --standalone from the same prompt and got the same error. I got the same version to run on my WINME laptop no problem, but not on my win98 box. Any ideas? Your help would be much appreciated. thanks in advance, jason - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: MYSQL performance question
limitation about space and speed according to DBMS featuring. since MySQL still have not full SQL 92 feature (transaction, sub select... I think) make it eat a fewer space than other DBMS (oracle or informix) and it can speed up because it did not need to handle more condition. I did not know when MySQL support all today lack function in version 4, How many disk space and ram will require to handle more data? Sommai Fongnamthip At 18:52 21/5/2001 -0700, Joshua Chamas wrote: Shane Anderson wrote: I would like to know the limitations of Mysql with extremely large tables. I need to store 20+ million records. Each record would contain only 4-6 fields and would not be longer than 128 bytes of information. The records could be divided among several tables, but at what size is the performance hindered enough to need to split records between several smaller tables? Any information leading to an optimal solution would be greatly appreciated. MySQL doesn't have a real limitation on the # of records, but I speak only from 1/2 million record table experience. But there is a point to that, I split my tables to have no more than that number because I don't want to take my system offline for very long if I want to add an index, or recover my database from a server crash. MERGE tables might allow you to break up your large tables nicely. But what I'm saying is true for any database, that if you have 20 million rows, your database maintenance window has to be a lot bigger, so while the query speed may be great on myisam with 20 millions rows, your DBA ( or you? ) may be none too happy when adding that new index. Comparing Oracle vs. MySQL myisam tables, MySQL will save disk space, and provide you with much faster queries, but you have to be aware of the table locking issues if you are doing updates/inserts/deletes mixed with reads. --Josh _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
mysqld got signal 11;
Hi, I am running mysql 3.23.33 getting this error about once a day causeing mysql to restart mysqld got signal 11; The manual section 'Debugging a MySQL server' tells you how to use a stack trace and/or the core file to produce a readable backtrace that may help in finding out why mysqld died Attemping backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong stack range sanity check, ok, backtrace follows 0x400737c6 0x80ff2af 0x80ff1e1 0x8101227 0x80e4873 0x80e45b8 0x80dd605 0x80c3265 0x80c72bf 0x80c2675 0x80c1cde stack trace successful, now will try to get some variables. Some pointers may be invalid and cause dump abort thd-query at 0x81f9bf0 = SELECT * FROM hyperseek_links WHERE ID in(988779528,988588937,988779473,988599648,988630588,988634546,988 600011,988613411,988613424,988605698,988614258,988614259,988613615,988619035 ,988616328,988596036,988599643,988613419,988635422,98862 2151,988627434,988613538,988627431,988622188,988613415,988621976,988592381,9 88636427,988613413,988631044,988623929,988614599,9886231 05,988635148,988595545,988597946,988610251,988616059,988627430,988608473,988 598139,988627429,988611026,988598120,988625124,988634377 ,988627427,988604205,988629277,988631289,988612742,988592490,988635848,98862 8639,988593015,988611041,988589630,988593784,988593696,9 88590456,988590457,988610004,988609853,988609428,988628676,988625092,9885967 10,988614174,988611930,988628208,988628684,988589448,988 634777,988631086,988627424,988589395,988629406,988593093,988627423,988605901 ,988619264,988589911,988624763,988610330,988588752,98863 3204,988605807,988627421,988613695,988626494,988613013,988606490,988600691,9 88627420,988628061,988614780,988592519,988594515,9 thd-thread_id = 7951 successfully dumped variables, if you ran with --log take a look at the details of what thread 7951 did to cause the crash. In some cases of really bad corruption, this value can be invalid Please use the information above to create a repeatable test case for the crash, and send it to [EMAIL PROTECTED] Number of processes running now: 2 010521 19:14:19 mysqld restarted /usr/local/mysql/libexec/mysqld: ready for connections 010521 19:59:34 Aborted connection 1646 to db: 'search' user: 'search' host: `203.111.10.101' (Got an error reading communication p ackets) then ran (note this was on a previous error, I included the above error as it was the most informative in the log file): root@netmsc1:/tmp# resolve_stack_dump -s /tmp/mysqld.sym -n mysql.stack Cannot determine thread, ebp=0xb14c, backtrace may not be correct stack range sanity check, ok, backtrace follows 0x400737c6 _end + 938024678 0x40072d66 _end + 938022022 0x80be19a create_new_thread__FP3THD + 606 0x80be61b handle_connections_sockets__FPv + 1015 0x80bdd90 main + 2412 0x400f5577 _end + 938556567 0x808891d _start + 33 New value of ebp failed sanity check terminating backtrace Some more info from mysqlbug: System: Linux netmsc1 2.4.4 #1 Tue May 15 13:40:14 /etc/localtime 2001 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 May 15 08:17 /lib/libc.so.6 - libc-2.1.3.so -rwxr-xr-x 1 root root 1013224 Mar 21 2000 /lib/libc-2.1.3.so -rw-r--r-- 1 root root 20266642 Mar 20 2000 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Mar 20 2000 /usr/lib/libc.so Configure command: ./configure --prefix=/usr/local/mysql critical Thanks and Regards, Steve Reed Network Administrator Oznetwork Pty. Ltd. 8233 1900 142 Phillip St Sydney NSW 2000 - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: AIX segmentation fault with PHP, Apache and MySQL
Thanks everyone - it now all goes ! The problem I think was due to using a precompiled binary release of Apache that (I guess) had an exports file pointing to a library in the wrong place... Anyway building everything from sources did the job. Dave At 23:36 20/05/01 -0400, you wrote: Hmm. Can you be a bit more specific how you upgraded your Apache? Typically I've had good luck with building the new Apache first, then building PHP (using the new apxs that it installs). You are installing these modules as .so, correct? And building everything from source code? The only thing I can think of here is that your earlier Apache had a broken lib somewhere and the new installs are not replacing it.. Z On Sunday, May 20, 2001, at 10:15 PM, Dave Brooks, BCS Systems wrote: MySQL 3.23.38 made no difference Well we now have Apache 1.3.19 and PHP 4.0.5 but still the same problem... Am about to upgrade MySQL to 3.23.38 to see if this changes things, but feel this is clutching at straws... Thanks, Dave On Thursday, May 17, 2001, at 08:59 AM, Matthew P. Marino wrote: Apache is up to 1.3.17 at least. I would update apache and see what gives. PHP4 wasn't coded until Apache 1.3.15 was out. Dave Brooks, BCS Systems wrote: Hello, I am trying to port a PHP/MySQL application that happily runs under Linux across to an AIX box. We have MySQL is running under AIX - using mysql we can create tables, insert rows, etc and even access data via a C program. PHP is running as an Apache module - a simple phpinfo() works. If our PHP scripts are invoked when mysqld is not active we get a database error Can't connect to server, as to be expected. If however, mysqld is started and then we attempt our script, Apache reports a segmentation fault (as shown in its error logs) and the client browser gets an unexpected network error. Any ideas, debugging clues, etc would be much appreciated. AIX 4.3.3 Apache 1.3.12 (IBM HTTP Server) MySQL 3.23.32 PHP 4.0.4 pl 1 Many thanks, Dave Brooks - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail mysql-unsubscribe- [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail mysql-unsubscribe- [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail mysql-unsubscribe- [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail mysql-unsubscribe- [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Re: MYSQL performance question
I'm currently running MySQL with tables that contain ~10 million rows. Each row has 50 columns and the table has 27 indexes. The data size of what you're describing doesn't seem so big. There are some arithmatics in the MySQL manual on how much disk space is used per row. If the tables you have are more or less read-only, i.e. if they're loaded once and then are just being used, have a look at compressing them with myisamchk. My experiences with MERGE tables have not been satisfactory if you want to run queries on them. Although the total size of the indexes was the same as in a single table the response times were orders of magnitudes different. You should write some test scripts and test the performance of the queries you're going to run before you go down that path. Although I don't think that you'll hit the 2 GB file size limit for the data file you might keep an eye on that. At least for the stock Linux 2.2.x kernels the limit exists. RedHat started to provide the -enterprise kernels which contain the large file system extensions. Shane Anderson wrote: I would like to know the limitations of Mysql with extremely large tables. I need to store 20+ million records. Each record would contain only 4-6 fields and would not be longer than 128 bytes of information. The records could be divided among several tables, but at what size is the performance hindered enough to need to split records between several smaller tables? Any information leading to an optimal solution would be greatly appreciated. Thanks Shane Anderson Software Developer Web Accessibility in Mind - http://www.WebAIM.org - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- Frank Schröder [EMAIL PROTECTED] AirFlash Engineering Europe www.airflash.com AirFlash Inc. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php