RE: $Variables and Select statements

2002-12-18 Thread Basil Hussain
code, PHP is only looking for an array element called '$wk', which doesn't exist! In future, may I suggest you that post questions like this to the PHP mailing list, as this is nothing to do with MySQL. Regards, Basil Hussain ---

RE: MySQL Secure Replication

2003-01-15 Thread Basil Hussain
believe CIPE comes as standard with RedHat 7.x and above. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] (filter bait: sql, query, queries, smallint) --

RE: Clustering MySQL was: Re: Best hardware for a very large MySQL server? looking at x86

2002-04-05 Thread Basil Hussain
o protect against data loss in the event of a server crash) and a UPS option. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] (Filter bait: SQL, query, MySQL) --

RE: Problems with UPDATE in v3.23.49 (is this a bug)

2002-04-05 Thread Basil Hussain
ta luck. May I quote from the manual: "The TIMESTAMP column type provides a type that you can use to automatically mark INSERT or UPDATE operations with the current date and time. If you have multiple TIMESTAMP columns, only the first one is updated automatically." That last sentence may b

RE: Another question of Date.

2002-04-11 Thread Basil Hussain
LECT dob FROM yourtable WHERE MONTH(dob) = MONTH(NOW()) AND DAYOFMONTH(dob) = DAYOFMONTH(NOW()); And, to see how old a person is, given their date of birth, you would do something like this: SELECT YEAR(NOW() - YEAR(dob) AS age FROM yourtable; Hope this helps.

RE: MySQL / Firewall

2002-05-27 Thread Basil Hussain
e. So, you need to specify a source port of 'any' instead of 3306. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] - Before posting, p

RE: Is Table Name 'PURGE' ALLOWED

2002-06-11 Thread Basil Hussain
h ` when you use it" So, your query would become: SELECT * FROM `purge` LIMIT 0,50 Hope that helps. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] ---

RE: REPAIR TABLE question...

2001-07-17 Thread Basil Hussain
e keys." I agree that this section of the manual could do with some clarification. It only seems to talk about re-creating indexes... Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] --

RE: terminal display width?

2001-07-17 Thread Basil Hussain
*** 2. row *** category_code: 0 agent_code: 14562 *** 3. row *** category_code: 0 agent_code: 44114 3 rows in set (0.00 sec) This has the benefit of long text fields being wrapped on your display. Regards, Basil Hus

RE: database server upgrade

2001-07-20 Thread Basil Hussain
u go for replication you should make sure you're running at least 100Mbps between your MySQL servers. (BTW, if in a closed environment, running 100Mbps to the clients might help also.) Looking at option #8, you may see quite a large performance boost if you go for InnoDB tables and your query l

RE: database server upgrade

2001-07-20 Thread Basil Hussain
that particular table to consolidate empty gaps. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] - Before posting, please check: http://www.mysq

RE: database server upgrade

2001-07-20 Thread Basil Hussain
ld make sense. All your read/write clients could also read in a distributed fashion but would write only to the master. If, however, you employed a '2-way' or 'many-masters' topology then the issue of distributing updates occurs. However, '2-way' replication has whole load of i

RE: database server upgrade

2001-07-23 Thread Basil Hussain
can get a good idea of how much space is being wasted. In this case, it's: (234 / 97128) * 100 = 0.24% This is way less than one percent, so in this case it's no problem. But, I reckon that if you have more than several percent free space (say 10%) then you definitely need to optimise.

RE: mySQL, MS SQL and a push subscription?

2001-07-31 Thread Basil Hussain
install MyODBC on to the MS-SQL NT server then I'm sure MS-SQL will be able to export any data required via this ODBC connection to your MySQL server. Check out MyODBC here: http://www.mysql.com/downloads/api-myodbc.html Regards, Basil Hussain --- Interne

RE: Capture "SHOW VARIABLES" to fie

2001-08-01 Thread Basil Hussain
rguments (including alternative output formatting) consult the application's help, by entering: $ mysql --help Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED]

RE: Convert Outlook into MySQL

2001-08-06 Thread Basil Hussain
field in Outlook you're referring to, but as far I can tell, all the fields that are present in the Contacts store are exported to the text file. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] --

RE: INET_ATON

2001-08-07 Thread Basil Hussain
"Changes in release 3.23.15" there is this: * Added functions INET_NTOA() and INET_ATON(). So, you need to upgrade your MySQL before you can use these functions. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-

Re: How to get Query Execution Time

2001-02-13 Thread Basil Hussain
for a resolution of only whole seconds, by using time() instead. Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the

Re: WISHLIST

2001-02-14 Thread Basil Hussain
options like this (such as paging, outputting to a file, etc.). Just type "help" for details of all available commands. Regards, ---- Basil Hussain ([EMAIL PROTECTED]) - Bef

Log File Reporting

2001-02-14 Thread Basil Hussain
ial bit of info? Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To re

Re: phpMyAdmin

2001-02-14 Thread Basil Hussain
in/ Regards, ---- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To

Re: MySQl with SSH

2001-02-19 Thread Basil Hussain
client to set up the forwarding without logging in for a command session. This is how I do it: ssh -2 -l username -N -L 12345:server.foo.com:3306 server.foo.com Regards, Basil Hussain ([EMAIL PROTECTED]) ---

Re: [problem with creating a user table ]

2001-02-20 Thread Basil Hussain
so, rather than giving a terse syntax error. Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http:/

Oddity with date subtraction - bug?

2001-02-22 Thread Basil Hussain
rong! Do I have a bug here? Or is this not how I should be subtracting/adding dates? I'm using version 3.23.32-log, intstalled from official MySQL RPMs. Regards, -------- Basil Hussain ([EMAIL PROTECTED]) -

Re: Oddity with date subtraction - bug?

2001-02-22 Thread Basil Hussain
able for subtracting/adding dates, so I suppose I'll have to resort to something ugly like converting each date to a timestamp before subtracting. Regards, Basil Hussain ([EMAIL PROTECTED]) - Before

Re: RDBMS question on coding "expanding series-like fields"

2001-02-27 Thread Basil Hussain
s 'set' has a limit on > how big the set can get.I would like to have the possibility of data > expansion as needed. Enum column types are only ever useful for fields that will only ever contain one of a fixed set of values - like "Yes" and "No", for examp

Re: Maximum Password length?

2001-03-01 Thread Basil Hussain
of passwords that are planned to be used. The only likely limit I can think of would be that of any buffers in the MySQL query parsing routines or those in the code for the PASSWORD() function. Any MySQL developers care to comment on this, just out of interest? Regards, --

Re: Calculated Field

2001-03-01 Thread Basil Hussain
e fly, within the SELECT statement that retrieves your data. You don't need to add any fields to your table to do this. Here's an example: SELECT ROUND((SessionTime + 30) / 60) AS Minutes FROM YourTable Regards, -------

Re: yes/no

2001-03-02 Thread Basil Hussain
al: http://www.mysql.com/doc/E/N/ENUM.html Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the l

Re: yes/no

2001-03-02 Thread Basil Hussain
e or zero and for it to be displayed as true/false, then you won't be able to do that. MySQL will only return the actual value stored in the field - it doesn't interpret anything for you. However, you could resort to some trickery with IF() statements in the SELECT query to get this, b

Re: turn of column headings

2001-03-06 Thread Basil Hussain
You just need to start the client with a certain parameter. The '--skip-column-headers' argument (or something like it - I forget the exact name) should do what you want. Type 'mysql --help' for more exact information. Regards, ----------

Tuning thread_cache_size variable

2001-03-07 Thread Basil Hussain
an efficient thread cache? * Should I be aiming to get my new threads per connections figure as low as possible? * What effect on memory usage would having a larger thread cache make? This is all on a RedHat Linux 6.2 server with 512Mb RAM and MySQL 3.23.32. Regards, -

Get date from week number?

2001-03-08 Thread Basil Hussain
ng that could be worked on for forthcoming revisions of MySQL - making sure that all currently present date/time functions have an equal function for converting back to a date or time data type. Regards, -------- B

Re: Bug

2001-03-09 Thread Basil Hussain
Type 'help' within the client for details on this and other handy commands. However, if you're talking about a third-party client application or about trying to do this from a PHP script (via the mysql_query() function) then I doubt it will be possible - definitely not possible in the case

FW: potential vulnerability of mysqld running with rootprivileges (can be used as good DoS or r00t expoloit)

2001-03-20 Thread Basil Hussain
) Regards, -------- Basil Hussain ([EMAIL PROTECTED]) -- From: "Pavlov, Lesha" <[EMAIL PROTECTED]> Organization: NN.ru Reply-To: [EMAIL PROTECTED] Date: Sun, 18 Mar 2001 21:32:37 +0300 To: [EMAIL PROTECTED] Subject: potential vulne

Re: tmp_disk_tables vs. tmp_tables

2001-03-21 Thread Basil Hussain
increase the key_buffer size, if you're processing large amounts of records in your tables though (I'm talking about millions of records here, though). Regards, Basil Hussain ([EMAIL PROTECTED]) -

Re: importing data from FileMaker Pro to MySQL

2001-03-26 Thread Basil Hussain
UNIX too) and import the file using the LOAD DATA statement in the MySQL command-line client. Regards, ---- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http

Question about low priority deletes

2001-03-29 Thread Basil Hussain
and (mainly) insert records in a timely manner. Can anyone offer a precise explanation of what DELETE LOW_PRIORITY facilitates? Regards, -------- Basil Hussain ([EMAIL PROTECTED]) ---

Re: Delete Again?

2001-03-30 Thread Basil Hussain
t;, $www_domain_Array['Email']); if($a < $www_domain_rows - 1) { $inlist .= ", "; } This will seperate all of them by commas (missing, of course, the last one). Hope this gets you going. Also, if you have any more queries about your

RE: A question about load / queries pr second

2001-09-07 Thread Basil Hussain
r spec servers (P3-1Ghz dual-cpu, 512Mb RAM, 3x36Gb SCSI RAID5). Maybe I should try out mysql-super-smack and see what kind of numbers it turns up. :-) Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED]

Trying to build MySQL super-smack - failing...

2001-09-07 Thread Basil Hussain
ead the comment about gcc in the INSTALL file, but I thought making sure that I have the latest version of gcc (gcc-2.96-85), rather than downgrading to 2.95, would suffice. Is this the problem, or something else? Regards, Basil Hussain --- Internet Developer,

RE: A question about load / queries pr second

2001-09-07 Thread Basil Hussain
p_table_size=64M set-variable = table_cache=256 set-variable = thread_cache_size=16 set-variable = thread_concurrency=4 set-variable = back_log=100 set-variable = max_allowed_packet=2M set-variable = wait_timeout=240 skip-locking Regards, Basil Hussain --- Internet

RE: Broken 'even number' rounding function

2001-09-18 Thread Basil Hussain
always down, or always towards zero." So, this isn't a bug. It's MySQL just following the features of your system's C library. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] ---

RE: Table gets wiped out!

2002-10-22 Thread Basil Hussain
esh table, with no wasted space from previously deleted rows. So, you are not re-using any deleted rows at all. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] --

Re: the quick and the dead...

2001-04-11 Thread Basil Hussain
er at over 1,000 queries/sec. Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request

Merge Tables Oversight

2001-04-20 Thread Basil Hussain
any particular reason why this can't be shown, or is it just an oversight? Regards, Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysq

Re: Merge Tables Oversight

2001-04-20 Thread Basil Hussain
my server too? I still think the mapped tables should be shown in SHOW TABLE STATUS, though... Regards, Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http:/

Strange output from EXPLAIN SELECT - explanation needed!

2001-04-23 Thread Basil Hussain
e tell me what this message means? Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql

No results from query on merge table

2001-04-24 Thread Basil Hussain
d NOT NULL, impression datetime NOT NULL, click datetime, ipaddr int unsigned NOT NULL, browser char(255) NOT NULL, KEY (bannerid), KEY (impression) ) TYPE=MERGE UNION=(eventlog_11, <...many other tables...>, eventlog_81); Can anyone help me figure out what's going on

Error 1031 when altering merge table. Bug? (plus on-line manualcomment system broken)

2001-04-25 Thread Basil Hussain
UNION=(...) Notice the equals sign between "UNION" and the accompanying brackets. I would've made a comment in the manual, but the new account registration seems to be broken - you just get an "Unknown column 'country_id' in 'field l

Re: Unix_TimeStamp()

2001-04-30 Thread Basil Hussain
ndows, then I think this counts as a bug, yes? Regards, ---- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)

Re: MERGE Tables

2001-04-30 Thread Basil Hussain
lt;..lots of tables...>, > eventlog_88); > ERROR 1031: Table handler for '#sql-1f1_ea6d9' doesn't have this option My MERGE table seems to be completely screwed! Could you explain what's going on here? Is it because I'm running only version 3.23.32

Re: show table status command in MySQL

2001-04-30 Thread Basil Hussain
the actual size taken up on disk, because you have your index file and table definition file too. I think the 'Index_length' field will tell you how big your indexes are too, though. Regards, --------

Re: MERGE Tables

2001-05-01 Thread Basil Hussain
en looking at the changelog again and I notice there are some entries for 3.23.38 - is there a new release imminent? Should I wait for this, or just upgrade to 3.23.37 now? Regards, ---- Basil Hussain ([EMAIL PROTECTED])

Re: firewall

2001-05-11 Thread Basil Hussain
d to make sure that the access privileges on your MySQL server allow you to connect from the IP of the firewall. Other than that, there is nothing else you need to do. Regards, -------- Basil Hussain ([E

Corrupting Indexes! Why?

2001-05-30 Thread Basil Hussain
g problem. Any help or explanations are very gratefully accepted. Regards, ---- Basil Hussain ([EMAIL PROTECTED]) corrupt_banner_indexes.txt +--+---+--+---

Re: I'm after an mysql_info() example

2001-06-01 Thread Basil Hussain
y present in PHP 4.0.5 and above). What you'll need to do is to issue an SQL query of "SHOW STATUS" and/or "SHOW VARIABLES" (depending on which pieces of info you require) and use the relevant records from the result set given back. Regards, ---

RE: encrypt wierdness

2001-06-08 Thread Basil Hussain
ething along the lines of this should do the trick: SELECT * FROM users_table WHERE username = 'johndoe' AND passwd = ENCRYPT('secretpasswd', LEFT(passwd, 2)); Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] --

Why can't I set user variables from a SHOW statement?

2001-06-08 Thread Basil Hussain
ript would perform a query like above when it first connects and then uses the saved user-variable in all subsequent queries where a unique ID is required.) Regards, Basil Hussain --- Internet Devel

RE: User variables

2001-06-08 Thread Basil Hussain
o answer, is it mentions nothing about limits in the manual. Regards, Basil Hussain --- Internet Developer, Kodak Weddings E-Mail: [EMAIL PROTECTED] - Before posting, please check: ht

RE: [request] IP Address Functions

2001-06-25 Thread Basil Hussain
ght want to take a read of section 7.4.12, 'Miscellaneous Functions', in the current MySQL manual: http://www.mysql.com/doc/M/i/Miscellaneous_functions.html I assume you must also be using an old version of MySQL, as these functions were only added in version 3.23.15, so you should upgrade

Splitting Text Field into Table of Words?

2001-01-15 Thread Basil Hussain
ng a PHP/Perl script - but I've come up blank. Can anyone offer any ideas (or maybe solutions) for my problem? Regards, Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php

[OT] A quick note about the virus going round...

2001-01-16 Thread Basil Hussain
tten (or to see if you have unknowingly), check this out: http://service1.symantec.com/sarc/sarc.nsf/html/W32.Navidad.html There is also a fix provided by Symantec here: http://service1.symantec.com/sarc/sarc.nsf/info/html/W32.Navidad.Fix.html Regards, ---------

Re: Bug in MySQL TRIM() Function! ?

2001-01-18 Thread Basil Hussain
+ >> | foo| >> ++ >> 1 row in set (0.00 sec) If all you want to do is remove any occurance of 'foo' in a string or column value then I'd recommend you look at the REPLACE() function in the manual. Reg

Re: bug in 3.23.22-beta

2001-01-19 Thread Basil Hussain
tion. Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) T

Re: Feature Request:

2001-01-19 Thread Basil Hussain
rtical mode by terminating with '\G', rather than ';' or '\g'. But then again, this poses it's own problems with scrolling (but you could probably use the new pager command in the most recent 3.23 clients). Regards, -------

A few queries about optimising MySQL variables

2001-01-30 Thread Basil Hussain
this value? Any answers gratefully accepted! Regards, ---- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (th

Re: A few queries about optimising MySQL variables

2001-01-31 Thread Basil Hussain
right. > You didn't mention the key_buffer. If configured well, you can get a > great performance boost from it. My key_buffer is currently at 128Mb, but I'm considering upping that to 192Mb or maybe even 256Mb. Probably the former, as I don't have tables with hundereds of

Re: Lasso for SQL/Linux

2001-01-31 Thread Basil Hussain
en, you probably already know this... Regards, -------- Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://li

Idea: Automated server tuning?

2001-02-01 Thread Basil Hussain
o research everything (and of course, learn some C/C++). Regards, Basil Hussain ([EMAIL PROTECTED]) - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the lis

MySQL -> Filemaker Tip

2001-02-01 Thread Basil Hussain
like this, you simply do: SELECT field FROM table WHERE something = 'foo' INTO OUTFILE '/path/to/whatever.txt' LINES TERMINATED BY 0x1d Then just transfer it to your Mac/PC and import this text file into the repeating field of the record you desire. Et voila! Regards, -

Re: Idea: Automated server tuning?

2001-02-02 Thread Basil Hussain
sage. After it has made changes, it would (for while, at least) go into 'sit-back-and-watch' mode, in order to compare performance after the event to what it was before. If it's worse, it dynamically restores the previous config - this might partially avoid the scenario I described e

Re: Comments in a table

2001-02-02 Thread Basil Hussain
ment'. There's also lots of other extremely useful information to be gleaned from SHOW TABLE STATUS, such as the type of table and date/time of creation of last update, etc. Unfortunately, you can't tag columns with comments

Re: Should I switch to SCSI HD for mysql?

2001-02-08 Thread Basil Hussain
led RAID (i.e. by the Linux kernel), then you could go for one of the plethora of recent motherboards sporting hardware IDE RAID controllers, or one of the Promise or Adaptec PCI adapters if you don't want to change motherboards. Regards, Basil