Re: correct syntax

2006-06-08 Thread Gerald L. Clark
about LIKE "% %" -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Question on full text search scores, different content same score

2006-06-09 Thread Gerald L. Clark
nd these are the only two titles that are similar. I also tried IN BOOLEAN MODE as well. Thanks, Mark Perhaps because '(' and ')' are ignored, and 'MLM' is a three letter word, and not indexed. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing

Re: MySQL 4 Kernel Panic-ing

2006-06-12 Thread Gerald L. Clark
rsion 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC How could a user space program like mysqld possibly cause a kernel panic? Sounds like bad kernel or bad hardware. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: ht

Re: error loading data from file > ERROR 1329 (02000): No data - zero rows fetched, selected, or processed

2006-06-23 Thread Gerald L. Clark
us the data, nor the command you used to load the data, we can't tell you what is wrong. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Left Join Help

2006-06-23 Thread Gerald L. Clark
? Thank you, -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Left Join Help

2006-06-23 Thread Gerald L. Clark
Distinct| +++---+-+-++---+ I need to be able to run the full query on a daily basis without killing the DB engine. The query needs to pull in about 50,000 results. Does anyone see a way to optimize this query or rewrite it so it doesn't cause a huge system load? Thank you,

Re: Recommended backup scripts for mysql databases

2006-06-29 Thread Gerald L. Clark
at least you know in advance exactly how much space it will take... Tim -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: why didn't I insert small number into table?

2006-06-29 Thread Gerald L. Clark
Could anybody give a hint why this occured and how to avoid this? Thanks in advance. Xiaobo Double defaults to double(16,4) and you have more than 4 decimal places. Try double(16,10). -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: h

Re: Multiple joins

2006-06-30 Thread Gerald L. Clark
FT JOIN, I am not sure whether you intend them to be LEFT JOINs or INNER JOINs. Try: SELECT fields FROM file1 LEFT JOIN file2 ON something INNER JOIN file3 ON something INNER JOIN file4 ON something INNER JOIN file5 ON something WHERE somecondition -- Gerald L. Clark Supplier Systems C

Re: datetime issue on MySQL 4.x

2006-07-12 Thread Gerald L. Clark
7;, '2', NOW())... And when I try to fetch the data using PHP with this query: SELECT operator_id, DATE_FORMAT(date_time,'%d-%m-%Y') AS tanggal, COUNT(*) AS TOTAL FROM dlr WHERE 1=1 AND dlr = 8 AND MONTH(date_time) = MONTH(NOW()) GROUP BY tanggal, operator_id ORDER BY d

Re: Trying to understand why Select running out of memory if table not used

2006-07-12 Thread Gerald L. Clark
s... on the server also... But first try to run with '--compress' maybe this will fix... -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Allow user to create databases, but limit all privileges to other databases

2006-07-12 Thread Gerald L. Clark
is a post regarding this exact same issue, and I was originally going to add a 'me too!' response to that post, but the registration system for the forums seems to be broken and I was never able to successfully log in to post. You asked the same question 2 hours ago. -- Gerald L. Clark S

Re: Distinct problem

2006-07-18 Thread Gerald L. Clark
AS t1 INNER JOIN table3 AS t3 ON ??? LEFT JOIN table AS t2 ON t1.item_id = t2.item_id AND t1.dt < t2.dt WHERE t2.item_id IS NULL; -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.

Re: mysql hangs on connection attempt

2006-07-18 Thread Gerald L. Clark
hind a NAT, and only their external addresses changed. this is a really tough bug, so any help would be GREATLY appreciated. thanks, steve connec -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: [5.0] Left Join Problem

2006-07-21 Thread Gerald L. Clark
LEFT JOIN db.tab_c ON tab_c.id = tab_a.id LEFT JOIN db.tab_d ON tab_d.id = tab_a.id WHERE tab_a.id = 'value' LIMIT 1; -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Check out this Free software I found to document your IT infrastruct

2006-08-03 Thread Gerald L. Clark
take necessary action just like a mailing list owner will do. Feel free to send me a private email if you have more concerns. Regards, Will L Nabble.com Well, he also spammed the Centos Forums. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list

Re: Tricky query

2006-08-04 Thread Gerald L. Clark
(SELECT * FROM keyval inner WHERE outer.key = inner.key AND inner.val = 9) ... Br, Morten How about: SELECT DISTINCT `key`, COUNT(`key`) AS c FROM `table` WHERE `value` in (8,9,10) HAVING c=3; -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list

Re: Tricky query

2006-08-04 Thread Gerald L. Clark
(SELECT * FROM keyval inner WHERE outer.key = inner.key AND inner.val = 9) ... Br, Morten I forgot the GROUP BY How about: SELECT DISTINCT `key`, COUNT(`key`) AS c FROM `table` WHERE `value` in (8,9,10) GROUP BY `key` HAVING c=3; -- Gerald L. Clark Supplier Systems Corporation

Re: Load Data Infile and newlines

2006-08-08 Thread Gerald L. Clark
The command I used was: mysql> load data infile '/share/store/library.csv' into table library fields terminated by ',' enclosed by '"' lines terminated by '\r\n'; Any help appreciated. Mark You need to quote the actual linefeed character, not a b

Re: 1 to many relationships

2006-08-16 Thread Gerald L. Clark
m Comes up and i add the issue and Click Add issue, i need that issue to associate with that customer, every Customer Refrences the same issue table Then it is many to many. Many customers are associated with many issues. i have Customers /Issues as tables, -- Gerald L. Clar

Re: Decimal versus Float Point Type

2006-09-07 Thread Gerald L. Clark
t you are modeling that is important. Dollars are decimal, and dollar calculations must be rounded to the nearest cent, or mill. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: 2 versions of mysql on Unix: problem with the socket

2006-09-12 Thread Gerald L. Clark
s the socket. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Conditional copy of values

2006-09-21 Thread Gerald L. Clark
id, so you cannot add a rowid that already exists. Please help. I am using MySQL version 4.1.14-standard-log. Hence subqueries are not a solution. Thanks, Ravi. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.co

Re: What happened to left join under version 5?

2006-09-21 Thread Gerald L. Clark
|| | rowid | int(11) unsigned | NO | PRI | NULL| auto_increment | +--+--+--+-+-++ Server version 5.0.22 -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySQL operators

2006-09-21 Thread Gerald L. Clark
een '2006-09-14' and '2006-09-21' or Approveddate Is Null This retrurns all jobs whether they are status 6 or not, i need to have a comparison on approveddate, it is either between the two dates or null, but is status 6. ( Approveddate between '2006-09-14' and 

Re: updating table but afterwards there are duplicate entries that violate a key..

2006-09-29 Thread Gerald L. Clark
have duplicate (tagid, taggerid, objectid) rows. Is there a way to remove duplicate rows like this? Thanks for any pointers!! Peter Use ALTER TABLE IGNORE and put the key back. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysq

Re: Quick way to determine existence of an index?

2006-09-29 Thread Gerald L. Clark
ounds like an extremely bad idea to me. You don't want to have any indicies you don't actually need. They will slow down all inserts and updates. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Running a Staging and Development DB on the same server?

2006-09-29 Thread Gerald L. Clark
production database? Just connect to the proper database when you start your application. mysqladmin create testdata mysqldump production | mysql testdata -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscrib

Re: CREATE TABLE Inv_Id

2006-10-16 Thread Gerald L. Clark
rcodes are not sequential numbers. They are composed of a casecode prefix, a manufacturers id, a partnumber, and a check digit. You cannot use an autoincrement number as a UPC. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysq

Re: £ (Great Britain Pound) breaks MySQL insert and update - disastrous overwrit e

2006-10-19 Thread Gerald L. Clark
r encountered this?? I'm going mad. Turn on the querylog, and see what query mysql is actually getting. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql -e "Select" Fields Enclosed By and NULL values

2006-10-27 Thread Gerald L. Clark
s a where clause. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Manually Inserted Data

2006-11-01 Thread Gerald L. Clark
9', '2006-11-01', '-00-00' as z ) ORDER BY z, Start ASC, Status DESC, Time ASC a Does anyone see my mistake? Keith -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Can't create database

2006-11-02 Thread Gerald L. Clark
ideas on how to solve this issue ? Any help would be appreciated. Best Regards, MG perror 28 Error code 28: No space left on device You need more disk space. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: Can't create table

2009-03-16 Thread Gerald L. Clark
Octavian Râºniþã wrote: Hello, I've tried to create these 4 test tables, but when I try to create the last one, MySQL gives the following error: ERROR 1005 (HY000) at line 20: Can't create table '.\z\favorite_link.frm' (errno : 150) It seems that the foreign keys are not created well i

Re: mysql problem

2009-04-21 Thread Gerald L. Clark
AZZOPARDI Konrad wrote: Hello people, I do not know if this the right listI am migrating a very basic application from an older mysql version 4.1.9-standard to a new mysql version 5.0.45 {RedHat default package}. I have migrated DB data from one to the other and all data seems to be there

Re: selecting the 'best' match

2009-05-12 Thread Gerald L. Clark
blackwater dev wrote: I have a hold car data such as color, model, make, year, etc. I want to allow the user to answer some questions and I'll present them with the car that 'best' matches their criteria. How do I do this? I still want to return ones that don't match exactly but want the close

Re: Why can't I kill the query cache?

2009-05-29 Thread Gerald L. Clark
Little, Timothy wrote: Also titled, I want this to run slow ALL the time... I have a group of dreadful queries that I have to optimize. Some take 20-30 seconds each -- the first time that I run them. But then they never seem to take that long after the first time (taking less than a second

Re: libexec/mysqld: unknown option '--skip-bdb'

2010-05-14 Thread Gerald L. Clark
Kris wrote: Hello, I am trying to produce an automated, reliable, and repeatable way of testing mysql releases, and I am finding an error that makes this impossible to accomplish. I am trying to compile mysql and install it in a non-standard directory. I do notwant mysql installed in /usr or /u

Re: Filesort on query

2008-06-09 Thread Gerald L. Clark
), KEY `today` (`proj`,`today`,`id`), KEY `prank` (`proj`,`projrank0`,`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 Regards Phil With no where clause, and aggregate functions, it is faster to do a full table read, and the sort the aggregated results. -- Gerald L. Clark Sr. V.P. Development

Re: MySQL won't start with external bind-adress in my.cnf

2008-07-29 Thread Gerald L. Clark
t. I attempt a /usr/local/etc/rc.d/mysql-server.sh restart But the server does not start until I change the address back to the LAN address. Any help would be appreciated. I have not found via Google anyone else having this issue. Does that IP address resolve to your hostname? -- Gerald L. Cla

Re: Totaling from several tables away

2008-09-05 Thread Gerald L. Clark
SELECT sum(calories) from People INNER JOIN Meals ON People.Name=Meals.Name INNER JOIN Meal_Items on Meals.Meal_ID=Meal_Items.Meal_ID WHERE Name='Brian' AND Date='2009-09-04'; -- Gerald L. Clark Sr. V.P. Development Supplier Systems Corporation Unix since 1982 Linux since 1992 --

Re: Finding gaps

2008-10-08 Thread Gerald L. Clark
SELECT a.id+1 AS `Missing_From`, MIN(b.id) - 1 AS `To` FROM tbl AS a, tbl AS b WHERE a.id < b.id GROUP BY a.id HAVING a.id < `To` -- Gerald L. Clark Sr. V.P. Development Supplier Systems Corporation Unix since 1982 Linux since 1992 -- MySQL General Mailing List For list archives: h

Re: Join question

2008-10-16 Thread Gerald L. Clark
pened 1 or 10 times in one day just that it happened at least once on that day for a user. Chris W try DISTINCT. -- Gerald L. Clark Sr. V.P. Development Supplier Systems Corporation Unix since 1982 Linux since 1992 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mys

Re: Basic information: MySQL Table crash?

2008-10-31 Thread Gerald L. Clark
#1 reason is powering off the computer without a proper shutdown. Get a UPS. -- Gerald L. Clark Sr. V.P. Development Supplier Systems Corporation Unix since 1982 Linux since 1992 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: failed-mysql-bugreport

2008-11-05 Thread Gerald L. Clark
Bob wrote: mysql.sock doesn't exist on the hard drive. Start the server. -- Gerald L. Clark Sr. V.P. Development Supplier Systems Corporation Unix since 1982 Linux since 1992 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: Backing up large dbs with tar

2006-11-13 Thread Gerald L. Clark
the backup without affecting other db writes during this operation? Thanks, Van Look at mysqlhotcopy. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql on a NAS

2006-11-28 Thread Gerald L. Clark
the number of servers) Never. 2) is there a better, more performant way, to install mysql in a cluster ? See 'MySQL Clustering' BY Alex Davies and Harrison Fisk MySQL Press 3) Just your general idea about this setup. Thanks Stefan "Stonki" Onken -- Gerald L. Cl

Re: +1MB query gets "Out of memory"

2006-11-30 Thread Gerald L. Clark
over 1MB again. The only other value i could find that was 1MB was packet_size but that didn't help. What could i do to run this query? You have to change the maximum packet size on both the server and the client. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing

Re: Instalation issues

2006-12-04 Thread Gerald L. Clark
ySQLCouldn't find MySQL manager or server[FAILED] Please advice how I can debug this error. Thanks, --Abhishek What error? -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: [OT} How to pronounce GIF

2007-01-12 Thread Gerald L. Clark
pronouncing "graphics" as "jraphics". How do you pronounce "giraffe"? -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Date format question

2007-01-15 Thread Gerald L. Clark
date in format (-MM-00). -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Safe DB Distribution

2007-01-30 Thread Gerald L. Clark
torage and industry-leading spam and email virus protection. You will not be able to search on encrypted fields. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqldump on Freebsd 5 -- out of memory error

2007-02-13 Thread Gerald L. Clark
rt3 --set-variable=max_allowed_packet=256M Attachments > Attachments.sql Try adding the -q option. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql and FOREIGN KEY

2007-02-21 Thread Gerald L. Clark
laggio INT These are not the same type. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: row count inconsistency

2007-02-21 Thread Gerald L. Clark
mysql> select count(*) from fidcid; +---+ | count(*) | +---+ | 100480507 | +---+ 1 row in set (0.09 sec) If this table is InnoDB, then count(*) is just an approximation. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives:

Re: Does casing of Table names matter on Linux

2007-03-05 Thread Gerald L. Clark
not resist the change to > the Linux . > What is the remedy now i mean can something be done now to make linux be > case insensitive, > Pl. help me, > Thanks, > Abhishek jain > > So friends , If anyone know abt the sol. pl. let me know Thanks, Abhishek jain The solution is in the link given above! -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Suddenly : mysqld: Can't create/write to file PID

2007-04-18 Thread Gerald L. Clark
7; (Errcode: 13) 070418 8:43:57 [ERROR] Can't start server: can't create PID file: Undefined error: 0 070418 08:43:57 mysqld ended HOw is this fixed? The mysql user must have execute and write privilege on /usr/contrib/var and all subdirectories. -- Gerald L. Clark Supplier Syst

Re: Trying to open a big sql script

2007-04-20 Thread Gerald L. Clark
ards, Joerg That reminds me of the story of the mailing list maintainer who decided to replace 'and' with '&'. He ended up sending mail to S&y S&erson. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Stopping Replication

2007-04-24 Thread Gerald L. Clark
at else do I need to do to stop the replication process? Thanks, Jesse You have to remove the master information from the slave's my.ini file. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

Re: what kind of indices to set up

2007-04-26 Thread Gerald L. Clark
mn index starts with model or tyre_type, then no. The index can be used down to, but not including the first column that is compared against '%'. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscr

Re: Permissions and Into Outfile

2007-04-27 Thread Gerald L. Clark
; must have write permission in the target directory. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Permissions and Into Outfile

2007-04-27 Thread Gerald L. Clark
hould I change the mysql home directory to some other folder? Neither. Just make sure that mysql has permission to write in the directory you want to contain the output file. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysq

Re: Should the db be shutdown before backing up?

2007-04-30 Thread Gerald L. Clark
low for select to go through the db) Best luck mysqlhotcopy does not require a database shutdown. If it did, it would not be a hot copy. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://li

Re: IS NULL Question

2007-05-01 Thread Gerald L. Clark
get the tuples back when I did SELECT * FROM myTable WHERE col3 = ' '; -- a space character If this is the case, you might consider using a different table type, such as InnoDB. HTH, Kevin MyISAM has no problem representing NULL. -- Gerald L. Clark Supplier Systems Corporation

Re: Bin logs...

2007-05-03 Thread Gerald L. Clark
binary log. My problem is I have a query that's failing and I can't figure it, I can't read the log file. Suggestions anyone? Use the mysqlbinlog command. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Frequently MyISAM TABLE corruption.....Pls help

2007-05-09 Thread Gerald L. Clark
ched the file size limit of your filesystem, or the default maximum MyISAM size? -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Mysql and Textarea

2007-05-22 Thread Gerald L. Clark
ly it can’t read what is inside the Textarea box. Why?? Read the highlighted code. include ('./includes/header.html'); include( '../mysql_connect.php' ); ?> You asked this two days ago. Have you tried any php mailing lists? -- Gerald L. Clark

Re: Lock Tables Question

2007-06-04 Thread Gerald L. Clark
long list), I wondered if it is possible to just lock one table, with the gentleman's agreement that in order to modify the database, every process must first lock that particular table. You could use a string lock for this. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Ma

Re: Lock Tables Question

2007-06-04 Thread Gerald L. Clark
les you will use, perform your updates, and then UNLOCK TABLES. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Access Denied When Trying to Create Database

2007-06-11 Thread Gerald L. Clark
ase people_development; >> ERROR 1044 (42000): Access denied for user 'untz'@'localhost' to >> database 'people_development' >> mysql> > > Try running SHOW GRANTS while logged in, and see what privileges > you have. You probably need

Re: Access Denied When Trying to Create Database

2007-06-11 Thread Gerald L. Clark
anyone please help me? I am unable to use MySQL at all, at this point... -untz You have to be logged-in to mysql as a privileged user to grant permissions to others. Logout, and login as root. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archiv

Re: zabbix mysql problem

2007-06-12 Thread Gerald L. Clark
ysql in 21 days book and hope to become more knowledgeable on this subject, please point me in the right direction? You are not looged in to mysql as a user with create privileges. You might need to backup a few chapters. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing L

Re: MySql Host through Heartbeat

2007-06-12 Thread Gerald L. Clark
not change. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: MySql Host through Heartbeat

2007-06-12 Thread Gerald L. Clark
Baron Schwartz wrote: Gerald L. Clark wrote: Ben Clewett wrote: Dear MySQL, I'm running 5.0.26 through Heartbeat. Which seems to work well, even as a replication slave and Heartbeat continously stopping and starting the server. The Heartbeat moves MySQL around from server to s

Re: master status is null

2007-06-20 Thread Gerald L. Clark
, and how do i fix it. Please help regards anandkl -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: index question

2007-06-21 Thread Gerald L. Clark
Linux Administrator/MySQL DBA IT Infrastructure American Home Mortgage w: 631-622-6382 c: 516-652-2475 Use explain, and find out. MySQL may reverse the two and join A to B inorder to use A's index. Since there is no WHERE clause, only one of the tables needs an index. -- Gerald L. Clark Sup

Re: Upgrading databases?

2007-06-21 Thread Gerald L. Clark
ysql' I have tried it with all different combinations for the two directory options with no luck. All tables are MyISAM. Can anyone shed some light on what I'm supposed to do? Thanks, Seth Shut the server down and run myisamchk on users.MYI -- Gerald L. Clark Supplier System

Re: peformance help: preventing 'using temporary; using filesort'

2007-06-29 Thread Gerald L. Clark
ch rpt_cpc needs an index on sourceID. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: error in login

2007-07-09 Thread Gerald L. Clark
‘localhost’ from the user and only leaving ‘%’ with no difference at all. I’ve also tried the –protocol=TCP option with no luck either. Any pointers? TIA Hector S. Mendoza O PS. mysqld Ver 5.0.27 Use a my.cnf file in the user's home directory. -- Gerald L. Clark Sup

Re: why are tmp tables being created on disk?

2007-07-18 Thread Gerald L. Clark
rhaps the data is still in cache, so no read is actually made from the disc. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqld works but not mysqld_safe

2007-07-18 Thread Gerald L. Clark
to work -- with logging!! -- Chris Africa Web Project Manager Department of Mechanical Engineering University of Michigan 734-764-8482 Fridays: 734-355-6577 AIM/iChat/Skype ID: baiewola mysql does not have write privilege in /usr/local/mysql-5.0.41-osx10.4-i686/data. Is this owned by roo

Re: mysqld works but not mysqld_safe

2007-07-18 Thread Gerald L. Clark
permissions error. Check all directories from / to the data directory. -- Gerald L. Clark Supplier Systems Corporation -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: replication problem

2001-02-12 Thread Gerald L. Clark
Stephen Wong wrote: > > I try to use the replication feature of the latest stable version 3.23.32. Everyting > works find when I follow the instructions until when I tried to stop the slave and > then start it. It generated the following messages in the error log: > > 010212 18:28:08 mysqld s

Re: mysql hangs on client start (and mysql_install_db)

2001-02-14 Thread Gerald L. Clark
Check permissions. The var directory anad all subdirectories and files must be accessible by the user under which MySQL runs. The directory containing the mysql.lock file must be readable and searchable by everyone. Drew Degentesh wrote: > > >Description: > mysql hangs. This is really frustrati

Re: get_lock()

2001-02-14 Thread Gerald L. Clark
It is just a string. It does not lock anything in the database. It sets a semaphore to be tested by other programs. You need to make sure ALL programs updating your database use the string locks, and that the stringlock will be unique for every record. you could youse something like database-table

Re: Linking problems.

2001-02-15 Thread Gerald L. Clark
Dave Juntgen wrote: > > I am unable to link libmysqlclient staticlly. I have tryed everything I > could have thought, please look at the linking below, I tried to look for > the file my_compress.o and my file system and I was unable to find it. > > gcc -g -Wall -O6 -static -o webchart.cgi -L..

Re: MySQL set up plan

2001-02-15 Thread Gerald L. Clark
Teddy A Jasin wrote: > > Hi All, > > Currently I have four websites using one MySQL server. The MySQL and the four >websites > each is placed on different server. > However this MySQL server, I dont know why after running for a few days can > stop responding that I have to restart the MySQL ser

Re: how can i get a table array of a database

2001-02-15 Thread Gerald L. Clark
yindu wrote: > > hello,sir; > i do know i can use "show tables" to get the table names list.but i need get a >table name > array to use in my application.like the array > i get by "select" function . > how can i do it?thank you! > yin du "show tables" returns a

Re: Table timestamps? More specific control of "SHOW TABLE STATUS" command

2001-02-16 Thread Gerald L. Clark
Why don't you : select timestampfield from mytable order timestampfield decs limit 1 Jay Lawrence wrote: > > Atle, your suggestion is for the last time a record was updated. I am > interested in the entire table. > > The closest that I have seen thus far is: > SHOW TABLE STATUS > The Update

Re: SQL statement in PHP

2001-02-16 Thread Gerald L. Clark
Matt Davis wrote: Check the manual. The manual shows where following from. > > Can anybody help with this > > If I put the following statement in PHP my browser tells me that there is an > error on the line. > > //create sql statement > $sql = "select Business_Name,Trading_Details

Re: list of databases

2001-02-19 Thread Gerald L. Clark
mysqlshow should work just fine. Tim Chambers wrote: > > Is there any way I can generate a list of the databases in mysql, perhaps > with the mysqlshow command and some fancy grep? > > I'm looking for a list separated by spaces, something that I could use in a > bash script. > > Thanks, > >

Re: Problems with SHOW DATABASES / TABLES

2001-02-19 Thread Gerald L. Clark
I also rebuilt 3.23.33 today for SCO Openserver 5.0.4 and RedHat Linux 6.2. Show Databases works just fine here. Sinisa Milivojevic wrote: > > HI! > > In response to several mail messages on mailing list that were > centered around some misbehaviour of SHOW DATABASES / TABLES, I have > tested t

Re: CREATE from a mysqldump won't CREATE a table in 3.23?

2001-02-19 Thread Gerald L. Clark
Check the manual. "Type" is a reserved word. "Date" is a reserved word. Martin wrote: > > The following CREATE TABLE came from a mysqldump. When I use the same create > statement to create the table under mysql 3.23 I get an error: > > # MySQL dump 8.12 > # > # Host: localhostDatabase: inst

Re: Index Question(again).

2001-02-19 Thread Gerald L. Clark
In the first query, mysqld could get all the information it needed from table a from the index file. In the second query, it needed to read the data file to get all the columns, and determined that using an index would not gain any speed. From the 3 reow returned, I woul guess that you don't hav

Re: mysqldump problems too

2001-02-20 Thread Gerald L. Clark
jaco wrote: > > I'm having problems with mysqldump too. > > I'm trying it on a Suse Linux 6.2 system, from the /usr/bin directory as root, >typing ./mysqldump --all-databases > backup.sql > > as is explained on http://www.mysql.com/doc/m/y/mysqldump.html > > The response is : ./mysqldump:

Re: Help with access denied

2001-02-20 Thread Gerald L. Clark
diego López wrote: > > thanks in advice > I already did something like that .. the problem was i erase all the > content of the mysql directory and i creaste a new mysql database, and when > i try to restar the mysql daemon (/etc/rc.d/init.d/mysql start) i get a > message like: > > [root@hal

Re: Compiling

2001-02-20 Thread Gerald L. Clark
It means you forgot -lz. You also need libz.so Evan James Dembskey wrote: > > Hi, > > While trying to compile a program in C taken from the book Professional > Linux Programming (Matthew, N. & Stones, R. (2000) 155) using this command > (also taken from the same book): > > [root@evan /

Re: MySQL replication

2001-02-20 Thread Gerald L. Clark
Read the manual on replication, and pay special attention to the warnings. This will not work if you use autoincrement fields, unless you are VERY careful. Then it still may not work. Fredrik Kristiansen wrote: > > Hello, > > Is it possible to enable a MySQL replication between 2 or more sever

Re: Large Numbers problem

2001-02-20 Thread Gerald L. Clark
Martin Jeremic wrote: > > I have inserted 1234567890 in a float field. mySQL server rounded this > to 123457. Then i have inserted 99 in same field, and tis > was rounded to 100. Is this a bug or someyhing else? Field is > declared as "field1 float" > > -- > Martin Jeremic -

Re: MySql-3.22.32-client doesn`t install

2001-02-21 Thread Gerald L. Clark
jatin wrote: > > Hello Sinisa, > > I have mailed you regarding Installation on .rpm binary of mysql. > I am once again telling you, > > I have a Linux6.2 OS , and want to install MySql3.22.32 client and development. >But it give imediate following error > > error:MySql-client-3.22.32-1.i386

  1   2   3   >