MySQL Shell 8.0.15 for MySQL Server 8.0 and 5.7 has been released

2019-02-01 Thread Balasubramanian Kandasamy
Dear MySQL users, MySQL Shell 8.0.15 is a maintenance release of MySQL Shell 8.0 Series (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade to MySQL Shell 8

MySQL Shell 8.0.14 for MySQL Server 8.0 and 5.7 has been released

2019-01-21 Thread Kent Boortz
Dear MySQL users, MySQL Shell 8.0.14 is a maintenance release of MySQL Shell 8.0 Series (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade to MySQL Shell 8

MySQL Shell 8.0.12 for MySQL Server 8.0 and 5.7 has been released

2018-07-27 Thread Hery Ramilison
Dear MySQL users, MySQL Shell 8.0.12 is a maintenance release of MySQL Shell 8.0 Series (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade to MySQL Shell 8

MySQL Shell 8.0.3-dmr has been released

2017-09-29 Thread Kent Boortz
Dear MySQL users, This is the second development release version of MySQL Shell 8.0 (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell is an interactive JavaScript, Python and SQL console interface, supporting development and administr

MySQL Shell 1.0.10 GA has been released

2017-07-28 Thread Balasubramanian Kandasamy
Dear MySQL Users, A new GA (general availability) version of MySQL Shell (a component of the MySQL Server) has been made available: MySQL Shell 1.0.10 GA. The MySQL Shell is provided under Oracle's dual-license. MySQL Shell is an interactive JavaScript, Python and SQL console inte

MySQL Shell 8.0.0-dmr has been released

2017-07-14 Thread Balasubramanian Kandasamy
Dear MySQL users, This is the first development release version of MySQL Shell 8.0 (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell is an interactive JavaScript, Python and SQL console interface, supporting development and administr

MySQL Shell 1.0.9 GA has been released

2017-04-12 Thread Hery Ramilison
Dear MySQL Users, This is the first GA version of MySQL Shell (a component of the MySQL Server). The MySQL Shell is provided under Oracle's dual-license. MySQL Shell is an interactive JavaScript, Python and SQL console interface, supporting development and administration for the MySQL S

MySQL Shell 1.0.8 RC has been released

2017-03-06 Thread Kent Boortz
Dear MySQL users, MySQL Shell 1.0.8 RC is the first release candidate of the MySQL for MySQL Shell 1.0 series. The MySQL Shell is an interactive JavaScript, Python and SQL command-line interface, supporting development and administration for the MySQL Server. The MySQL Shell includes the X

MySQL Shell 1.0.3 m1 Development Release has been released

2016-04-11 Thread karen langford
Dear MySQL users, Today we are excited to announce for the first time the MySQL Shell, a new component for the MySQL Server. The MySQL Shell is an interactive JavaScript and Python command-line interface, supporting development and administration for the MySQL Server. The MySQL Shell enables

Re: MySQL Variable size usage in shell prompt

2015-06-16 Thread wagnerbianchi.com
Not sure about the size of your dump, but, have you tried to set the new value on the server and client side? you can increase max_allowed_packet up to 1G. Let us know after you tried that, and maybe other guys have another solution to share... -- *Wagner Bianchi, +55.31.8654.9510* Oracle ACE Dir

MySQL Variable size usage in shell prompt

2015-06-16 Thread Manivannan S
Hi, When we are trying to restore the dump file, we got an error like "Got a packet bigger than max_allowed_packet". Then we increased max_allowed_packet variable size and passed along with MySQL restore command. mysql -max_allowed_packet=128M -u -p < /path/file.sql After increasing the varia

Re: passing shell variable to the SET data type in parentheses

2012-10-03 Thread Morning Star
Thanks guys for all the corrections. I fix it by executing: mysql -u $user -p${password} --skip-column-names -e 'ALTER TABLE '$table' MODIFY '$kolom' SET( '$var' );' $database ; :) Greetings, Marco On Thu, Oct 4, 2012 at 4:49 AM, wrote: > 2012/10/03 20:35 +0700, Morning Star > $ ech

Re: passing shell variable to the SET data type in parentheses

2012-10-03 Thread hsv
2012/10/03 20:35 +0700, Morning Star $ echo $var "value1","value2","value3" what i did: mysql -u $user -p${password} --skip-column-names -e 'ALTER TABLE '$table' MODIFY '$kolom' SET(" '$var' ");' $database ; the result: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;

Re: passing shell variable to the SET data type in parentheses

2012-10-03 Thread Garot Conklin
;value1","value2","value3" ); I believe that this is what Michael was eluding to as well... garotconk...@yahoo.com From: Garot Conklin To: Michael Dykman ; Morning Star Cc: "mysql@lists.mysql.com" Sent: Wednesday, October 3

Re: passing shell variable to the SET data type in parentheses

2012-10-03 Thread Garot Conklin
are you trying to get the value of var encapsulated with  ' ' marks? Typical shell expansion while within " " will output the literal: var=10 echo "'$var'" '10' Have you tried removing the single quotes?  The shell can

Re: passing shell variable to the SET data type in parentheses

2012-10-03 Thread Michael Dykman
e command you are trying to run. - michael dykman On Wed, Oct 3, 2012 at 9:35 AM, Morning Star wrote: > Hi guys, > i have a problem when trying to pass shell variable to the SET data > type in parentheses. > i have a variable like this: > > $ echo $var > "value1",&

passing shell variable to the SET data type in parentheses

2012-10-03 Thread Morning Star
Hi guys, i have a problem when trying to pass shell variable to the SET data type in parentheses. i have a variable like this: $ echo $var "value1","value2","value3" what i did: mysql -u $user -p${password} --skip-column-names -e 'ALTER TABLE '$table'

FW: MySQL shell...with parameters

2011-05-23 Thread Daevid Vincent
Here’s an email from a good friend of mine that may be of interest. It is done in Ruby. From: Brad Robel-Forrest [mailto:b...@gigglewax.com] Sent: Sunday, May 15, 2011 7:01 PM To: Daevid Vincent Subject: MySQL shell...with parameters Remember a long while back I was bitching about the need

A mytop automation shell script (someone may find useful)

2009-03-31 Thread Daevid Vincent
http://www.daevid.com/content/examples/snippets.php scroll down to "Automatic Monitoring of remote servers" You'll need Gnome, ssh keys (for remote execution), .mytop file, wmctrl and xtrlock.

mysql shell with utf8 databa

2008-07-23 Thread Elim Qiu
I'm still using win2k mysql 5.1 With default databas encoding, I can do querys with bh English and Chinese GB. But when database encoding is uft8, all the Chinese become question maks. Any idea about how to mysql work unicode databa? Thanks a lot.

RE: Can't get a login shell for some databases SOLVED

2008-04-21 Thread Pam Astor
>>> The ANSI-SQL syntax is to just use GRANT to create users. You will >>> still need to use GRANT twice for both users: joe@'%' and joe@'localhost'. >>> >>> But I find the MySql syntax for creating user with CREATE USER and then >>> GRANT easier to follow: >>> >>> CREATE USER joe@'%' IDENTIFIE

Re: Can't get a login shell for some databases

2008-04-21 Thread Ben Clewett
Pam Astor wrote: The ANSI-SQL syntax is to just use GRANT to create users. You will still need to use GRANT twice for both users: joe@'%' and joe@'localhost'. But I find the MySql syntax for creating user with CREATE USER and then GRANT easier to follow: CREATE USER joe@'%' IDENTIFIED BY

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
>> One more thing, I have already created these users and don't want to mess >> their >> passwords up or break their associated php scripts access. >> >> So how do I grant users, who already have a password, localhost >> access? > > just copy the row in the mysql table > > -- > Sebastian Mend

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> The ANSI-SQL syntax is to just use GRANT to create users. You will > still need to use GRANT twice for both users: joe@'%' and joe@'localhost'. > > But I find the MySql syntax for creating user with CREATE USER and then > GRANT easier to follow: > > CREATE USER joe@'%' IDENTIFIED BY 'whatev

Re: Can't get a login shell for some databases

2008-04-18 Thread Ben Clewett
Pam Astor wrote: A user in MySql is not just a username, but a username and a host. The host of '%' denotes all hosts accept 'localhost'. Therefore you usually require two entries for each user: CREATE USER ben@'%' INDENTIFIED BY 'ben'; CREATE USER ben@'localhost' INDENTIFIED BY 'ben'; Does

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> A user in MySql is not just a username, but a username and a host. > > The host of '%' denotes all hosts accept 'localhost'. > > Therefore you usually require two entries for each user: > > CREATE USER ben@'%' INDENTIFIED BY 'ben'; > CREATE USER ben@'localhost' INDENTIFIED BY 'ben'; > > Does

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > would be much more easier if you would send this output here (with faked > names, passwords and hosts ...) OK...here it is: SELECT * from mysql.

Re: Can't get a login shell for some databases

2008-04-18 Thread Ben Clewett
' INDENTIFIED BY 'ben'; Does this help? Ben Pam Astor wrote: connectiong from shell means connecting as localhost by default, connecting from PHP can be some different server and/or PHP uses the full IP address/hostname of the server check/compare the privileges for your users

Re: Can't get a login shell for some databases

2008-04-18 Thread Sebastian Mendel
Pam Astor schrieb: connectiong from shell means connecting as localhost by default, connecting from PHP can be some different server and/or PHP uses the full IP address/hostname of the server check/compare the privileges for your users for 'localhost' and '%' [...] Th

RE: Can't get a login shell for some databases

2008-04-18 Thread Pam Astor
> connectiong from shell means connecting as localhost by default, connecting > from PHP can be some different server and/or PHP uses the full IP > address/hostname of the server > > check/compare the privileges for your users for 'localhost' and '%' I

Re: Can't get a login shell for some databases

2008-04-17 Thread Sebastian Mendel
to MySQL via shell using the username and password associated with that user. However for all the other databases, I am not able to log in to a MySQL shell using the other usernames associated with their databases – even though the php applications are configured to use the usernames, passwords

Can't get a login shell for some databases

2008-04-17 Thread Pam Astor
MySQL via shell using the username and password associated with that user. However for all the other databases, I am not able to log in to a MySQL shell using the other usernames associated with their databases – even though the php applications are configured to use the usernames, passwords and

Re: hang up mysql shell

2007-07-16 Thread Eric Bergen
process out of suspension type 'fg' it will move back to the foreground. CTRL-D is typically the exit shortcut. On 7/16/07, Jeff Pang <[EMAIL PROTECTED]> wrote: hello, When saying 'exit' in mysql shell,mysqld would release the lock which was made before. But if I d

hang up mysql shell

2007-07-16 Thread Jeff Pang
hello, When saying 'exit' in mysql shell,mysqld would release the lock which was made before. But if I do 'ctrl+z' under linux to hang up mysql shell,would mysqld also release the lock or not? Thank you. Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefon

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 ma

Re: Shell

2006-09-09 Thread Paul McCullagh
:q!". On Sep 8, 2006, at 8:54 PM, Pastor Steve wrote: Greetings, Does anyone know how I can set up my shell so that the mysql command works without navigating to the directory? I am using Mac OS 10.2.8 and 10.4 shell> mysql –u name –p ?? Thanks, -- Steve Marquez

Shell

2006-09-08 Thread Pastor Steve
Greetings, Does anyone know how I can set up my shell so that the mysql command works without navigating to the directory? I am using Mac OS 10.2.8 and 10.4 shell> mysql ­u name ­p ?? Thanks, -- Steve Marquez

Re: mysql 4.1.16 shell atl charset input problem

2005-12-22 Thread Gleb Paharenko
s: show variables like '%char%'; show character set; Kirill Sapelkin wrote: > Hello, > > The mysql 4.1.16 shell does not accept alternate character set (koi8r - > russian) keyboard input. It accepts koi8r input fine in non interactive > mode as: >

mysql 4.1.16 shell atl charset input problem

2005-12-21 Thread Kirill Sapelkin
Hello, The mysql 4.1.16 shell does not accept alternate character set (koi8r - russian) keyboard input. It accepts koi8r input fine in non interactive mode as: mysql our_database < our_command.sql and it displays both english and koi8r fine on screen. It was comiled: configure --w

Re: Foreign characters in the shell

2005-11-17 Thread Götz M. Ritter
Hello Gleb! The answer to the scrambled characters in the shell und XP is, as you assumed, that the shell simply does not handle characters like the Windows-GUI does... . Now, that I know about this fact it's no longer a problem ( perhaps a feature, ;-) ?). Thx again & have a good ti

Re: Foreign characters in the shell

2005-11-11 Thread Götz M. Ritter
Hello Gleb, thanks very much for the hints! I will read them and then give a feedback to the list. Have a nice day,Götz -- -- ! Diese E-Mail hat 0 Anhänge -ABSENDER- name Goetz M. Ritter country Germany e-mail [EMAIL PROTECTED]

Re: Foreign characters in the shell

2005-11-10 Thread Gleb Paharenko
ation. > > I have a question concerning the use of the shell-interface of my > mysql-Installation. > > To load data in a table >I used WinXP-Notepad to create tab-separated records (they contain > special german chars ("Umlaute") >I used the LOAD DATA L

Foreign characters in the shell

2005-11-10 Thread Götz M. Ritter
Hello there, I'm new to MySQL and have just installed the 5.0 on a WinXP-Workstation. I have a question concerning the use of the shell-interface of my mysql-Installation. To load data in a table I used WinXP-Notepad to create tab-separated records (they contain special german

Re: Blob retrieval from database using shell

2005-07-31 Thread Enrique Sanchez Vela
mmand (for bash: echo -n "hi") regards, esv --- Rakesh Gupta <[EMAIL PROTECTED]> wrote: > > > > > Hi There, > I am trying to insert blob in table and then > retrieve it from table using > Linux shell. Here is script that i used. > > Load Blob int

Re: Blob retrieval from database using shell

2005-07-30 Thread Gleb Paharenko
ieve it from table using > Linux shell. Here is script that i used. > > Load Blob into DB and Retrieve it using linux shell. > # add firmware into DB > ACTION="insert into FIRMWARE > (firmwarename, releasedate, bootcodename, usermanualname, releasenotes, > checksu

Blob retrieval from database using shell

2005-07-29 Thread Rakesh Gupta
Hi There, I am trying to insert blob in table and then retrieve it from table using Linux shell. Here is script that i used. Load Blob into DB and Retrieve it using linux shell. # add firmware into DB ACTION="insert into FIRMWARE (firmwarename, releasedate, bootcodename, usermanua

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 th

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 alway

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 exact

Shell execution of mysql query

2005-02-23 Thread Nupur Jain
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 query as listed below. If th

Re: ANNOUNCE: SHSQL - SQL for LINUX/UNIX Shell scripts

2004-11-05 Thread David Griffiths
Wow - cool idea - nice job. Looking forward to playing with it. David. Eddy Macnaghten wrote: Hi all I have just released a utility (under the GPL) that enables SQL to be incorporated into UNIX/LINUX shell scripts (easier than using psql or similar with better integration). For more information

ANNOUNCE: SHSQL - SQL for LINUX/UNIX Shell scripts

2004-11-04 Thread Eddy Macnaghten
Hi all I have just released a utility (under the GPL) that enables SQL to be incorporated into UNIX/LINUX shell scripts (easier than using psql or similar with better integration). For more information see http://www.edlsystems.com/shsql To download ftp://ftp.edlsystems.com/shsql (needless to

RE: Bash Shell issue with the mysqldump's password.....

2004-08-06 Thread Steve Poirier
To: [EMAIL PROTECTED] Subject: Bash Shell issue with the mysqldump's password. I am struggling to get the bash script to use the password. What I'm doing here is to assign it to a variable.. --snip- MySQLdump_FilePath="/usr/local/mysql/bin/mysqldump" UserId=

Bash Shell issue with the mysqldump's password.....

2004-08-06 Thread Scott Fletcher
I am struggling to get the bash script to use the password. What I'm doing here is to assign it to a variable.. --snip- MySQLdump_FilePath="/usr/local/mysql/bin/mysqldump" UserId="root" DB_Production="DB_NAME" #Emarket_Production_Filepath=`/home/website/ProductionDB.sql` #Prefix_Produc

Re: UPDATE with WHERE+ORDER+LIMIT error(?) - test shell script (fwd)

2003-11-25 Thread Alexander Keremidarski
Hello Serge, Serge E. Yakubovich wrote: >>Description: First of all I want to thank you for your excelent bug report and apologize for delayed responce. >The same test script I've submitted today to [EMAIL PROTECTED], > which demonstrates improper(?) behaviour of UPDATE statement on > 4.

RE: DB design question - shell scripting...

2003-11-24 Thread Julian Zottl
r each day. My thoughts were to write a shell script to do this for me, but I am running into a problem: I wrote the following: #!/bin/sh date=`date "+%m%d%Y"` export date mysql -u root -p < createdb.sql Then in createdb.sql CONNECT Blah; CREATE TABLE $date ( . ) TYPE=MyISAM; B

RE: DB design question - shell scripting...

2003-11-22 Thread Paul DuBois
ql List Subject: RE: DB design question - shell scripting... At 10:56 -0500 11/21/03, Julian Zottl wrote: Andy, Thanks for responding. I think that I am going to go with the idea of creating a tale for each day. My thoughts were to write a shell script to do this for me, but I am running into a pr

RE: DB design question - shell scripting...

2003-11-22 Thread Chris
Wouldn't this also work?: mysql -u root -p -e "CREATE TABLE t$date(...)" yourdatabase -Original Message- From: Paul DuBois [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 12:46 PM To: Julian Zottl; Andy Eastham; Mysql List Subject: RE: DB design question -

RE: DB design question - shell scripting...

2003-11-21 Thread Paul DuBois
At 10:56 -0500 11/21/03, Julian Zottl wrote: Andy, Thanks for responding. I think that I am going to go with the idea of creating a tale for each day. My thoughts were to write a shell script to do this for me, but I am running into a problem: I wrote the following: #!/bin/sh date=`date &quo

RE: DB design question - shell scripting...

2003-11-21 Thread Julian Zottl
Andy, Thanks for responding. I think that I am going to go with the idea of creating a tale for each day. My thoughts were to write a shell script to do this for me, but I am running into a problem: I wrote the following: #!/bin/sh date=`date "+%m%d%Y"` export date mysql

Re: Execute shell script

2003-11-19 Thread adburne
Thanks Paul for your reply, I extend a little more my question and try to be more specific:    There is a command or function to call a shell script through a mysql server on a linux box using odbc as client?   ---Mensaje original---   De: Paul DuBois Fecha: martes 18 de noviembre

RE: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
r [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 19, 2003 2:41 PM > > To: [EMAIL PROTECTED] > > Subject: Re: piping blob into shell command (tar) > > > > > > On Wed, 2003-11-19 at 14:02, Paul DuBois wrote: > > > At 13:55 -0500 11/19/03, Denis Merc

RE: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
rs > > to see if it works > > > > -Original Message- > > From: Denis Mercier [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 19, 2003 2:41 PM > > To: [EMAIL PROTECTED] > > Subject: Re: piping blob into shell command (tar) > >

RE: piping blob into shell command (tar)

2003-11-19 Thread Dan Greene
one more idea: try: mysql --skip-column-names --raw < test1 | tar xf - > -Original Message- > From: Denis Mercier [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 2:41 PM > To: [EMAIL PROTECTED] > Subject: Re: piping blob into shell command (tar) >

RE: piping blob into shell command (tar)

2003-11-19 Thread Dan Greene
9, 2003 2:41 PM > To: [EMAIL PROTECTED] > Subject: Re: piping blob into shell command (tar) > > > On Wed, 2003-11-19 at 14:02, Paul DuBois wrote: > > At 13:55 -0500 11/19/03, Denis Mercier wrote: > > >On Wed, 2003-11-19 at 12:26, Paul DuBois wrote: > &g

RE: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
ng FILE_LOAD(). before: use test; select * from test; after: mysql --skip-column-names < test1 | more use test;\nselect * from test;\n \n's are added? > > -Original Message- > > From: Denis Mercier [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 19,

Re: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
; >> >> >use my_db; > >> >> >> >select * from my_table; > >> >> >> > > >> >> >> >so when i try shell> mysql --pager < test1 | tar x > >> >> >> > > >

Re: piping blob into shell command (tar)

2003-11-19 Thread Paul DuBois
At 13:55 -0500 11/19/03, Denis Mercier wrote: On Wed, 2003-11-19 at 12:26, Paul DuBois wrote: At 11:03 -0500 11/19/03, Denis Mercier wrote: > > >> >i also tried: >> >> >use my_db; >> >> >select * from my_table; >> >> >

RE: piping blob into shell command (tar)

2003-11-19 Thread Dan Greene
a text that mysql is adding in when it's not explictly running 'into dumpfile' > -Original Message- > From: Denis Mercier [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 19, 2003 1:55 PM > To: [EMAIL PROTECTED] > Subject: Re: piping blob into shell comma

Re: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
On Wed, 2003-11-19 at 12:26, Paul DuBois wrote: > At 11:03 -0500 11/19/03, Denis Mercier wrote: > > > > >> >i also tried: > >> >> >use my_db; > >> >> >select * from my_table; > >> >> > > >> >>

Re: piping blob into shell command (tar)

2003-11-19 Thread Paul DuBois
At 11:03 -0500 11/19/03, Denis Mercier wrote: > >> >i also tried: >> >use my_db; >> >select * from my_table; >> > >> >so when i try shell> mysql --pager < test1 | tar x >> > >> >the tar file does not get writte

Re: piping blob into shell command (tar)

2003-11-19 Thread Denis Mercier
ieve it and pipe it directly into tar > >> >to decompress it, without first writing it to the hard drive, > >> > > >> >here's what i've tried so far, > >> >I create a text file called test1: > >> >use my_db; > >> >se

Re: piping blob into shell command (tar)

2003-11-18 Thread Paul DuBois
ob field >and i'm trying to retrieve it and pipe it directly into tar >to decompress it, without first writing it to the hard drive, > >here's what i've tried so far, >I create a text file called test1: >use my_db; >select * into dumpfile "/usr/loc

Re: piping blob into shell command (tar)

2003-11-18 Thread Denis Mercier
st writing it to the hard drive, > > > >here's what i've tried so far, > >I create a text file called test1: > >use my_db; > >select * into dumpfile "/usr/local/test1" from my_table; > > > >so when i try shell> mysql --pager < test1 | tar

Re: piping blob into shell command (tar)

2003-11-18 Thread Paul DuBois
xt file called test1: use my_db; select * into dumpfile "/usr/local/test1" from my_table; so when i try shell> mysql --pager < test1 | tar x the tar file does get written to /usr/local/test1 which is the step i'm trying to avoid, and nothing seems to get piped to tar? Right, be

Re: Execute shell script

2003-11-18 Thread Paul DuBois
At 14:05 -0600 11/18/03, Paul DuBois wrote: At 4:47 PM -0300 11/18/03, adburne wrote: There is a command or function to call a shell script through mysql? Invoke mysql, then issue a \h command and look in the output for the line that begins with "system". I forgot to mention: The system

piping blob into shell command (tar)

2003-11-18 Thread Denis Mercier
into dumpfile "/usr/local/test1" from my_table; so when i try shell> mysql --pager < test1 | tar x the tar file does get written to /usr/local/test1 which is the step i'm trying to avoid, and nothing seems to get piped to tar? i also tried: use my_db; select * from my_t

Re: Execute shell script

2003-11-18 Thread Paul DuBois
At 4:47 PM -0300 11/18/03, adburne wrote: There is a command or function to call a shell script through mysql? Invoke mysql, then issue a \h command and look in the output for the line that begins with "system". -- Paul DuBois, Senior Technical Writer Madison, Wisconsin, US

Execute shell script

2003-11-18 Thread adburne
There is a command or function to call a shell script through mysql? _  IncrediMail - El E-mail ha evolucionado finalmente - Haga clic aquí

Execute shell script

2003-11-18 Thread Alejandro D. Burne
There is a command or function to call a shell script through mysql? _  IncrediMail - El E-mail ha evolucionado finalmente - Haga clic aquí

UPDATE with WHERE+ORDER+LIMIT error(?) - test shell script (fwd)

2003-11-06 Thread Serge E. Yakubovich
en/Crashing.html contains information that should help you find out what is causing the crash. 2003-Nov-06 13:40:48 :: execution failed 2003-Nov-06 13:40:48 :: shutdown -- Stop of listing --- >How-To-Repeat: View (edit if need ) & run attached shell script IP.SH >

Re: what means "shell" ?

2003-10-12 Thread James Cradock
>> In the third chapter of the MySQL manual I don't understand the >> mentioned >> "shell>". Where must I type in this and the following instructions or >> what >> does it mean ? >> Until now I have found and started the winmysqladmin.exe fil

Re: what means "shell" ?

2003-10-12 Thread James Cradock
Stephan - > In the third chapter of the MySQL manual I don't understand the mentioned > "shell>". Where must I type in this and the following instructions or what > does it mean ? > Until now I have found and started the winmysqladmin.exe file. But how to &g

Re: what means "shell" ?

2003-10-12 Thread Paul DuBois
At 19:27 +0200 10/12/03, Stephan Wölfel wrote: In the third chapter of the MySQL manual I don't understand the mentioned "shell>". Where must I type in this and the following instructions or what does it mean ? Until now I have found and started the winmysqladmin.exe file. B

RE: what means "shell" ?

2003-10-12 Thread Adam Clauss
For Windows, it’s the DOS prompt. Go to start/run and type "cmd". Adam Clauss [EMAIL PROTECTED] > -Original Message- > From: Stephan Wölfel [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 12, 2003 12:27 PM > To: [EMAIL PROTECTED] > Subject: what means "

what means "shell" ?

2003-10-12 Thread Stephan Wölfel
In the third chapter of the MySQL manual I don't understand the mentioned "shell>". Where must I type in this and the following instructions or what does it mean ? Until now I have found and started the winmysqladmin.exe file. But how to c

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 th

Re: Shell Script to Insert Data

2003-10-10 Thread Colleen Dick
e"); After I run the script, I check the data, and nothing was entered. When I run each statement on it's own (not from a script file, but in the shell) Everything seems to work. It just doesn't work when you try to run it from a script. Any ideas? Mike Tuller Unless I'm mis

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 ca

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 scri

Shell Script to Insert Data

2003-10-10 Thread Mike Tuller
run the script, I check the data, and nothing was entered. When I run each statement on it's own (not from a script file, but in the shell) Everything seems to work. It just doesn't work when you try to run it from a script. Any ideas? Mike Tuller -- MySQL General Mailing Lis

Re: Simple Question: MySQL and Shell Scripts

2003-06-24 Thread Don Read
On 24-Jun-2003 Fred Whipple wrote: > Don't forget to use '-B' in order to make the output silent except for > the results: > and -N to suppress column names. > 2. you should stick your password (which shouldn't match > your UNIX password) in a textfile readable only by you so that

Re: Simple Question: MySQL and Shell Scripts

2003-06-24 Thread Fred Whipple
Joseph Bueno wrote: Zach wrote: I am writing a shell script using Born Shell. I am trying to get the result of a SQL statement into a variable. For example: /usr/bin/mysql -uroot -prootpass BOB << EOF SELECT * FROM Bobstable WHERE Name=1 EOF How do I get the result into a variable? But t

Re: Simple Question: MySQL and Shell Scripts

2003-06-24 Thread Paul Chvostek
On Mon, Jun 23, 2003 at 06:37:17PM -0500, Zach wrote: > > I am writing a shell script using Born Shell. I am trying to get the result of a SQL > statement into a variable. You mean Bourne shell. > For example: > > /usr/bin/mysql -uroot -prootpass BOB << EOF > SELECT

Re: Simple Question: MySQL and Shell Scripts

2003-06-24 Thread Joseph Bueno
Zach wrote: I am writing a shell script using Born Shell. I am trying to get the result of a SQL statement into a variable. For example: /usr/bin/mysql -uroot -prootpass BOB << EOF SELECT * FROM Bobstable WHERE Name=1 EOF How do I get the result into a variable? Thanks in advance!

Simple Question: MySQL and Shell Scripts

2003-06-23 Thread Zach
I am writing a shell script using Born Shell. I am trying to get the result of a SQL statement into a variable. For example: /usr/bin/mysql -uroot -prootpass BOB << EOF SELECT * FROM Bobstable WHERE Name=1 EOF How do I get the result into a variable? Thanks in advance!

RE: Strange problem on the difference of mysql connection between cgi and shell

2003-03-19 Thread Jennifer Goodie
ference of mysql connection between cgi and shell Hi, I am coding a cgi program to query the records from the mysql tables. When I execute the sql query (which is a join operation on two tables) in the mysql shell, the results are shown correctly. However, if I use cgi script to execute the

Strange problem on the difference of mysql connection between cgi and shell

2003-03-18 Thread Liu Haifeng
Hi, I am coding a cgi program to query the records from the mysql tables. When I execute the sql query (which is a join operation on two tables) in the mysql shell, the results are shown correctly. However, if I use cgi script to execute the same query, the web browser just crashed after a

Re: How to use foreign_key_check=0 at shell prompt level?

2002-11-21 Thread Paul DuBois
;[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: How to use foreign_key_check=0 at shell prompt level? Date: Thu, 21 Nov 2002 16:25:04 -0600 At 22:10 + 11/21/02, Jannie Qu wrote: Hi, all, sql, query. I try to use a mysqldump file from development database and insert back into produc

Re: How to use foreign_key_check=0 at shell prompt level?

2002-11-21 Thread Paul DuBois
At 22:10 + 11/21/02, Jannie Qu wrote: Hi, all, sql, query. I try to use a mysqldump file from development database and insert back into production database on another server. bkp_dbname.sql is copied over to prodution, and I am using the following command at production. shell> my

  1   2   >