Re: Printing

2007-05-08 Thread Stephen Cook
I think that offering some sort of feedback other than result sets would be nice for debugging. Peter Brawley wrote: >I hope this isn't a silly question, or something covered in a FAQ. . . >but is there any reason to not have at least some primitive print >formatting commands in MySQL? Or a

Re: Enforcing Data Format

2007-05-03 Thread Stephen Cook
I'd go the other way and use a trigger to validate the data, and roll back the transaction if it isn't in valid format (assuming you are using transactions). This way, ANY app that puts data in that field gets the validation. An error in an application or typing by someone who has direct table

Re: Using replace with New Lines

2007-03-27 Thread Stephen Cook
I always go with REPLACE(REPLACE(STRING, '\n', ''), '\r', ''), since depending on where your data came from there may be one or the other, or both. Although if there is a shorthand/more efficient way I'd love to hear it. [EMAIL PROTECTED] wrote: Ok.. I found the problem.. I needed to add a \

Re: SPAM ?

2007-03-25 Thread Stephen Cook
http://lists.mysql.com/[EMAIL PROTECTED] that link ought to help you. Jacques Brignon wrote: Hi, I keep receiving this message by several dozens each day, how can this be stopped? Regards Jacques -Message d'origine- De : Jerry Schwartz [mailto:[EMAIL PROTECTED] Envoyé : jeudi

Re: leading the technological bandwagon

2006-12-20 Thread Stephen Cook
You should send that one to The Daily WTF... http://thedailywtf.com/ Jay Blanchard wrote: [snip] I recently last week Had and experience with an Very small Company, where as they had around 15 Machines all hooked "Star topology" and a central iis ASP Web server that only showed the date, and a

Re: Grant privs to multiple tables at once?

2006-10-13 Thread Stephen Cook
You can use the INFORMATION_SCHEMA.TABLES view to generate the GRANT statements for you. Write a query along these lines: SELECT CONCAT('GRANT SELECT ON test.', TABLE_NAME, ' to ''foouser'';') FROM INFORMATION_SCHEMA.TABLES WHERETABLE_SCHEMA = 'test' AND TABLE_NAME LIKE 'foo_

Re: Outputting text in a

2006-08-23 Thread Stephen Cook
There apparently isn't a PRINT or RAISERROR function like there is in SQL Server, I've asked about this before. I created a stored procedure to dump debug text into a table (which is timestamped) and another to output the rows in there in a SELECT. It isn't the same but it's something. Dan

Re: PRINT statement?

2006-05-13 Thread Stephen Cook
-SQL ones since that is what I get paid for). I'm not here to discuss people's religious beliefs, I'm here to learn what MySQL can and can not do. Peter Brawley wrote: Stephen Cook wrote: There are such things as extensions to the standard, and many languages besides BASIC tha

Re: PRINT statement?

2006-05-12 Thread Stephen Cook
There are such things as extensions to the standard, and many languages besides BASIC that have the ability to output a character string. No need to be snippy. I will look into the --silent option, thanks! Peter Brawley wrote: Stephen Cook wrote: I appreciate it but SELECT isn't quite

Re: PRINT statement?

2006-05-11 Thread Stephen Cook
of the columns is too narrow and some of the information is truncated. For example the value shown for the second variable name is shown as "birthdate_of_youngest_le" and the VALUE of that variable is shown only as "1990", NOT the correct value, which is "1990-05-11"

Re: PRINT statement?

2006-05-10 Thread Stephen Cook
I've started using the SELECT with no other clauses but I am still curious about a PRINT-like command. It is for SQL scripts. Rhino wrote: - Original Message - From: "Stephen Cook" <[EMAIL PROTECTED]> To: "MySQL List" Sent: Sunday, May 07, 2006 3

PRINT statement?

2006-05-07 Thread Stephen Cook
Is there a statement similar to PRINT in T-SQL (MicroSoft SQL Server)? It would be handy to debug some scripts. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Accountability with MySQL

2006-03-15 Thread Stephen Cook
A commonly used example (at least at my last 3 jobs) would be a table of demographics for people (whether they be employees, clients, whatever). You can have one table and allow NULLs for some of the fields (id, LastName, FirstName, MiddleInitial, Title, NameSuffix, AddressLine1, AddressLine2,

Re: DROP DATABASE doesn't actually drop the database?

2006-03-13 Thread Stephen Cook
; > You then can manually update the dump files in a text editor. > > mysql db_name < db_name.sql > > recreates the dumped data with all tables. > > Andy > > > Stephen Cook wrote: > > I am scripting out the creation of a database so I can make changes and then &g

DROP DATABASE doesn't actually drop the database?

2006-03-13 Thread Stephen Cook
I am scripting out the creation of a database so I can make changes and then run the script to generate a clean copy (by running it in MySQL Query Browser). The script DROPs all the tables, then CREATEs them again along with all the indices and whatnot. However, if I run the script after having r

Re: Strange behavior with integer unsigned type...

2005-12-30 Thread Stephen Cook
Maybe it is because I am a programmer, but (unsigned) 0 - 1 = 4294967295. What's the big deal? Gleb Paharenko wrote: Hello. That seems like a bug: http://bugs.mysql.com/bug.php?id=14543 Marko Domanovic wrote: mysql 5.0.15-standard UPDATE SET = -1 when the is 0 gives me

Re: [OT] SPAM

2005-12-15 Thread Stephen Cook
I got one from mysql@lists.mysql.com, and one from [EMAIL PROTECTED] And my filters remove anything that isn't from one of the mailing lists I subscribe to. Daniel Kasak wrote: Stephen Cook wrote: What's the deal with SPAM on the list? I don't see any. Maybe my spam f

[OT] SPAM

2005-12-14 Thread Stephen Cook
What's the deal with SPAM on the list? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Cannot start MySQL under Win2000

2005-12-02 Thread Stephen Cook
You must not install 5.0 over 4.1, put it somewhere else. Also, instead of naming the service "MySQL" both times, call it something else (i.e. "MySQL41" and "MySQL50"). If you use the Windows installer distribution, it is one of the options; if you are doing it by hand then you already know ho

Re: Windows - logging into MySQL

2005-11-30 Thread Stephen Cook
His answer was correct, and somewhat politer than "RTFM". As for finding your "own damn answers", see again Mr. Green's original reply. Beauford wrote: Sorry, but I don't take kindly to idiots. I don't care if he's gods gift to MySQL. If there isn't enough info for him to give an informed an

Re: MySQL vs XML

2005-07-30 Thread Stephen Cook
MySQL is a relational database. XML is a text file. the biggest difference is that MySQL will let you organize, sort, match/link (joins), and otherwise manipulate the data you have. XML is just text with tags in a heirarchy; anything other than reading it in a text editor will take programming

Re: Which Engine to use...

2005-07-21 Thread Stephen Cook
it is because of the dollar sign that it works so much quicker. Scott Hamm wrote: I'm now trying to learn engines in MySQL. When I migrated from M$ SQL to MySQL to learn the migration process and executed the following: SELECT * FROM QA LEFT JOIN Batch ON Batch.QAID=QA.ID LEFT JOIN QAErr

Re: Storing huge amount of binary data

2005-07-11 Thread Stephen Cook
Per Jessen wrote: 3. Again, as you can understand, I want to minimize the cost here. If you don't think I can use mysql, do you think Microsoft SQL server is good enough for this task? I don't think so, no. what are you basing this on? SQL Server is a truly great database package, don't l

Re: offer a solution ?

2005-07-02 Thread Stephen Cook
depending on what you use this information for, you might want to keep two tables, one with the current information, and one of the history. it would keep the "current" one relatively small, but allow for looking up historical data if necessary. nephish wrote: Hey there, i have been messing

optimize table - OK to abort?

2004-05-31 Thread Dennis T Cook
I've been running OPTIMIZE TABLE on a MyISAM table with an index on two varchar type columns. The process status shows as "Repair with keycache". The table has 73 million rows. OPTIMIZE TABLE has been running for several days with constant disk activity but low cpu usage and no way to estimate wh

Record Change Date

2004-04-01 Thread Jeff Cook
record last changed. Any ideas would be very helpful. Thank You Jeff Cook Network Administrator Whatcom Educational Credit Union -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Questions about HEAP tables

2003-03-06 Thread Justin Cook
Hi All, After googling around and checking out the archives I still haven't found the exact answer to my following question: First off the goal is to give a family multiple quotes from different companies for insurance based on several factors: age, length of coverage and coverage limits. All the

Install problems on DEC OSF1 V5.0 1094 alpha

2003-02-26 Thread cook
How-To-Repeat: Easy to repeat. simple follow the instructions in INSTALL. Similar problems show up when I try to compile and install the source code as well. >Fix: >Submitter-Id: >Originator: Brenda K. Cook >Organization: >MySQL support: [none | licence | ema

What is faster?..

2003-01-31 Thread Justin Cook
Hello- I am in the early stages of setting up a website running mysql. The idea is for the user to be able to compare insurance policies and choose the best one. I want to give them the option of choosing several insurance plans and compare them side by side. My question is would it be faster/more

Sun Solaris 2.7 Sparc static binary of MySQLGUI 1.6

2002-10-21 Thread Bob Cook
When I tried to execute "Sun Solaris 2.7 Sparc static binary of MySQLGUI 1.6", I get the error that it can't find, libstdc++.so.2.10.0. I thought this was suppose to be a statically linked executable? I can fine the ".a" file but not the ".so" file. - Bob --

Set up help needed

2002-02-05 Thread WG4- Cook, Janet
tions as to how to set them up or get the connection > going. > > Any help is appreciated > > Janet Cook > CSDD > NEC Australia Pty Ltd > Ph +613 9264 3813 > Email: [EMAIL PROTECTED] > > - Bef

Bug Report

2001-12-24 Thread Michael Cook
CC=gcc is an environment variabe for me): ./configure --prefix=/usr/local/mysql and `CC=gcc CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors - fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql - -with-low-memory --with-extra-charsets=complex --enable-as

ColdFusion, talking to a mySQL database, on Solaris 7

2001-08-16 Thread Alex Cook
Hey all, I'm fighting to get ColdFusion 4.5.1 SP2 to talk to a mySQL DB on Solaris 7 using unixODBC/myODBC. anyone here tried this? I've gotten to the point where I can see the myODBC mySQL Driver in the CFIDE/adminstrator ODBC screen. I've added various entries to the CFHOME/odbc/odbc.ini, CFHO

Error with mysql_install_db

2001-08-15 Thread Alex Cook
I'm attempting a source installation of mysql-3.23.40 on a Solaris 7 SPARC server. the compile process completed without any errors. After reading the various docs, I located the mysql_install_db script and executed it. When running the mysql_install_db script, I recieve the following error

LOAD tblname FROM MASTER (slave)

2001-08-03 Thread Ollie Cook
in case that makes any difference. Ollie -- Oliver CookSystems Administrator, ClaraNET [EMAIL PROTECTED] 020 7903 3065 - Before posting, please check: http://www.mysql.com/manual.php (the manual)

Error during make process on mySQL 3.23.40

2001-08-03 Thread Alex Cook
ok, I'm running a Solaris 8 SPARC box, and I configure with: ./configure --enable-thread-safe-client --enable-shared --prefix=/usr2/mysql --enable-user=acook I then run make, use GNU make, and get: ar cru libreadline.a readline.o funmap.o keymaps.o vi_mode.o parens.o rltty.o co mplete.o bind.o

Replication

2001-07-17 Thread Oliver Cook
Is this still true in the latest version of MySQL? Is this behaviour by design? Cheers, Ollie -- Oliver CookSystems Administrator, ClaraNET [EMAIL PROTECTED] 020 7903 3065 - Before posting, please check:

Re: Running a private copy of mysqld

2001-04-22 Thread Oliver Cook
/to/your/mysql/source/scripts directory Ollie -- Oliver CookSystems Administrator, ClaraNET [EMAIL PROTECTED] 020 7903 3000 ext. 291 - Before posting, please check: http://www.mysql.com/manual.php (the manu

Limiting Connections (per host)

2001-04-20 Thread Oliver Cook
Is there any way to limit connections to MySQL server on a per-host basis? There are the: max_connections and max_user_connections options for mysqld on the command-line, but I cannot see any way of limiting them on a per-host basis? Is there any way? Thanks, Ollie -- Oliver Cook

[replication] adding new slaves

2001-04-20 Thread Oliver Cook
>From my reading of the manual it seems that for every time a new slave it to be added, the master will need to be locked while the snapshot is taken. Is this really necessary? Can another slave be somehow setup by taking the data from another slave instead, thereby avoiding downtime on the maste

Re: Mysql over NFS

2001-02-06 Thread Nathan Cook
TIA! .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "Peter Skipworth" <[EMAIL PROTECTED]> To: "Nathan Cook" <[EMAIL PROTECTED]> Cc: <[

Mysql over NFS

2001-02-06 Thread Nathan Cook
Cook [ [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]&

Re: Load Balancing.

2001-02-01 Thread Nathan Cook
down then machine B will take all requests and then re-sync when machine A comes back online. It seems like this is impossible without some sort of two way replication available. Any input is welcome. Thank You! .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administr

Load Balancing.

2001-01-30 Thread Nathan Cook
It seems like I have seen somewhere that load balancing and fail-over-services are available for MySQL, to share the load and mirror the data between two machines. Is this possible and if so where can I read more about it? Thank You, .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Net

Select not working selectively

2001-01-24 Thread Nathan Cook
LIMIT 0,10 I get the error: The table 'SQL4a5b_0' is full, Does this error mean a temporary table is full? What can I do to get this query to work. Thank You P.S. > The query works on an similar table with 10 fields 10,000 records. .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Syst

Re: mySQL vs Oracle

2001-01-22 Thread Nathan Cook
My bad... They aren't scheduled to come out until 3.24. Sorry. .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "tc lewis" <[EMAIL PROTECTED]>

Re: mySQL vs Oracle

2001-01-22 Thread Nathan Cook
Note: As of version 3.2.3gamma Mysql Supports Sub-Selects. .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "Scott Gerhardt" <[EMAIL PROTECTED]>