Re: Altering database size to add more space

2010-06-25 Thread Jim Lyons
l. This also > explains why it's always 0 for InnoDB tables :-) > > > -- > Bier met grenadyn > Is als mosterd by den wyn > Sy die't drinkt, is eene kwezel > Hy die't drinkt, is ras een ezel > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Altering database size to add more space

2010-06-24 Thread Jim Lyons
(MB)', > Round( Sum( data_free ) / 1024 / 1024, 3 ) AS 'Free Space (MB)' > FROM information_schema.tables > GROUP BY table_schema ; > > > Thank you. > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: list rows with no recent updates

2010-06-14 Thread Jim Lyons
27; where prod_id='3069' and > prod_code='a0071'; > Query OK, 1 row affected (0.00 sec) > Rows matched: 1 Changed: 1 Warnings: 0 > > > > > How can I list rows with no recent updates ( or the once where the above > updates were not done) or say wit

Re: Geting current user pasword.

2010-06-03 Thread Jim Lyons
de firmas > de virus 5170 (20100603) __ > > ESET NOD32 Antivirus ha comprobado este mensaje. > > http://www.eset.com > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:    http://lists.mysql.com

Re: Using RAND to get a unique ID that has not been used yet

2010-05-28 Thread Jim Lyons
ed. > > Thanks for any help! > > Andre > > -- > Andre Matos > andrema...@mineirinho.org > > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:    http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com

Re: Analysis of a weeks worth of general log

2010-04-20 Thread Jim Lyons
CC7F > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: How to corrupt a database please???

2010-04-18 Thread Jim Lyons
List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: MySQL Slave is almost 1 day behind

2010-03-26 Thread Jim Lyons
ow to > catch the slave back up to the master? The master is not being overloaded, > it is keeping up no problem, and the backup server is 8x the server than > the > application server, so it shoulnd't even be an i/o or cpu issue. > > Please help! :) > > > Thanks in advance > Steven Staples > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Remove - Foreign key constraint in innodb

2010-02-25 Thread Jim Lyons
> Please, Can any one you help me? > > Thank you > > VIKRAM A > > > > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. > http://in.yahoo.com/ -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Garbage collecting/trimming ibdata1

2010-02-23 Thread Jim Lyons
//www.mit.edu/~y_z/ <http://www.mit.edu/%7Ey_z/> > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: max() can't work

2010-02-06 Thread Jim Lyons
d) from > table_name) > >> ? > >> > >> > >> Thanks in advance. > >> > >> -- > >> MySQL General Mailing List > >> For list archives: http://lists.mysql.com/mysql > >> To unsubscribe: > http://lists.mysql.com/mysql?unsub=armand...@gmail.com > >> > >> > >> > > > > > > > > > > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. > http://in.yahoo.com/ -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: max() can't work

2010-02-06 Thread Jim Lyons
ibe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Selecting Dates

2010-02-01 Thread Jim Lyons
gt; ORDER BY order_date; > > or > > SELECT * FROM orders WHERE order_date =>'2010-01-01' AND <= '2010-01-30' > ORDER BY order_date; > > Neither of these work. > > What am I missing? > > -ML > > -- > MySQL General Mailing List > For list

Re: How to purposely corrupt a table

2010-01-13 Thread Jim Lyons
archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Exporting the result of a Query into excel

2010-01-05 Thread Jim Lyons
ere. On Tue, Jan 5, 2010 at 1:50 PM, Carsten Pedersen wrote: > Is there any particular reason not to use the MySQL ODBC driver to import > the data directly into Excel? > > / Carsten > > Jim Lyons skrev: > > A command to convert the table mytab in database mydb int

Re: Exporting the result of a Query into excel

2010-01-05 Thread Jim Lyons
excel-compatible.html > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=ishaq...@yahoo.co.uk > > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Exporting the result of a Query into excel

2010-01-05 Thread Jim Lyons
do a select on the data you want, redirecting it into an output file. On Tue, Jan 5, 2010 at 7:17 AM, ishaq gbola wrote: > Hi all, > > I would like to know if there is a tool or command in mySQL that allows one > to export the result of query into excel formart > > > &g

Re: Render row without duplicates

2010-01-03 Thread Jim Lyons
71414c107d1c5&token=160eb1977a91a41f90271414c107d1c5> > 8524 > > > I dont want the Null row , > > how to remove the null display , > > > Thanks > > > > > On Sat, Jan 2, 2010 at 11:38 PM, bharani kumar < > bharanikumariyer...@gmail.com> wrote: &g

Re: Render row without duplicates

2010-01-02 Thread Jim Lyons
, > > > > This query purpose is , i have around 1000 patients in my DB, > > Each patient may have one,two,three hospital code,that's y the field are > hospital1,hosptial2,hospital3, > > > i know , i can display all hospital code with unique , but i d

Re: Aborted_connects is incresing repidly

2009-12-30 Thread Jim Lyons
hat are reasons and how do i decrease the same? > > We are using connect() method in PHP code and have tried below command > > mysqladmin flush-hosts > > but still the value is same. > > > Thanks > Jeetendra Ranjan -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Optimization suggestions

2009-12-14 Thread Jim Lyons
derid` (`folderid`), > KEY `threadid` (`threadid`), > KEY `inboxfolderindex` (`folderid`,`toid`,`totype`), > KEY `sentitemsindex` (`fromid`,`fromtype`) > ) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=LAST > UNION=(`messages2009`); > > > > > > > Sudhir NimavatSenior software engineer. > Quick start global PVT LTD. > Baroda - 390007 > Gujarat, India > > Personally I'm always ready to learn, although I do not always like being > taught > > > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. > http://in.yahoo.com/ -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Are you serious? mySQL 5.0 does NOT have a RENAME DATABASE?

2009-12-11 Thread Jim Lyons
Ken D'Ambrosio wrote: > > > > rename table oldschema.table to newschema.table; > > > > Just to be 100% clear -- I assume you have to first create the > destination > > database, and then do this for all the tables in the source database? > > > > Yep.

Re: error creating table

2009-11-30 Thread Jim Lyons
gspot.com/ > "Peace" is the Ultimate thing we want. > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Is a view efficient in joins?

2009-11-29 Thread Jim Lyons
garwal, (281)846-8957, http://UnmeteredVPS.net > Host your MySQL driven app on a CentOS VPS for $25/mo > Unmetered bandwidth = no overage charges, 7 day free trial > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:

Re: Rename Database - Why Would This Not Work?

2009-11-23 Thread Jim Lyons
ySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Odd select question

2009-10-12 Thread Jim Lyons
Is this or similar syntax in MySQL or is my dotage coming upon me > > > Thanks in advance, > > Bruce > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com/mysql?unsub=jlyons4...@

Re: Correct way to start new .MYD & .MYI files

2009-09-25 Thread Jim Lyons
procedure to follow that will > allow me to archive these files and > Then start new ones so I can get my disk space back? > > Thanks in advance. > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: http://lists.mysql.com

Re: Anyone using LVM for backing up?

2009-06-22 Thread Jim Lyons
, it takes 10 minutes or so. > > Tim... > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Call a routine on mysqld startup

2009-06-15 Thread Jim Lyons
y related options in mysqld --help --verbose. Is there a > way to achieve this, without modifying the startup script ? > > Thanks in advance. > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql

Re: MAC address as primary key - BIGINT or CHAR(12)

2009-05-14 Thread Jim Lyons
er. > > I'll be interested in the answer, though, from someone with experience. > > -- Pete Wilson > http://www.pwilson.net/ > > > --- On Thu, 5/14/09, Jim Lyons wrote: > > > From: Jim Lyons > > Subject: Re: MAC address as primary key - BIGINT or CHAR(12) >

Re: MAC address as primary key - BIGINT or CHAR(12)

2009-05-14 Thread Jim Lyons
e: > 1. MAC address defined as BIGINT > 2. MAC address set as primary key > > Should I consider changing it to CHAR(12)? > > Replies will be appreciated. > Ilia > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Help with mysql query, multiple list

2009-05-08 Thread Jim Lyons
, 2009 at 11:45 AM, Abhishek Pratap wrote: > Hi Jim > > Unfortunately I have thousands of such points. So explicit statement > calling will be very expensive both computationally and in terms of > writing.. > > Thanks, > -Abhi > > > On Fri, May 8, 2009 at 12:37 P

Re: Help with mysql query, multiple list

2009-05-08 Thread Jim Lyons
table_name where start <= ( LIST of time stamps) AND end >=( > list of time stamps). > > Clearly above query accepts only one item in the list. Is there a way to do > this for multiple items in the list ??? I can't think of anything at this > moment. > > > Thanks, > -Abhi > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: grant user create privilege

2009-05-07 Thread Jim Lyons
x27;; > > If I try logging in as this user though the following happens: > > > > mysql> create database testdb; > ERROR 1044 (42000): Access denied for user 'user'@'localhost' to > database 'testdb' > > Can someone point out the error of

Re: Creation date

2009-05-05 Thread Jim Lyons
rmington Ave. > > Farmington, CT 06032 > > > > 860.674.8796 / FAX: 860.674.8341 > > > > <http://www.the-infoshop.com> www.the-infoshop.com > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: How to generate unique primary key in MySQL?

2009-04-28 Thread Jim Lyons
t; ... > user_id INT NOT NULL, > current_timestamp TIMESTAMP, > primary key (id) > ); > > I will not use auto_increment > > Is there other way to generate unique primary key in MySQL? > > Thank you > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Jim Lyons
the mysqldump command. 2009/4/19 Jim Lyons > try something like: > > mysqldump -u(user) -p (db-name) `ls z*` > (filename) > > > 2009/4/19 ChoiSaehoon > > >> Is there a way to dump only specific tables starting with a certain >> character? >> &

Re: mysqldump syntax - dumping only specific tables starting with a certain character. (e.g. z*)

2009-04-19 Thread Jim Lyons
> MSN 메신저의 차세대 버전, Windows Live Messenger! > http://windowslive.msn.co.kr/wlm/messenger/ > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Cant get TRIM to work?

2009-04-17 Thread Jim Lyons
> Richard > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: MySQL replication status plugin

2009-04-15 Thread Jim Lyons
eone has beaten > me to it, but I am so not in the mood to write one! > > > > Any hints, recommendations, and ideas are wholly welcome! > > > > --- > > Kind Regards, > > Mr Gabriel > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

how can i determine default database within a stored procedure?

2009-03-24 Thread Jim Lyons
cross-schema invocations of sp's and this is the last piece I have to figure out. Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: why is this happening?

2009-03-21 Thread Jim Lyons
No, there's only one mysqld process running. Thanks, tho. On Thu, Mar 19, 2009 at 3:56 PM, Claudio Nanni wrote: > I am afraid you have two mysql instances up on the same host. > > ps -ef | grep mysql ? > > > Claudio > > > Jim Lyons wrote: > >> I hav

why is this happening?

2009-03-19 Thread Jim Lyons
illing up after replication has broken? Thanks -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: how can I make a stored procedure executable by "public"?

2009-03-18 Thread Jim Lyons
great! thanks much. On Wed, Mar 18, 2009 at 1:52 PM, Claudio Nanni wrote: > Ok sorry, I did not understand at first. > > GRANT INSERT on mydb.audit_table to ''@'%'; > > should do the work. > > Cheers > > Claudio > > Jim Lyons wrote: &g

Re: how can I make a stored procedure executable by "public"?

2009-03-18 Thread Jim Lyons
;> >> I guess I could put it in test, but then everyone could do anything with >> it, >> which would not be particularly desirable. The table should be "insert >> only", not readable or updateable by anyone but the owner of "mydb". >> >> Is there any way I can do this? >> >> Thanks, >> Jim >> >> -- >> Jim Lyons >> Web developer / Database administrator >> http://www.weblyons.com >> > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

how can I make a stored procedure executable by "public"?

2009-03-17 Thread Jim Lyons
ege. I guess I could put it in test, but then everyone could do anything with it, which would not be particularly desirable. The table should be "insert only", not readable or updateable by anyone but the owner of "mydb". Is there any way I can do this? Thanks, Jim --

Question about LVM snapshots and innodb tables

2009-03-11 Thread Jim Lyons
resides. We use LVM snapshots to move the data around, since our databases are several terabytes. Does this mean our snapshots are inconsistent? There’s no way we can get all innodb data on a single partition. Thanks, Jim Lyons -- Jim Lyons Web developer / Database administrator http

Re: Finding replicated database

2009-03-07 Thread Jim Lyons
>> -- > >> Baron Schwartz, Director of Consulting, Percona Inc. > >> Our Blog: http://www.mysqlperformanceblog.com/ > >> Our Services: http://www.percona.com/services.html > >> > >> > > > > > > -- > Baron Schwartz, Director of Consulting, Percona Inc. > Our Blog: http://www.mysqlperformanceblog.com/ > Our Services: http://www.percona.com/services.html > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: && vs AND

2009-03-02 Thread Jim Lyons
support that syntax? > > > > http://dev.mysql.com/doc/refman/5.0/en/logical-operators.html > > > > > > __ > > This email has been scanned by Netintelligence > > http://www.netintelligence.com/email > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: catch the error

2009-02-26 Thread Jim Lyons
tabase and > table, I get the same error message. > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: MySQL log in issues

2009-02-22 Thread Jim Lyons
User='root'; > FLUSH PRIVILEGES; > exit > > When I try to log in now: > # mysql -u root -p > Enter password: > ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using > password: YES) > > Can someone give me a nudge/push/drag me kicking and screaming in the right > direction? > > Thanks everyone :) > > -- > Tim DeBoer > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: enabling storage engine with RPM install

2009-02-20 Thread Jim Lyons
tion comes with default storage engine myism and innodb. > Just verify show engines on mysql prompt. > > > On Fri, Feb 20, 2009 at 5:25 AM, Jim Lyons wrote: > >> We have 5.0.22 installed on a test machine and for some reason the innodb >> storage engine was not enabled.

Re: Resend: enabling storage engine with RPM install

2009-02-19 Thread Jim Lyons
a BlackBerry from T-Mobile > > ------ > *From*: Jim Lyons > *Date*: Thu, 19 Feb 2009 23:06:33 -0600 > *To*: > > *Subject*: Re: Resend: enabling storage engine with RPM install > How does one do that in my.cnf? > > It is possible to dis

Re: Resend: enabling storage engine with RPM install

2009-02-19 Thread Jim Lyons
y.cnf. I would love it, if I could, though. On Thu, Feb 19, 2009 at 10:47 PM, wrote: > Perhaps you disabled it via my.cnf > > > Sent via BlackBerry from T-Mobile > > -----Original Message- > From: Jim Lyons > > Date: Thu, 19 Feb 2009 22:45:01 > To: MySQL > S

Re: Resend: enabling storage engine with RPM install

2009-02-19 Thread Jim Lyons
"InnoDB: blah blah", you > have a binary that includes InnoDB, and it's just disabled for some > reason. > > Baron > > On Thu, Feb 19, 2009 at 6:58 PM, Jim Lyons wrote: > > Sorry, but I'm resending because I made a mistake in terminology and want > to > &

Resend: enabling storage engine with RPM install

2009-02-19 Thread Jim Lyons
oes one make the selections in the first place with RPMs? We've always just taken what we got and it was sufficient. Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

enabling storage engine with RPM install

2009-02-19 Thread Jim Lyons
age engine once mysql's been installed by an RPM? How does one make the selections in the first place with RPMs? We've always just taken what we got and it was sufficient. Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

what is best upgrade plan for large, replicating database?

2009-02-16 Thread Jim Lyons
the time taken should not depend on the size of the database, should it (unless I have to rebuild some indexes)? Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

how can trace stored procedure usage?

2009-01-26 Thread Jim Lyons
procedures. Is there a way to do that? Is there a better overall way to track procedure calls? What about function calls? Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: How do you backup HUGE tables?

2009-01-23 Thread Jim Lyons
management or LVM" ... I knew there was a way to > use LVM for backups somehow. Maybe a solution for us? > http://www.mysqlperformanceblog.com/?s=backup > > http://www.mysqlperformanceblog.com/2006/08/21/using-lvm-for-mysql-backup-and-replication-setup/ > > Some other backu

Re: timeout

2009-01-17 Thread Jim Lyons
a timeout problem. > How can I increase the timeout period. > TIA > mosaed > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Is deleting the .FRM, .MYD and .MYI files the same as dropping table?

2009-01-15 Thread Jim Lyons
> accidentally dumped into several databases and then replicated. > > I'm wondering if I can just go through with a simple command to blow > these all away: > > find /var/lib/mysql/ -name eventum* > > Or is there some other magic that a "DROP TABLE

Re: UPDATE jujitsu?

2009-01-08 Thread Jim Lyons
r list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Jim Lyons
pera and Safari: > http://www.rgraph.org (Updated January 4th) > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Performance tips

2008-12-30 Thread Jim Lyons
now() - it's a non-deterministic function. -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Partial Replication

2008-12-21 Thread Jim Lyons
t; replication? > > -- > -- > Open Kairos http://www.openkairos.com > Watch More TV http://sebelk.blogspot.com > Sergio Belkin - > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: How many users access MySQL

2008-12-21 Thread Jim Lyons
ze it later. > > Thanks, > Shuly, > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql?unsub=jlyons4...@gmail.com > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Trying to Create a Trigger

2008-12-05 Thread Jim Lyons
net/resume | Blog at http://www.lolajl.net/blog/ > "In rivers, the water that you touch is the last of what has passed > and the first of that which comes; so with present time." - Leonardo da > Vinci (1452-1519) > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Replication

2008-12-05 Thread Jim Lyons
o create dump and do this manually every time it fails. > > > Advise? > > Also is replication really this unreliable? It breaks at the slightest > hiccup... > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:

why is information schema so slow?

2008-11-25 Thread Jim Lyons
is problem? Is there something I can do to speed up queries to IS? I know these are views, are they so complicated that it takes forever to query them. This reduces their usefulness if true. Thanks -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Need Help

2008-11-24 Thread Jim Lyons
s & Regards, > Tanveer Bhurani > "The Bend on the road is not the end of the Road..., Unless you forget > to make the turn" > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Using Replication in mySQL version 5

2008-11-19 Thread Jim Lyons
> Based on your experiences, is there anything we should be aware of before > investigating this route and putting it into practice ? > > Thanks, > Neil > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

com_* status variables seem to reset in mysql 5

2008-11-12 Thread Jim Lyons
I ran the same script on a Windows mysql 4 version, the value of com_select persisted over the login, which is what it should. Is this a bug in mysql 5? Is something set incorrectly in my config file that would cause this (I can't find anything)? Thanks for any help. -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: mysql dump problems, no data dumped

2008-10-30 Thread Jim Lyons
OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; > /*!40103 SET [EMAIL PROTECTED] */; > > /*!40101 SET [EMAIL PROTECTED] */; > /*!40014 SET [EMAIL PROTECTED] */; > /*!40014 SET [EMAIL PROTECTED] */; > /*!40111 SET [EMAIL PROTECTED] */; > > -- Dump completed on 2008-10-27 13:50:53 &

Re: Getting more info from "show full processlist"

2008-10-27 Thread Jim Lyons
- > >What I'd like to know is how to get more info about the query > identified with 30399 (in this example). I mean, the exact query, like > "SELECT pr1, pr2 FROM someDB". > > Thanks > > Matias > > -- > MySQL General Mailing List > For lis

Re: How to count # of character occurrences in a string?

2008-10-24 Thread Jim Lyons
unction to do this. Any suggestions? > > TIA > Mike > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Most efficient way of handling a large dataset

2008-10-24 Thread Jim Lyons
> of region and location names. Would that help, or is there a better way? > > Mark > -- > http://mark.goodge.co.uk - my pointless blog > http://www.good-stuff.co.uk - my less pointless stuff > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: MySQL Sort by Array

2008-10-22 Thread Jim Lyons
-- >> >> >> No virus found in this incoming message. >> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: >> 270.8.2/1739 - Release Date: 10/22/2008 7:23 AM >> >> >> > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: SQL select basics

2008-10-17 Thread Jim Lyons
_number > > WHERE CC = max( CC ); > > > > But this also causes an error, anyone able to offer some pointers am I able > to use sub queries ? > > > > Thanks Dave. > > > > > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: "access denied" error

2008-10-10 Thread Jim Lyons
General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: mysql binlogs and their expiry times

2008-10-08 Thread Jim Lyons
gt; automatic - you have to either flush logs or bounce the server. We use >> "Purge Master" periodically. >> >> > > i do this from cron > > mysql -e "PURGE MASTER LOGS BEFORE DATE_SUB(CURRENT_DATE, INTERVAL 7 DAY)" > > perhaps not that &#x

Re: Foreign Keys

2008-10-08 Thread Jim Lyons
tial integrity OR can it also > speed up JOIN queries? > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Question of Relationship between tables

2008-10-08 Thread Jim Lyons
(normalized) way of representing this? > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: mysql binlogs and their expiry times

2008-10-08 Thread Jim Lyons
Zbigniew Szalbot > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Complex SELECT

2008-09-22 Thread Jim Lyons
-- > > > Is it possible to have the column "OptionalDesc" as showed in the first > table above? > > Thanks for any help. > > Andre > > -- > Andre Matos > [EMAIL PROTECTED] > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Large Query Question.

2008-09-04 Thread Jim Lyons
recommendations that could help us improve the speed? Would more >>>> memory help us? Any comments or recommendations are greatly >>>> appreciated. >>>> >>>> Thanks much. >>>> >>>> >>>> Jim Leavitt >>>> Developer >>>> Treefrog Interactive Inc. (<http://www.treefrog.ca>www.treefrog.ca) >>>> "Bringing the Internet to Life" >>>> >>>> >>>> >>>> >>> >>> -- >>> MySQL General Mailing List >>> For list archives: <http://lists.mysql.com/mysql> >>> http://lists.mysql.com/mysql >>> To unsubscribe: <http://lists.mysql.com/[EMAIL PROTECTED]> >>> http://lists.mysql.com/[EMAIL PROTECTED] >>> >> >> Jim Leavitt >> Developer >> Treefrog Interactive Inc. (<http://www.treefrog.ca/>www.treefrog.ca) >> "Bringing the Internet to Life" >> ph: 905-836-4442 ext 104 >> fx: 905-895-6561 >> >> >> > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Large Query Question.

2008-09-03 Thread Jim Lyons
re greatly appreciated. > > Thanks much. > > > Jim Leavitt > Developer > Treefrog Interactive Inc. (www.treefrog.ca) > "Bringing the Internet to Life" > > > > > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: question about the mysql prepare/execute commands

2008-09-02 Thread Jim Lyons
> See if that improves the numbers on the prepared statement. > > - michael dykman > > > On Tue, Sep 2, 2008 at 5:41 PM, Jim Lyons <[EMAIL PROTECTED]> wrote: > > I have a question about the prepare/execute commands provided by mysql. > > > > I devised

question about the mysql prepare/execute commands

2008-09-02 Thread Jim Lyons
e for statement-at-a-time versus prepare/execute? And why prepare/execute in the mysql commandline program is so much slower than prepare/execute in Perl? Thanks. Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Impossible WHERE in explain

2008-09-01 Thread Jim Lyons
#x27; AND PARAM = > 'TIMEOUT'table |type |possible_keys |key | ken_len|ref | rows| 1 > |SIMPLE | | | | | |Impossible WHERE noticed afte > -- > Krishna Chandra Prajapati > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: alter merge table doesn't work as documented (?)

2008-08-26 Thread Jim Lyons
(x int); > create table t3 (x int); > > create table t_merge (x int) engine=merge union=(t1,t2,t3); > > drop table t1; > drop table t_merge; > > create table t_merge (x int) engine=merge union=(t2,t3); > > -Original Message- > From: Jim Lyons [mailto:[EMAIL

alter merge table doesn't work as documented (?)

2008-08-26 Thread Jim Lyons
-- -- alter table t_merge union=(t2, t3) -- ERROR 1146 (42S02) at line 16: Table 'jlyons.t1' doesn't exist Is this a bug or expected behavior? Thanks, Jim -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: ERROR 1050 ( ) at line : Table 'columns_priv' already exists

2008-08-24 Thread Jim Lyons
correction, the command that's failing evidently is the 'create table columns_priv', not a drop table. Sorry for the typo. 2008/8/24 Jim Lyons <[EMAIL PROTECTED]> > The command that's failing evidently is the "drop table columns_priv" which > is why yo

Re: ERROR 1050 ( ) at line : Table 'columns_priv' already exists

2008-08-24 Thread Jim Lyons
le... why i must droped my > table? cırrent server is running properly.. but either OS version or HW is > very old. We took new powerfull server, anc we want to migrate our data to > new server... > onlt this i want to do it. > > > > > 2008/8/22 Jim Lyons <[EMAIL PR

Re: ERROR 1050 ( ) at line : Table 'columns_priv' already exists

2008-08-22 Thread Jim Lyons
sy <[EMAIL PROTECTED]> > İ am migrating database from mysql-client-4.0.20 running server(current) to > mysql-client-5.0.51a running server(new) ..i ve took mysqldump and > transfered to new server and restored but process broken up with this error > message. > > > > >

Re: ERROR 1050 ( ) at line : Table 'columns_priv' already exists

2008-08-22 Thread Jim Lyons
exists* > > > My old server mysql version is mysql-client-4.0.20 is running on > old > server but mysql-client-5.0.51a is running now > > what can i do > > regards > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: multiple mysql service on the same server

2008-08-22 Thread Jim Lyons
ces) on the same server. > I know we can do that using different port, but should i use two different > my.cnf files, and also, what is the procedure to stop one mysql service and > keep other one running. > > regards > anandkl > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Re: Replication Error

2008-08-19 Thread Jim Lyons
;5.0.45-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 > Source distribution > 080819 12:55:41 [Warning] Neither --relay-log nor --relay-log-index were > used; so replication may break when this MySQL server acts as a slave and > has his hostname changed!! Please

Re: can some please help me -- REPLICATION

2008-08-10 Thread Jim Lyons
> immediately. > > Thank you. > ******** > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

Master-to-Master replication on same server

2008-07-22 Thread Jim Lyons
;t specify the socket the 3306 master needs to connect to on the 3307 master. In the "change master to" command I can only specify the port. I did specify it as 3307 but the "slave" still can't connect. Has anyone done this? -- Jim Lyons Web developer / Database administrator http://www.weblyons.com

  1   2   >