Re: newbie..foreign key clarification

2006-07-27 Thread Chris
Grass Cake wrote: I'm still unsure about foreign keys..even after reading the doc file and Paul Dubois 3rd edition My doubt is...how much constraint is applied.( probably a bad explanation) If i have a table 'Customers' with the primary key being 'CustID' Then i have a table 'LastVisit' wi

Re: why size of table c united from table a and b are bigger than a+b ?

2006-07-27 Thread Chris
chylli wrote: I run following command : use db1; insert into db2.c select a.a, a.b, a,c, b.d, b,e ... from a left join b on (a.id=b.id); Do you have an index on a.id and b.id ? size of table a and table b is: [EMAIL PROTECTED] ls -l ../db1/a.* -rw-rw 1 mysql mysql 9230 May 10 15:41

Re: MySQL With a HUGE Config

2006-07-27 Thread Chris
Dyego Souza Dantas Leal wrote: I have a Dell P2800 SERVER WITH: Red Hat AS 4 ( 64 bit machine) 6 GB of RAM Dual Xeon DUALCORE 2.8Ghz with 2MB of L2 Cache I will use MySQl 5.0 and InnoDB, exits a config to use all power of this server ? the developer guys can send-me a config ? There is a

Re: hi, I am not able view all the records in the tabel

2006-07-26 Thread Chris
Annam Srinivas wrote: Hi, Problem is like this. There is table with 'table_name-1' where, when I am executing the query like ' select * from table_name-1;' it is showing only 432 records but acctually there are 539 records in the table. when I select individual records from the table it is sh

Re: Can Innodb reuse the deleted rows disk space?

2006-07-26 Thread Chris
leo huang wrote: hi, Chris Thank you for your advice! I know that Innodb use the logfiles circularly. Can Innodb re-use the deleted rows' disk space in tablespace? I'm sure it will, what makes you think it won't? You might need an 'optimize table' or something to s

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
ou using phpMyAdmin? I was told by a coworker that phpMyAdmin adds those limits in. Wondering if taking the LIMIT out might do it. Also, are the tables really named table1 and table2 (Yah, I know.. but I have to make sure :( )? -- Chris White PHP Programmer/DBoy Interfuel -- MySQL Gener

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
On Wednesday 26 July 2006 11:00 am, Peter Lauri wrote: > The query in full was exactly as you wrote it (but without the typo) :) Alright, yes, what is your version of MySQL? I'm in the 5.0.22 series here and that works just fine. -- Chris White PHP Programmer/DBackItUp Interfuel -

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
LIMIT 0, 100' at line 1 What's the full query look like right now (btw, there was a typo earlier, that should have been table1 and not table 1 :/)? -- Chris White PHP Programmer/DBarkTree Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: JOIN table where not in other table

2006-07-26 Thread Chris White
FROM table 1 WHERE id NOT IN (SELECT id FROM table2); -- Chris White PHP Programmer/DBacardi Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to "control" the number of sql dameons?

2006-07-25 Thread Chris
Prem wrote: Hi All, Could you please explain why some one needs multiple sql daemons and how to control the number of dameons. It forks so it can handle multiple queries at the same time. The main process (mysqld_safe) handles starting up the other processes and various other things (I assu

Re: Returning results as a field name

2006-07-25 Thread Chris
ame, n.question_id, n2.answer from blah n, blah n2 where n.name=n2.name and n.answer=n2.answer; +---+-++ | name | question_id | answer | +---+-++ | chris | 1 | yes| | chris | 2 | no | +---+-++ 2 r

Re: Will UPDATE block on SELECT?

2006-07-25 Thread Chris
Ratheesh K J wrote: I would like to know whether a SELECT query would block an Update on the same table. The table is of InnoDB type. Since InnoDB tables apply row level locks should the Update queries be blocked until the select query completes? I experienced such a scenario wherein an update

Re: Can Innodb reuse the deleted rows disk space?

2006-07-25 Thread Chris
leo huang wrote: hi, Dilipkumar Thank you very much! I think I know the fact: The Innodb can't reuse the deleted rows' disk space. And a solution is: dump the data; shutdown mysql; delete the files; restart mysql; import the data. InnoDB does re-use the space inside the database, it's the log

Re: change a empty value for 0

2006-07-25 Thread Chris White
saccion SET cantidad = 0 WHERE cantidad IS NULL; -- Chris White PHP Programmer/DBamBam Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Stored procedures

2006-07-25 Thread Chris White
riations myself hoping it would. You know, I'd almost LIKE someone to go "No you're wrong, you just need to do this..." ;) -- Chris White PHP Programmer/DBlast Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Segmentation fault error accrued when gcc -o test -L/usr/lib/mysql -lmysqlclient test.c

2006-07-24 Thread Chris White
your client is inserting that < in there, that may be what's causing your problem (not to mention it's <...) > printf("%s\n",row[i] != NULL ? row[i] : "NULL"); > } > } -- Chris White PHP Programmer/DBanned! Interfuel -- MySQL General Mailing List For

Re: Compilation Failure

2006-07-24 Thread Chris White
f things worked before, check if any updates to glibc were done. Otherwise I'd just google around a bit for AIX+mmap64 and see what comes up. -- Chris White PHP Programmer/DBit Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Struggling with the logic

2006-07-24 Thread Chris Sansom
I think we probably say either, equally. Sorry - I don't buy that. :-) Myself: I've never let local standards stand in the way of my using international ones. Excellent. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ To see tomorrow's PC, look at today&

Re: Is a "set current" TIMESTAMP operation atomic when updating/inserting multiple rows?

2006-07-23 Thread Chris W
amp. It should be easy enough to test if you have a large set of data where an update would take a long time. I'm pretty sure it will do what you need though and set them all the same. -- Chris W KE5GIX Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop wi

Re: Struggling with the logic

2006-07-23 Thread Chris Sansom
to sort on it and do other calculations. Over here in Europe we at least use dd/mm/ (increasing unit size order), which is the next most logical, but to start with the middle-sized unit, put the smallest unit in the middle and end with the largest is just... weird! -- Cheers... Chris Highwa

Re: retrieve value from an external file?

2006-07-20 Thread Chris White
tion to the file, then grab that and use it to open the file and get the contents, using that for whatever purpose you may have. -- Chris White PHP Programmer/DBlarg Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Images Table

2006-07-20 Thread Chris White
dd comments. You'd have 2 choices: 1) Shove all the comments in one column (get ready for a HUGE table) 2) Create a separate image row for each comment (lots of duplicate data, bad!) > KEY (img_id); Not needed, you already declared it a key above (PRIMARY KEY) > Thanks for any help. >

Re: How to disable foreign_key_checks when using mysqlimport?

2006-07-20 Thread Chris White
s use the ever efficient test database to test things first: mysql -u [user] -h [host] -p test < fixme.sql > Thanks for your help. > Dominik -- Chris White PHP Programmer/DBlankRounds Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqld-nt 100% CPU Utilization?

2006-07-20 Thread Chris
Robinson, Eric wrote: Our MySQL-based medical application has been running fine for 3 years. Last week, mysqld-nt started jumping up to 100% CPU and staying there until someone restarts the service. mysqlcheck found no errors in the database. I dumped it to disk and read it back in to create a fr

Re: Error when creating Foreign Key

2006-07-19 Thread Chris White
On Wednesday 19 July 2006 01:07 pm, Jesse wrote: >   `ID` int(10) unsigned NOT NULL auto_increment, >   `CTID` int(11) NOT NULL, the storage types aren't the same. change CTID to INT(10) UNSIGNED NOT NULL and it should work. -- Chris White PHP Programmer/DBank Interfuel -- My

Re: Error when creating Foreign Key

2006-07-19 Thread Chris White
y this is happening, and how to fix it? > > Thanks, > Jesse -- Chris White PHP Programmer/DBlankSlate Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Incremental Backup

2006-07-18 Thread Chris
Kaushal Shriyan wrote: Hi ALL Can we have incremental backup of MySQL Database and if its there How do we do it Reposting your question again won't change the responses you have received (it'll actually annoy people more than anything else). -- MySQL General Mailing List For list archives:

Re: multiple InnoDB read-only server instances on same file system

2006-07-18 Thread Chris
pradhuman jhala wrote: I use MySQL version 4.1.18 with redhat-linux-gnu (i686). I have created a InnoDB database consisting of 210 GB ibdata files. I used InnoDB to allocate more memory and speed up the load. I want use it for read-only purpose and it works fine with one MySQL server instance. I

Re: Database or table level logging?

2006-07-18 Thread Chris
David Felio wrote: Is it possible to have general query type logging on just a specific database or table? I don't want all queries to all databases, I just need a log of accesses to a specific table. I figure I can use stored procedures or a separate mysql instance as a workaround if I need to

Permissions Weirdness

2006-07-18 Thread Chris White
s ahead of time for any ideas. mysql 5.0.22-standard -- Chris White PHP Programmer/DBouncingAtTheClub Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql ver. 5.0.22-standard for sun-solaris2.10 (SPARC): Error #60718 Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

2006-07-18 Thread Chris White
or #60718 Can't open and lock privilege tables: Table 'mysql.host' > doesn't exist Did you install the initial database as stated in: http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html ? (yes it's unix, but the installation process for the initia

Re: Converting TEXT to BLOB with special chars

2006-07-18 Thread Chris Sansom
nd put this in your MySQL connect script after connecting to the db: mysql_query ("set names 'utf8'"); or, better: if (!mysql_query ("set names 'utf8'")) { // handle the error } I hope that helps! -- Cheers... Chris Highway 57 Web Development -- http:/

Re: Converting TEXT to BLOB with special chars

2006-07-18 Thread Chris Sansom
going to have a chat with my boss... You could, it seems to me, get round all this by doing everything, from soup to nuts, in utf-8. Is there a reason why it can't all be in utf-8? -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ ...but discriminating against Wi

Re: Can not find mysql_config

2006-07-17 Thread Chris
Fauzan Azhary wrote: Hi All, I've tried to upgrade mysql from MySQL 4.1.12 to MySQL 5.0.22. Before upgrading, I have like below : # rpm -qa | grep mysql mysql-4.1.12-3.RHEL4.1 mysql-server-4.1.12-3.RHEL4.1 mysqlclient10-3.23.58-4.RHEL4.1 mysql-devel-4.1.12-3.RHEL4.1 And after upgrading, I have

Re: Incremental Backup

2006-07-17 Thread Chris
Dan Trainor wrote: Kaushal Shriyan wrote: Hi ALL I would like to know following 2 things. 1) if i would like to take mysql incremental backup weekly cp /var/lib/mysql/ /backup/mysqlbak/ how can i do it by above command as i would like to run cron weekly for take mysql backup. i would like t

Re: problem with double data

2006-07-17 Thread Chris
Obed Soto Déctor wrote: Hi, i'm sorry for my english, i'm from México and i'm gonna do my best, i've made a store procedure but i have some problems becouse when a make a simple operation with double datas the result is not what i wait. We can't tell much without seeing at least the stored pro

Re: Help: PHP won't connect to MySQL

2006-07-17 Thread Chris
Kay C. Tien wrote: At 05:37 PM 7/17/2006 Monday, Chris wrote: Kay C. Tien wrote: Hi All, The simple script I'm testing works on a Linux server. I got tired of having to upload and test them, so I decided to install MySQL on my computer, which is running Win XP. MySQL works fine on it&

Re: load-file() doesn't work

2006-07-17 Thread Chris
[EMAIL PROTECTED] wrote: I'm using MySQL 3.23.36 on RH 7.1. I've created a table photos (in database album) with the following colums: ID NUM AUTO_INCREMENT PRIMARY KEY IMAGE MEDIUMBLOB I'm running mysql from the command line: mysql -u root 'root' has all privileges. The file I'm trying to lo

Re: arrays in stored procedures - pl. help

2006-07-17 Thread Chris
L P wrote: Folks, say I have a need to add multiple rows at the same time. for instance, say I'm collecting customer information and I want to add 3 addresses and 3 phone numbers at the same time for a customer. The above is quite straightforward to accomplish when there is only one set of data

Re: Table 'mysql.host' doesn't exist

2006-07-17 Thread Chris
thomas Armstrong wrote: I created this very-simple '/etc/my.conf': [mysqld] basedir=/usr/local/mysql datadir=/usr/local/mysql/var socket=/tmp/mysql.sock --- But it doesn't still work. '/usr/local/mysql/var' hosts the data, but within 'mysql' subdirectory, there are only two fil

Re: Mysql cluster so slow...

2006-07-17 Thread Chris
Xueron Nee wrote: Hi all, There is a table contains about 60,000 rows. where select from this table with 'order by xxx' statement, it is tooo slow. but if i do it without 'order by xxx', it works fine. Is there any tips and suggestion for me? Thanks! Add an index to the 'xxx' column? That

Re: Help: PHP won't connect to MySQL

2006-07-17 Thread Chris
Kay C. Tien wrote: Hi All, The simple script I'm testing works on a Linux server. I got tired of having to upload and test them, so I decided to install MySQL on my computer, which is running Win XP. MySQL works fine on it's own, I've set the the database and etc., but nothing happened whe

Re: slow mysql...

2006-07-17 Thread Chris
Ritesh Shetty wrote: Hello, My mysql server sometime just slows responding to database queriesIt is as slow as less than 1 per sec. But it speeds up by itself after some time , I have noticed that when it speeds up there are lot more MYsql thread than just one thread when it is slow. So

Re: Odd join questing

2006-07-14 Thread Chris
Chris W wrote: It may not be odd to many but I can't seem to think of how to do this I have 2 queries below that give me exactly what I want each to do but now I want to combing them is such a way that in the second query I have one additional column that gives me a 1 on a row wher

Odd join questing

2006-07-14 Thread Chris W
| SELECT `PID` FROM serviceplanfeaturelink WHERE `SID` = '$SID' SELECT `PID`, `psoc`, `pName` FROM product WHERE pTypeID IN ($_FEATURES_TYPE_IDS) Just in case your aren't familiar with PHP the $SID is just a php variable. Any suggestions -- Chris W KE5GIX Gift Giving Ma

Date comparisons

2006-07-14 Thread Chris Sansom
d of obvious and a lot tidier than doing "datefield >= '2006-03-01' and datefield <= '2006-03-31'", but are there pitfalls I should know about? -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Is there something that sticks out that makes

Re: I don't understand why SCSI is preferred.

2006-07-12 Thread Chris White
sunny Tuesday and want to try something new out. Fat32/NTFS Well, this is kind of a quick answer. Most will straightup go "NTFS" nowdays (iirc because of speed and security labels, but I haven't dealt with windows filesystems in awhile). -- Chris White PHP Programme

Re: I don't understand why SCSI is preferred.

2006-07-12 Thread Chris White
er as if the main one goes down, I've got a real physically separated backup to work with. In the end that's what matters. -- Chris White PHP Programmer/DBloomingOnions Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: I don't understand why SCSI is preferred.

2006-07-12 Thread Chris White
ere doing a substantial amount of logging, or db dumping to disk. Then yes, you'd want a nice fast disk at that point. -- Chris White PHP Programmer/DBlowMeAway Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: I don't understand why SCSI is preferred.

2006-07-11 Thread Chris W
better. -- Chris W KE5GIX Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop wish list for any gift, from anywhere, for any occasion! http://thewishzone.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: I don't understand why SCSI is preferred.

2006-07-11 Thread Chris White
gt; I am more than willing to be called Wrong, slapped, and cast from a > bridge. Be careful on that, databases do more work in memory than anything else. That said, I'd be more worried about your memory capacity. Now, if you rely mainly on swap(virtual) memory, then you might worry m

Re: order desc problem

2006-07-09 Thread Chris Sansom
while ($result = @mysql_fetch_array($query)) { ?> Coo - something I actually know! What column type is round? I bet it's a varchar or some other non-numeric type. If I'm right, it's sorting lexically, so 1 comes before 11, comes before 2, etc. Change it to a some flavour of int and it

Re: Date functions

2006-07-07 Thread Chris W
Addison, Mark wrote: From: Chris W Sent: 07 July 2006 09:23 It's late and I just gave up reading the manual. Can someone please tell me the easiest way to do a query that will return all rows with a time stamp that is X number of seconds older than the current time? Something

Date functions

2006-07-07 Thread Chris W
) Yes I know that is just 3 days but other times I will want to find records that are a few hours old so I like using the formula. -- Chris W KE5GIX Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop wish list for any gift, from anywhere, for any occ

Re: Error in statement

2006-07-06 Thread Chris
Neil Tompkins wrote: I've the following SQL statement which I created in MS Access. My table layout is the same in mySQL but it says I have an error and the query doesn't run SELECT AccommodationOverview.Title, AccommodationOverview.AccommodationOverviewID, AccommodationOverview.Accommodati

Re: add users in mysql 5.0 ubuntu dapper drake

2006-07-06 Thread Chris
Always CC the list. You will get better / faster responses. CREATE USER user [IDENTIFIED BY [PASSWORD] 'password'] thats is the syntax it tells me to use so i typed CREATE USER dimitri [IDENTIFIED BY [PASSWORD] '**']; were the starts are my password, i hav tried fiddling with the syntax but

Re: binary select - case sensitive

2006-07-05 Thread Chris
kalin mintchev wrote: hi all... i found this on the mysql dev manual site: "MySQL 4 and later string comparisons, including DISTINCT, aren't case sensitive unless the field is declared as BINARY or you use BINARY in your comparison." so here i tried it but no good. any ideas?! the field is not

Re: Dynamic link

2006-07-05 Thread Chris
z247 wrote: Is this the only option? I get Access denied. CREATE TRIGGER ins_sum BEFORE INSERT ON account FOR EACH ROW SET @sum = @sum + NEW.amount; MySQL said: Documentation #1227 - Access denied; you need the SUPER privilege for this operation Read the error message. You don't have "super"

Re: add users in mysql 5.0 ubuntu dapper drake

2006-07-05 Thread Chris
Dimitri Mallis wrote: hi list firstly am in the right place to ask this sort of question i installed mysql 5.0 from the repos on ubuntu dapper drake i could only go in to mysql when i was root, & then i guess i am suposed to add users there. You've got things confused. 'mysql' the service,

Re: Question on mysqldump --single-transaction

2006-07-05 Thread Chris
Dominik Klein wrote: Hi everyone I'm wondering about the "--single-transaction" option on mysqldump. Documentation says --- This option issues a BEGIN SQL statement before dumping data from the server. ... --- So does this include the entire dump in one transaction? Or is it one transaction

Re: automatic timestamp

2006-07-05 Thread Chris
Nestor wrote: People, I have the following table: DROP TABLE IF EXISTS bid; CREATE TABLE bid ( bid_id int(11) NOT NULL auto_increment, bid_proj_name varchar(100) NOT NULL default '', bid_prop_name varchar(100) NOT NULL default '', bid_amount varchar(20) NULL default '', bid_sub_name varchar

Re: Dynamic link

2006-07-05 Thread Chris White
CES user_status ( id ); -- Chris White PHP Programmer/DBoo Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Dynamic link

2006-07-05 Thread Chris White
ULL, and you'd have to verify that the columns were not NOT NULL, but the application logic should remain the same with regards to that. -- Chris White PHP Programmer Interfuel 805.642.2200 x110 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: PostgreSQL or mySQL

2006-07-03 Thread Chris White
r "Postgres MySQL comparison" or something of the like. -- Chris White PHP Programmer/DBlameSomeoneElse Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Getting unique values

2006-06-29 Thread Chris Sansom
or different instances of the same picid. Like I said - it wasn't an ideal setup in the first place, but anyway it seems to be solved now. See my post earlier today. Thanks for the interest though. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Everything Is Mor

Re: varchar(5) and select question

2006-06-29 Thread Chris White
SELECT is not cut has it is in the INSERT ? SELECT probably doesn't care about the display width with regards to WHERE clauses, it just wants to see if the field matches and be done with it. The real answer to your issue would be to increase the display width, possibly through ALTER TA

Re: Getting unique values

2006-06-29 Thread Chris Sansom
. Thanks, Tanner! -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ When you've seen one shopping centre, you've seen a mall. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Getting unique values

2006-06-28 Thread Chris Sansom
re you, I wouldn't start from here," but it's what I'm stuck with. And - not wishing to push my luck, /but/ - if there's a nifty MySQL 5-type answer I'd be interested in that too. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ The l

Re: LIMIT Question

2006-06-28 Thread Chris White
the > dates in this scenario. That's why ORDER BY id DESC is used, it basically flips your table reverse, so that last inserted (in essence the highest ID) is first, all the way down to the first inserted (the lowest ID). Then LIMIT 50 will give you 50 from highest id to lowest ID, or the

Re: Please Help - Stored Procedure Issue

2006-06-27 Thread Chris White
On Tuesday 27 June 2006 01:52 pm, Jesse wrote: > @cInvNo replace all instances of this with just cInvNo. cInvNo is already declared as an OUT variable, and @cInvNo will be set to that value when you run: CALL sp_GetNextInv(-1,@cInvNo); -- Chris White PHP Programmer/DBBD Interfuel -- My

Re: multi-column indexes on InnoDB tables

2006-06-27 Thread Chris White
UPS system to keep your things running until the generators kick in, or you pay more than that for data loss. -- Chris White PHP Programmer/DBrain Freeze Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to Output to Screen in Procedure

2006-06-27 Thread Chris White
;message", but you're gonna get rather tacky output. > I'm using MySQL 5. > > Thanks, > Jesse -- Chris White PHP Programmer/DBad Boy Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How can I connect to mysql server using PHP?

2006-06-27 Thread Chris White
mysql/bin/mysqld -uroot -S/var/lib/mysql/mysql.sock > But when I call mysql_pconnect("localhost","root","") in my web page, the > server return me an error, saying "Can't connect to > socket:/var/lib/mysql/mysql.sock(13)". How can I do? &g

Re: Multiple Entries

2006-06-26 Thread Chris White
> sport_name text not null, Woh there! TEXT is probably overkill, I'd recommend VARCHAR for that (120 or so, 255 if you're feeling lucky). As far as the sport_name, you could store it as lowercase, and use the ucwords (http://www.php.net/ucwords) function in PHP to make it upperca

Re: ¿mysql_stmt_bind_param under windows bug?

2006-06-26 Thread Chris White
allocated MYSQL_BIND in bind[0]. Take that line out and things should work. -- Chris White PHP Programmer / DBlair Witch Project Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Embedded MySQL

2006-06-23 Thread Chris White
-server Build the embedded server (libmysqld). <-- I'm assuming this is what you want > -- > TIA, > > Asif -- Chris White PHP Programmer/DB Jaguar Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: PHP mysql_connect

2006-06-23 Thread Chris Sansom
At 15:47 +0200 23/6/06, Jørn Dahl-Stamnes wrote: Yes, I forgot to say that I was using PHP... Oh, I think the clue was in the subject line. :-) -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Revolution: an abrupt change in the form of misgovernment. -- Ambrose

Re: New to the group

2006-06-22 Thread Chris Sansom
ng to look out for. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Some speakers electrify their listeners, others only gas them. -- Sydney Smith -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Math problem

2006-06-22 Thread Chris W
ply a dollar amount to another number. Has anyone else seen this problem? What does a show create table give for the price column? I bet it is varchar. The only way to make it work then would be to trim off the dollar sign and cast it to a float or double. -- Chris W KE5GIX Gift Giving Made

Re: Problems when compiling the source

2006-06-20 Thread Chris White
t because of certain glibc functions: > ../mysys/libmysys.a(mf_pack.o)(.text+0x4ef): In function `unpack_dirname': > : warning: Using 'getpwnam' in statically linked applications requires > > at runtime the shared libraries from the glibc version used for linking -- Chr

Re: Aborting a greedy querry from the command line

2006-06-19 Thread Chris White
On Monday 19 June 2006 04:08 pm, Logan, David (SST - Adelaide) wrote: > Hi Chris, > > I've noticed that a Ctrl-C will also leave the query running (5.0.22 - > Linux) and I've had to use the kill from mysqladmin or mysql client to > get rid of it. Huh, that's o

Re: Aborting a greedy querry from the command line

2006-06-19 Thread Chris White
m the command line and have it really > stop that query? > -- > - > Scott HanedaTel: 415.898.2602 > <http://www.newgeo.com> Novato, CA U.S.A. -- Chris White PHP Pro

Re: Server Load Question

2006-06-19 Thread Chris White
port can only be used by one server -- Chris White PHP Programmer/Dances With DB's Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: [mysql] Attention List

2006-06-16 Thread Chris White
u want in there. So I could say: From: mysql@lists.mysql.com Through some magic mojo and "become" the MySQL mailing list. So in conclusion, don't take what you see worth a grain of salt when it comes to who things are from in the email world. -- Chris White PHP Programme

BBEdit tip (was: Differences between MySQL 4 and 5 for scripts)

2006-06-15 Thread Chris Sansom
es (I /think/ that's what they are) appearing as grey bullets where you expect normal spaces. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Empty warhead found in White House -- Sign carried on New York peace rally, April 2003 -- MySQL General Mailing List For list a

Re: Problem With Join Syntax

2006-06-14 Thread Chris White
do they need to be in a single row? There MIGHT be a way to do it with stored procedures, I'm just not sure how.. > Thanks. > > Albert Padley -- Chris White PHP Programmer/DB Fighter Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: increase the search speed

2006-06-12 Thread Chris White
u might want to just check the MySQL manual entry on fulltext searches for more information (and user comments): http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html -- Chris White PHP Programmer/DB Fawn Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Stored Procedures and DECLARE weirdness

2006-06-09 Thread Chris White
m > Madison, Wisconsin, USA > MySQL AB, www.mysql.com -- Chris White PHP Programmer/DB Unofficial Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Stored Procedures and DECLARE weirdness

2006-06-09 Thread Chris White
first line after the BEGIN clause. Anything else I'm missing? -- Chris White PHP Programmer/DB Knight Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Books on MySQL 5

2006-06-09 Thread Chris White
lse I might have missed. I know there's: "Beginning MySQL Database Design and Optimization: From Novice to Professional (Apress, 2004)" And it does say it covers MySQL5, I'm just not sure to what extent. -- Chris White PHP Programmer/DB Virus Interfuel -- MySQL General Maili

Re: How To Pronounce MySQL

2006-06-09 Thread Chris White
On Friday 09 June 2006 11:27 am, Samuel C Flores wrote: > Um, did anyone actually answer Jesse's question? Um, did you read the all the threads? If you'll notice the first message by Jimmy Guerrero pretty much answers it, all he did was quote the MySQL site. -- Chris White P

Re: How To Pronounce MySQL

2006-06-09 Thread Chris White
s what clubs/bats/spoons are for > I personally will avoid these situations. I don't, I like to live on the edge -- Chris White PHP Programmer/DB Fly Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How To Pronounce MySQL

2006-06-09 Thread Chris White
on the command line, you may as well call it a rock ;). > Thanks, > Jesse -- Chris White PHP Programmer/DB Howler Monkey Interfuel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: database size

2006-06-08 Thread Chris W
next time. Although I'm not sure why this question isn't in the FAQ as often as it is posted here. -- Chris W KE5GIX Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop wish list for any gift, from anywhere, for any occasion! http://thewishzon

Re: myisamchk (was: name 'Szczech' returns more rows then 'Szczec%')

2006-06-08 Thread Chris Sansom
velopment platform no-one's accessing it if I'm not. I ran myisamchk on some tables before I saw your message - with the server running - and I've just run it again after stopping the server, and got identical results. You must be logged in as root or mysql. sudo does the trick. :-

Full text search novice

2006-06-08 Thread Chris Sansom
e answer, but having done all that I find there's no change. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ Among the things money can't buy is what it used to. -- Max Kauffmann -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: How To Pronounce MySQL

2006-06-08 Thread Chris Sansom
At 7:38 -0500 8/6/06, Jimmy Guerrero wrote: "The official way to pronounce "MySQL" is "My Ess Que Ell" (not "my sequel"), but we don't mind if you pronounce it as "my sequel" or in some other localized way." Miss Quill? -- Cheers... Chr

re: ERROR 1064 (42000): You have an error in your SQL syntax;

2006-06-07 Thread Chris Sansom
. Wow! I was right. I'm learning... :-) -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ If at first you don't succeed, try, try again. Then quit. No use being a damn fool about it. -- W.C. Fields -- MySQL General Mailing List For list archives: http://lists

Re: ERROR 1064 (42000): You have an error in your SQL syntax;

2006-06-07 Thread Chris Sansom
op of my head, maybe you need to specify the type even if it's unchanged (I assume all you want to do is rename the column?). So supposing director_id was a SMALLINT(3) UNSIGNED, try: ALTER TABLE actors CHANGE director_id actor_id SMALLINT(3) UNSIGNED; Any good? -- Cheers... Chris Highway

XML -> DB Conversion

2006-06-06 Thread Chris White
Hi all, I'm currently looking for a tool that will take XML and produce a database from it. Not really looking for anything in particular at this point, just sort of scoping around. Anyone know of such a tool? -- Chris White PHP Programmer/DB Sloth Interfuel -- MySQL General Mailing

<    1   2   3   4   5   6   7   8   9   10   >