Importing a Database (.mpb file)

2006-10-07 Thread David Blomstrom
Hopeffully this will be the last question in this series. :) I want to copy a database from my PC to my Apple laptop. I installed MySQL's GUI Tools on both computers, created a file named Backup.mpb on my PC, then put a copy of it on my Mac. Now I'm trying to figure out how to get Backup.mbp int

Re: Too many open processes??

2006-10-07 Thread Dan Nelson
In the last episode (Oct 07), Cabbar Duzayak said: > I am using mysql_pconnect from PHP to connect to our mysql server. > However, whenever there is a temprorary surge in the number of users, > i.e. concurrent users jump from 30 to 200 for like 5 minutes, Apache > creates 200 processes and after th

Re: Setting Up MySQL Administrator

2006-10-07 Thread John Meyer
David Blomstrom wrote: OK, I'm halfway there. But I don't understand what you mean by "saved settings." Is there some sort of default value I can try? Also, if I can't recover my password, is there a file I can open and retrieve it from? I tried it with localhost, Port 3306, Username: root an

Re: Setting Up MySQL Administrator

2006-10-07 Thread David Blomstrom
OK, I'm halfway there. But I don't understand what you mean by "saved settings." Is there some sort of default value I can try? Also, if I can't recover my password, is there a file I can open and retrieve it from? I tried it with localhost, Port 3306, Username: root and the password of one of

Re: Setting Up MySQL Administrator

2006-10-07 Thread John Meyer
David Blomstrom wrote: I just downloaded MySQL Administrator and am now trying to set it up. Can anyone tell me what "stored connection" and "Server Host" mean? I'm using Apache on Windows XP, but I'm not sure what they mean by Server Host. 3306 is listed under "Port" by default. Also, what ar

Setting Up MySQL Administrator

2006-10-07 Thread David Blomstrom
I just downloaded MySQL Administrator and am now trying to set it up. Can anyone tell me what "stored connection" and "Server Host" mean? I'm using Apache on Windows XP, but I'm not sure what they mean by Server Host. 3306 is listed under "Port" by default. Also, what are the default username a

Too many open processes??

2006-10-07 Thread Cabbar Duzayak
I am using mysql_pconnect from PHP to connect to our mysql server. However, whenever there is a temprorary surge in the number of users, i.e. concurrent users jump from 30 to 200 for like 5 minutes, Apache creates 200 processes and after the surge is over, they die gracefully, and # of processes g

Re: Moving Database from PC to Apple

2006-10-07 Thread David Blomstrom
Ah, that's better. I learned how to use Terminal just the other day. I'll check out the other programs you recommended, too. Thanks. - Original Message From: Douglas Sims <[EMAIL PROTECTED]> To: David Blomstrom <[EMAIL PROTECTED]> Cc: mysql@lists.mysql.com Sent: Saturday, October 7, 2006

Re: Moving Database from PC to Apple

2006-10-07 Thread Douglas Sims
Hi David mysqldump is a command-line program which you can run through the terminal window. The "Terminal" application is in the "Utilities" directory under the "Applications" directory. The unix command-line interface is amazingly useful; even though it may seem a bit intimidating at f

Re: Moving Database from PC to Apple

2006-10-07 Thread David Blomstrom
Thanks. Is this something I can do through phpMyAdmin? I'm not used to working with MySQL directly and don't understand exactly what this command means: shell> mysqldump [options] --all-databasesDoes "shell" mean I have to be working in some sort of command line program? Also, if I can't figure

Re: Moving Database from PC to Apple

2006-10-07 Thread mos
At 04:00 PM 10/7/2006, you wrote: I recently purchased a MacBook Pro laptop and hired someone to help me set up Apache, PHP and MySQL on it. Now I want to import my database tables from my PC. So my main question is this: Is there a quick, simple of importing an entire database? If not, I figur

How to force a column to be Float and not Decimal in MySQL 5.0?

2006-10-07 Thread mos
I'm creating a table using a Select statement and several of the columns are mathematical expressions. Unfortunately MySQL 5.0 creates them as Decimal and I don't need that much precision. Is there a way to force MySQL to create these columns as float? Example: create table x1 select 123.1*2.

Moving Database from PC to Apple

2006-10-07 Thread David Blomstrom
I recently purchased a MacBook Pro laptop and hired someone to help me set up Apache, PHP and MySQL on it. Now I want to import my database tables from my PC. So my main question is this: Is there a quick, simple of importing an entire database? If not, I figured I'd simply export each database

Re: How to get the size of a row

2006-10-07 Thread Dan Nelson
In the last episode (Oct 07), abhishek jain said: > I wanted to know the size of the data stored in a row of a table. > I mean is there something like "select size from table where x..." If you mean something similar to totaling up the sizes reported by DUMP(field) in Oracle, no. The best you can

How to get the size of a row

2006-10-07 Thread abhishek jain
Hi, I wanted to know the size of the data stored in a row of a table. I mean is there something like "select size from table where x..." -- Regards Abhishek Jain

Re: need help on before insert trigger

2006-10-07 Thread Patrick Aljord
On 10/7/06, Patrick Aljord <[EMAIL PROTECTED]> wrote: thanx it works the trigger is created successfully but it has no effect. here it is: delimiter // create trigger testref before insert on bookmarks for each row begin if new.title like '%xxx%' then set new.id='xxx';

Re: need help on before insert trigger

2006-10-07 Thread Patrick Aljord
thanx it works the trigger is created successfully but it has no effect. here it is: delimiter // create trigger testref before insert on bookmarks for each row begin declare dummy char(2); if new.title like '%xxx%' then set new.id='xxx'; end if; end; //create t

Re: need help on before insert trigger

2006-10-07 Thread Patrick Aljord
I meant the error is: mysql> CREATE TRIGGER testref BEFORE INSERT ON bookmarks -> FOR EACH ROW -> BEGIN -> IF NEW.title LIKE '%xxx%' THEN -> SET NEW.id ='xxx'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version f

Re: need help on before insert trigger

2006-10-07 Thread Mark Leith
Hi Patrick, Patrick Aljord wrote: I would like to prohibit the value 'xxx' on my column title, and if it does contain the value I would like to create an exception by assigning 'xxx' to the primary key id which is int(5). This is what I do but I get an error on its creation so I guess it's not

Re: need help on before insert trigger

2006-10-07 Thread Paul DuBois
At 16:23 +0200 10/7/06, Patrick Aljord wrote: I would like to prohibit the value 'xxx' on my column title, and if it does contain the value I would like to create an exception by assigning 'xxx' to the primary key id which is int(5). This is what I do but I get an error on its creation so I gues

need help on before insert trigger

2006-10-07 Thread Patrick Aljord
I would like to prohibit the value 'xxx' on my column title, and if it does contain the value I would like to create an exception by assigning 'xxx' to the primary key id which is int(5). This is what I do but I get an error on its creation so I guess it's not the right way: CREATE TRIGGER testre

Re: MySQL 5 query takes 100x longer than MySQL 4.1.10

2006-10-07 Thread Angelo Zanetti
mos wrote: I have a simple query in MySQL 5.0.24: insert into table1 (col1) select distinct col1 from bigtable; that will run for 1:14:18. Both tables are MyISAM and table1 was just created with 2 columns and is empty. The "select distinct col1 from bigtable" takes only 2 minutes to run

Re: How to skip reading /etc/my.cnf by mysqld

2006-10-07 Thread Visolve DB Team
Hi, Try, > libexec/mysqld --verbose --help for mysqld options with variables or >bin/mysqld_safe --verbose --help for mysqld options For instance I want only /etc/my.cnf read and skip reading of other default file, >./bin/mysqld_safe --defaults-file=/etc/my.cnf Hope this will do good. T

Re: Sqsh + NULL Values

2006-10-07 Thread Ow Mun Heng
On Sat, 2006-10-07 at 13:55 +0800, Ow Mun Heng wrote: > Hi, > > Anyone here familiar with sqsh? > I'm trying to get bcp going here for replication between a MSSQL > server(2000) to a MySQL server (5.0). > > Since I've not found any "decent" way to do the replication, I'm now > using sqsh to do i