Re: file permission

2006-02-28 Thread unplug
Actually, here is my case. There is a script owned by user A running daily. script--- rm -rf /tmp/report.csv mysql -umysql -pabc table -e "SELECT * into outfile '/tmp/report.csv' fields terminated by ',' lines terminated by '\n' FROM table;" In the first run, a file with the following p

Re: file permission

2006-02-28 Thread CodeHeads
On Tuesday 28 February 2006 23:41, Joshua Kugler wrote: > You can't do that. The mysql server runs as user mysql, so it cannot > create files owned by another user. If you run the mysql server as root > (don't!), you might be able to do that, but I do not believe mysql has a > facility for changi

Re: file permission

2006-02-28 Thread Joshua Kugler
You can't do that. The mysql server runs as user mysql, so it cannot create files owned by another user. If you run the mysql server as root (don't!), you might be able to do that, but I do not believe mysql has a facility for changing the owner of a file. You are better off running a script

Re: file permission

2006-02-28 Thread unplug
Thanks! But I want to change the default setting of the file permission and ownership. (i.e. the file will be created with permission and ownerhsip according to my setting). On 3/1/06, CodeHeads <[EMAIL PROTECTED]> wrote: > On Tuesday 28 February 2006 22:55, unplug wrote: > > Hi, > > When I use a

Re: file permission

2006-02-28 Thread CodeHeads
On Tuesday 28 February 2006 22:55, unplug wrote: > Hi, > When I use a query "SELECT * into outfile '/tmp/report.csv' fields > terminated by ',' lines terminated by '\n' FROM table;", it will > create a file with the following permission and owner. > > -rw-rw-rw- 1 mysql mysql 2489 Mar 1 11:30 r

file permission

2006-02-28 Thread unplug
Hi, When I use a query "SELECT * into outfile '/tmp/report.csv' fields terminated by ',' lines terminated by '\n' FROM table;", it will create a file with the following permission and owner. -rw-rw-rw- 1 mysql mysql 2489 Mar 1 11:30 report.csv How can I change the default permission or the ow

Re: how to change root password

2006-02-28 Thread Sam Tran
On 2/26/06, Arnel Pastrana <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I was installing drupal on my webserver with mysql after i followed > instructions on how to configure and setup drupal i cant't access the > root password of my mysql. my password won't work all. > > Any idea how to change my

how to change root password

2006-02-28 Thread Arnel Pastrana
Hi everyone, I was installing drupal on my webserver with mysql after i followed instructions on how to configure and setup drupal i cant't access the root password of my mysql. my password won't work all. Any idea how to change my password of root? or is is passible that my mysql is curr

Silicon Valley MySQL Meetup Group: Storage Engines in Depth

2006-02-28 Thread Jeremy Cole
Interested in MySQL? Live in peninsula/south bay? This MySQL Meetup is for you! Join us for the March MySQL Meetup on March 13th at 7pm in Santa Clara! The topic for this month is Storage Engines In-Depth! I'll cover the details of both MyISAM and InnoDB, how each works, its strengths and wea

Re: Some general questions

2006-02-28 Thread Peter Brawley
>Thanks! >With regard to the ClOBs or Text fields, is that CLOB support? >Or support for Text columns that hold up to 60,000 bytes of TEXT data? In MySQL they're BLOBs not CLOBs, see http://dev.mysql.com/doc/refman/5.1/en/string-type-overview.html. PB http://www.artfulsoftware.com No vi

Re: Cleaning Bin-Log Files

2006-02-28 Thread Rhino
- Original Message - From: "Shaun Adams" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 28, 2006 5:19 PM Subject: Cleaning Bin-Log Files Does anyone know of a method or script that will automatically delete bin-log files after x days? I've got a few customers, all utilizing a mast

Re: bind-address by name under 5.0.18

2006-02-28 Thread James Long
>6752 exit(1); >6753} >6754my_bind_addr = (ulong) > ((in_addr*)ent->h_addr_list[0])->s_addr; >6755 } >6756 break; > > > > And with other DBs, I can set 'sql.example.com' to resolve to N > > IPs (N=4 in this example): > > > > 10.0.0.10 > > 1

Cleaning Bin-Log Files

2006-02-28 Thread Shaun Adams
Does anyone know of a method or script that will automatically delete bin-log files after x days? I've got a few customers, all utilizing a master and slave server... my problem is that the harddrives often get filled to capacity if they go unchecked over a few months. Most of this is attributed

Re: bind-address by name under 5.0.18

2006-02-28 Thread Jeremy Cole
Hi James, Sort of. If I run the command manually, it does. But my script uses su to run the server as an unprivileged user. What happens if you: su -m mysql -c 'sh -c "/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf --user=mysql --datadir=/var/db/mysql --pid-file=/va

How to pass a string expression into a stored procedure

2006-02-28 Thread Price, Randall
I have a SELECT query that looks similar to the following: SELECT FirstName, LastName FROM myTable WHERE LastName IN ('PRICE', 'SMITH'); What I want to do is create a stored procedure for this SELECT query similar to the following: C

Re: UPDATE from monthly to yearly rows

2006-02-28 Thread Peter Brawley
Cor, >I need to put all available monthly Values from Updates  >to 1 Data record where MyKey and Year are equal. IOW you want to save the results of the business end of a crosstab (pivot table) query. The crosstab analysis will require a full query. MySQL has an INSERT ... SELECT command, b

Re: Some general questions

2006-02-28 Thread Peter Brawley
>Thanks! >With regard to the ClOBs or Text fields, is that CLOB support? >Or support for Text columns that hold up to 60,000 bytes of TEXT data? In MySQL they're 'BLOB's not 'CLOB's, see http://dev.mysql.com/doc/refman/5.1/en/string-type-overview.html. PB http://www.artfulsoftware.com ---

Re: Help with Query Optimization

2006-02-28 Thread Peter Brawley
Kishore, > We use Vbulletin for our message boards, and I have a query which >takes approximately 1.2 - 1.5 seconds to execute, on a table ('thread') >having around 130,000 rows, it is as follows >SELECT threadid >FROM thread >LEFT JOIN deletionlog >ON ( thread.threadid = deletionlog

Re: Some general questions

2006-02-28 Thread J A
Thanks! With regard to the ClOBs or Text fields, is that CLOB support? Or support for Text columns that hold up to 60,000 bytes of TEXT data? From: Peter Brawley <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: J A <[EMAIL PROTECTED]> CC: mysql@lists.mysql.com Subject: Re: Some general qu

Help with Query Optimization

2006-02-28 Thread Kishore Jalleda
Hi All, We use Vbulletin for our message boards, and I have a query which takes approximately 1.2 - 1.5 seconds to execute, on a table ('thread') having around 130,000 rows, it is as follows SELECT threadid FROM thread AS thread LEFT JOIN deletionlog AS deletionlog ON ( thread.threadid =

Re: Some general questions

2006-02-28 Thread Peter Brawley
>Does MySQL support the following: >- Support for DDL commands and dynamic SQL inside stored procedures? Yes. >- EXECUTE STATEMENT in Stored Procedures. (may be same question as above) Yes to a limited extent: PREPARE | EXECUTE accepts CREATE TABLE, DELETE, DO, INSERT, REPLACE, SELECT, SET,

Re: Some general questions

2006-02-28 Thread Martijn Tonies
> I was asked to scope out the following features, and am not the person to be > implementing them. > Hence the manuals weren't particularly helpful. > I'm looking for definitive references one way or the other for the following > questions. > SOS! > > Does MySQL support the following: > - Suppo

Some general questions

2006-02-28 Thread J A
I was asked to scope out the following features, and am not the person to be implementing them. Hence the manuals weren't particularly helpful. I'm looking for definitive references one way or the other for the following questions. SOS! Does MySQL support the following: - Support for DDL comma

Re: document

2006-02-28 Thread stan
Please read the document. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: jdbc:mysql

2006-02-28 Thread Edwin Cruz
does the user that you're using has the enough privileges to connect from 192.xxx.xxx.xxx ??? > Is your mysql server listening just on localhost (127.0.0.1)? > > That is differnet than 192.xxx.xxx.xxx > > > > > >> -Original Message- >> From: Xiaobo Chen [mailto:[EMAIL PROTECTED] >> Sent:

RE: jdbc:mysql

2006-02-28 Thread George Law
Is your mysql server listening just on localhost (127.0.0.1)? That is differnet than 192.xxx.xxx.xxx > -Original Message- > From: Xiaobo Chen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 28, 2006 11:27 AM > To: Amaia Anabitarte > Cc: mysql@lists.mysql.com > Subject: Re: jdbc:

Re: jdbc:mysql

2006-02-28 Thread Xiaobo Chen
Not sure yet. Could it be that you're behind the router? And you might need to redirect the traffic to the model to the IP of your PC and you're PC's IP should be set static so that next time when you reboot, it won't change. Xiaobo > Hi, > > I have a problem connecting to MySQL. I could connect

RE: Dynamic queries v/s Stored Procs

2006-02-28 Thread rtroiana
Thanks for the answer. Now let me get this right, are you suggesting using prepared statements from the C# code? Since I have seen some examples of prepared statements used in stored procedures too. I understand stored procedures are not best tool in all situations. But what if while inserting r

RE: MYSQL: Unlimited Forums, Scalablity Issues, advice please? - Bayesian Filter detected spam

2006-02-28 Thread Gordon Bruce
Let's try to characterize the load and sizing. If the posts are mostly text. 100 forums X 100,000 posts X 2,000 bytes per post = 20GB large but not huge We have people reading the posts. Even speed readers will take minutes to read the new posts. Maybe 1 in 10 - 100 readers will do a new post. A p

Dynamic queries v/s Stored Procs

2006-02-28 Thread rtroiana
I'm in a process of transitioning from dynamic queries that were generated in C# code to using Stored Procedures. Although i haven't done any analysis of time difference between the two. But i do have few reasons to move to stored procedures: 1) I work on a security application and i heard of S

Upgrade problems 4.1->5.0.18

2006-02-28 Thread Orton, Steve
Hello fellow listers, I recently upgraded via RPMs from 4.1 to 5.0.18 on a RH9.0 (glibc2.3, kernel 2.4.20) machine. Now I have problems starting the mysqld automatically. When it is invoked, the error "Couldn't find MySQLmanager or server" is emitted. Here is a short history of my actions

Re: email to db

2006-02-28 Thread Daniel da Veiga
On 2/24/06, Mark <[EMAIL PROTECTED]> wrote: > Can anyone tell me if it is possible to send an email from outlook to a DB so > it updates a record. I have a php tipping script hosted with a mysql DB but > would like users to email their tips instead of loggin on the site. > > Mark > Well, no, DB

RE: returning empty columns

2006-02-28 Thread Price, Randall
Chris, See if this works for you: SELECT ' ' as 'Call' , concat(FName, ' ', LName) as Name , ' ' as 'Mar-6' , ' ' as 'Mar-13' , ' ' as 'Mar-20' , ' ' as 'Mar-27' FROM table ORDER BY LName, FName Notice that there is a single blank space being ret

RE: mySQL 5 and CPu at 99.99%

2006-02-28 Thread Taiyo
Thank you very much, I will have a look at it. -Original Message- From: leo huang [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 3:47 AM To: Taiyo Cc: mysql@lists.mysql.com Subject: Re: mySQL 5 and CPu at 99.99% hi, Taiyo >| innodb_buffer_pool_size | 8388608 >| key_bu

Re: returning empty columns

2006-02-28 Thread Rhino
- Original Message - From: "2wsxdr5" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 28, 2006 3:43 AM Subject: returning empty columns This is probably going to sound like an odd request, but is there a way to return empty columns in Mysql. For example a roll call sheet I want to d

jdbc:mysql

2006-02-28 Thread Amaia Anabitarte
Hi, I have a problem connecting to MySQL. I could connect to the database with this sentence: jdbc:mysql://localhost:3306/db but not with this sentence, with the same IP that the localhost: jdbc:mysql://192.xxx.xxx.xxx:3306/db What's wrong? Thanks for all, Amaia -- MySQL General Mailing

Simple libmysql C API tutorial needed

2006-02-28 Thread Dirk
Hi! I already wrote a wrapper for unixodbc... Now I would like to skip odbc and connect to mysql directly... AFAIK that is done using libmysql, right? I looked at the www.mysql.com buzzword-bloat for 15 seconds before I decided to subscribe here and just ask instead (I'm one of those too-long-didn

UPDATE from monthly to yearly rows

2006-02-28 Thread C.R.Vegelin
Hi List, Please help me with the following problem in MySQL 5.0.15. I have 2 MyISAM tables like: - table Updates with fields myKey, Year, Month, Value where Month has the values 1 .. 12 - table Data with fields myKey, Year, Jan, Feb, ... Dec I need to put all available monthly Values from U

Re: mySQL 5 and CPu at 99.99%

2006-02-28 Thread leo huang
hi, Taiyo >| innodb_buffer_pool_size | 8388608 >| key_buffer_size | 8388600 Try to increase the innodb_buffer_pool_size if you use the innodb storage or key_buffer_size if MyISAM storage is used or both. You can get more information about innodb_buffer_pool_size and key_bu

returning empty columns

2006-02-28 Thread 2wsxdr5
This is probably going to sound like an odd request, but is there a way to return empty columns in Mysql. For example a roll call sheet I want to do a select of names from my table and then add a column for each of the next 12 weeks. I tried this. SELECT `Call`, concat(FName, ' ', LName

RE: error 1016 : cant open ibd file even though it exists

2006-02-28 Thread mysql
Still a mystery about your missing InnoDB database files Rithish. I seem to remember there is an option that will allow you to store InnoDB files in their own seperate directory safely, and not in the /var/lib/mysql default directory. One of the many things I like about MyISAM tables is that