Re: Shell

2006-09-11 Thread Daniel Salinas
Now that all of the latest distros of OSX use bash by default, I thought I would amend this with bash instructions. When you instantiate a shell in OSX, the ~/.bash_login file is parsed. Because this isn't a global file you can edit it just like the .tshrc below. The entry you need to make is: ex

Re: Shell

2006-09-09 Thread Paul McCullagh
Hi Steve, You have to edit a file called ".tcshrc" which resides in your users home directory, and add ":/usr/local/mysql/bin" to the PATH environment variable. The tricky part is, this file is not visible to any text editor (for example BBEdit), so I always use a command line editor, for

Re: Shell execution of mysql query

2005-02-23 Thread Paul DuBois
At 10:29 -0800 2/23/05, Nupur Jain wrote: I am executing a mysql query through shell and expecting to see a return of SQL execution. mysql -D $dbName --vertical -u $DBUSER -p$DBPASS < $queryFile > $opFile rc=$? Here rc is always 0 and so are $opFile entries. $queryFile contains exactly the same

RE: Shell execution of mysql query

2005-02-23 Thread Tom Crimmins
On Wednesday, February 23, 2005 12:30, Nupur Jain wrote: > I am executing a mysql query through shell and expecting to see a > return of SQL execution. > > mysql -D $dbName --vertical -u $DBUSER -p$DBPASS < $queryFile > > $opFile > rc=$? > > Here rc is always 0 and so are $opFile entries. $qu

Re: Shell execution of mysql query

2005-02-23 Thread Olivier Kaloudoff
On Wed, 23 Feb 2005, Nupur Jain wrote: Hi Nupur, I am executing a mysql query through shell and expecting to see a return of SQL execution. mysql -D $dbName --vertical -u $DBUSER -p$DBPASS < $queryFile > $opFile rc=$? Here rc is always 0 and so are $opFile entries. $queryFile contains exactly the

RE: Shell Script to Insert Data

2003-10-10 Thread Jeff McKeon
The way I usually do it is this.. I have a shell scipt called "query" It contains: /fullpath/mysql --user=root --password= Database_Name I then make new scripts for the queries as such: (query file name: Select_all.sql) Select * from Table where blah=foo; To run this I then execute

Re: Shell Script to Insert Data

2003-10-10 Thread Colleen Dick
Mike Tuller wrote: I am trying to create a script that will insert data. Right now I am just using something simple to test this out, but I can't get it to work. Here is what I have. mysql --user=root --password= Database_Name; INSERT INTO table_name (column_name) VALUES ("value"); After I

Re: Shell Script to Insert Data

2003-10-10 Thread gerald_clark
The first line starts mysql. When mysql exits, the second line does nothing, as it is not a valid shell command. try : echo 'INSERT INTO table_name (column_name) VALUES ("value")' | mysql --user=root --password= Database_Name Or put the second line in a file, and cat the file through a

RE: Shell Script to Insert Data

2003-10-10 Thread Jeff McKeon
Put the full path to mysql in the script... Jeff > -Original Message- > From: Mike Tuller [mailto:[EMAIL PROTECTED] > Sent: Friday, October 10, 2003 1:07 PM > To: [EMAIL PROTECTED] > Subject: Shell Script to Insert Data > > > I am trying to create a script that will insert data. Righ

Re: shell script to backup

2002-07-18 Thread jusob
En réponse à Ilyas Keser <[EMAIL PROTECTED]>: Hi you can use mysqldump et a crontab to save all databases in a text file. Regards Julien Sobrier > Hi all... > > I am a new Linux user. Does any one have a shell script to backup all > Mysql databases? > > Thanks > ilyas... > > -

RE: shell script to backup

2002-07-18 Thread Stefano Incontri
You could use something like : mysqldump -Q --opt -F --all-databases -h serverName -u root --password=yourpasswd > /some/where/backup.sql It generates a SQL commands file able to completely rebuild the DB, e.g. useful after a mysql_install_db command. Ciao, Stefano > -Original Message

Re: shell script to backup

2002-07-18 Thread Duncan Hill
On Thu, 18 Jul 2002, Ilyas Keser wrote: > Hi all... > > I am a new Linux user. Does any one have a shell script to backup all > Mysql databases? Read The fine Manual - it gives several ways. - Before posting, please check:

RE: shell script to backup

2002-07-18 Thread Cal Evans
mysqldump -opt > everything.sql * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Ilyas Keser [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 8:44 AM To: [EMAIL PROTECTED] Subject: shell script to backup Hi all... I am a new Linux user. D

Re: shell for osX

2002-01-26 Thread Paul DuBois
At 9:42 -0800 1/26/02, mike vogel wrote: >can anyone recommend a command line shell to admin mysql that will >run under osX? thanks in advance! What does that mean? From the wording of the question (command line shell), it sounds like you're asking about tcsh, bash, etc., but from "admin mysql

Re: Shell Shocking

2001-02-13 Thread Van
Rolf Hopkins wrote: > > What you have just described means that database permissions have not been > set up correctly and your ISP has left himself wide open for all kinds of > attacks and I'm not just talking about attacks on the database itself but > also attacks on the whole system. Ie access

Re: Shell Shocking

2001-02-13 Thread Rolf Hopkins
t;[EMAIL PROTECTED]> To: "clay bond" <[EMAIL PROTECTED]> Cc: "mysql@lists. mysql. com" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 21:18 Subject: Re: Shell Shocking > Problem is that most ISPs can't afford a competent DBA...;( > > clay

Re: Shell Shocking

2001-02-13 Thread Mikel King
Absolutely this is nothing short of bad adminingIbet you could scag in their passwd file and has root access in short order...;( And of course the ISP will blame mysql if anything happens to them though...lazy bad ISP cheers, mikel Donald Korth wrote: > Hello > > The hosting company

Re: Shell Shocking

2001-02-13 Thread Mikel King
Problem is that most ISPs can't afford a competent DBA...;( clay bond wrote: > On Tue, 13 Feb 2001, Donald Korth wrote: > > > The hosting company has given me a user name and passwd . When i log into my own >site thro' a telnet session i 'm able to view all the databases created in the server

Re: Shell Shocking

2001-02-13 Thread clay bond
On Tue, 13 Feb 2001, Donald Korth wrote: > The hosting company has given me a user name and passwd . When i log into my own >site thro' a telnet session i 'm able to view all the databases created in the server >that includes DBs not created by me . I also did a "USE DB" command to connect t

Re: Shell Shocking

2001-02-12 Thread Colin Faber
Donald, Poor administration of the server or incorrect privileges assigned to your user account. Donald Korth wrote: > Hello > > The hosting company has given me a user name and passwd . When i log into my own >site thro' a telnet session i 'm able to view all the databases created in t