Re: About installation on Linux

2002-07-06 Thread Son Nguyen

   I got a problem with the Installation in LINUX, too.

   I download the MySQL 4.0.1Server (i386) (7M) in
http://www.mysql.com/
 and use root access to install mysql database with the command:
  shell = rpm -i MySQL-4.0.1-2.i386.rpm
   And I saw the message:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h piii700 password 'new-password'
See the manual for more instructions.

   Then I try to change the root password to mySQL database with the
mysqladmin, and magically, there is NO mysqladmin program at the
/usr/bin/ directory

  I try to use the shell = mysql to see whether mysql command works
but unexpectly, bash: mysql: command not found message was return
back.

  Please advice me what I need to do. I am using Red Hat Linux version
7.3




 Son Nguyen

--- Danny [EMAIL PROTECTED] wrote:
 Whenever you install someting like mysql on Linux RH you should
 consider
 using RPM (Redhat Package Manager)
 
 Go to the www.rpmfind.net and do a search for mysql
 
 - Original Message -
 From: Javier Gonzalo Gloria Medina [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 06, 2002 12:37 PM
 Subject: About insatallation on Linux
 
 
   Hi everybody:
   Well i have all redy work with mysql instalation on
   win xp = (, and for some reasons i migriate to
   linux.
  
   i follow the typical instalation of :
  
   making the user and group for mysql. ok
   configurate the ./config stuff with the
   --prefix=/usr/local/mysql
   then when i run the make and the make install a
   message appers in my shell, which say i this is a
   compiled distribution ready for run. so ... :
  
   i make the mysql dir at /usr/local/ and create de
   link
   and all the chown and chgrp comands and then run the
   mysqladmin -u root and -h host command to stablish a
   password and FINALLY the questions are:
  
   - Who in earth i can  run the daemon?
   - is the installation correct?
   - is there any other config that mysql need to use
   PHP?
   - Some advices please... = )
 
 
 
  __
  Do You Yahoo!?
  Sign up for SBC Yahoo! Dial - First Month Free
  http://sbc.yahoo.com
 
 
 -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
 [EMAIL PROTECTED]
  Trouble unsubscribing? Try:
 http://lists.mysql.com/php/unsubscribe.php
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try:
 http://lists.mysql.com/php/unsubscribe.php
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: About installation on Linux

2002-07-06 Thread Son Nguyen

   I got a problem with the Installation in LINUX, too.

   I download the MySQL 4.0.1Server (i386) (7M) in
http://www.mysql.com/
 and use root access to install mysql database with the command:
  shell = rpm -i MySQL-4.0.1-2.i386.rpm
   And I saw the message:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
This is done with:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h piii700 password 'new-password'
See the manual for more instructions.

   Then I try to change the root password to mySQL database with the
mysqladmin, and magically, there is NO mysqladmin program at the
/usr/bin/ directory

  I try to use the shell = mysql to see whether mysql command works
but unexpectly, bash: mysql: command not found message was return
back.

  Please advice me what I need to do. I am using Red Hat Linux version
7.3




 Son Nguyen

--- Danny [EMAIL PROTECTED] wrote:
 Whenever you install someting like mysql on Linux RH you should
 consider
 using RPM (Redhat Package Manager)
 
 Go to the www.rpmfind.net and do a search for mysql
 
 - Original Message -
 From: Javier Gonzalo Gloria Medina [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 06, 2002 12:37 PM
 Subject: About insatallation on Linux
 
 
   Hi everybody:
   Well i have all redy work with mysql instalation on
   win xp = (, and for some reasons i migriate to
   linux.
  
   i follow the typical instalation of :
  
   making the user and group for mysql. ok
   configurate the ./config stuff with the
   --prefix=/usr/local/mysql
   then when i run the make and the make install a
   message appers in my shell, which say i this is a
   compiled distribution ready for run. so ... :
  
   i make the mysql dir at /usr/local/ and create de
   link
   and all the chown and chgrp comands and then run the
   mysqladmin -u root and -h host command to stablish a
   password and FINALLY the questions are:
  
   - Who in earth i can  run the daemon?
   - is the installation correct?
   - is there any other config that mysql need to use
   PHP?
   - Some advices please... = )
 
 
 
  __
  Do You Yahoo!?
  Sign up for SBC Yahoo! Dial - First Month Free
  http://sbc.yahoo.com
 
 
 -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
 [EMAIL PROTECTED]
  Trouble unsubscribing? Try:
 http://lists.mysql.com/php/unsubscribe.php
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try:
 http://lists.mysql.com/php/unsubscribe.php
 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




encrypting password fields

2002-07-06 Thread Ki Mien

Hi mySql gurus,

I have a table that contains my customers username and password. I would like to know 
how I can encrypt these values so that they are not stored how in the way that my 
customers have keyed them from the front end.

I have read the documentation on password(), and encrypt but it won't work as I am 
using windows os and mysql version 3.23.49-max-nt-log.

I appreciate any help on this.

cheers,
Ki Mien


cOntact @ Lycos http://contact.lycosasia.com
= 10MB for email and filestore + lots of other goodies...

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




mysqldump

2002-07-06 Thread Papa Carlo

Hello ,


VERSION 3.23.49

mysqldump incorrectly export char/varchar binary and *BLOB fields.
it export binary fields like text strings

example :

CREATE TABLE users (
  US_ID int(10) unsigned NOT NULL auto_increment,
  USERNAME varchar(16) NOT NULL default '',
  US_ACTIVE tinyint(3) unsigned NOT NULL default '0',
  US_SECRET0 tinyblob,
  US_SECRET1 tinyblob,
  US_AUTHKEY tinyblob,
  US_PUK tinyblob,
  US_CARDID varchar(16) binary NOT NULL default '',
  PRIMARY KEY  (US_ID),
  KEY x_username (USERNAME),
  KEY x_cardid (US_CARDID),
  KEY x_active (US_ACTIVE)
) TYPE=InnoDB;

INSERT INTO users VALUES (7,'zk',1,'¦î¯¯Çbv','ó+:ºÐ','Ó]¦Ç\ZW¦{','T~âxÎË-','T
üc¦SüG\R-¦Íê');

this is obviously incorrect and may contain non-asci characters.
I experienced corrupt records in practice.
You should use hex representation, for example :
INSERT INTO users VALUES (7,'zk'',1,binary 0x112233,binary 
0x44556677,.);
or at least escape sequences in text strings

-- 
Best regards,
 Papa  mailto:[EMAIL PROTECTED]


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Access denied error

2002-07-06 Thread Egor Egorov

VINOD,
Saturday, July 06, 2002, 6:49:50 AM, you wrote:

V I  own  a domain with MySQL support.  I have created  a  database
V \lnet_cal\ on the web and also table \yarntype\, using PHP  Myad-
V min  on  the webspace and also granted all access  privileges  to
V user \lnet_root\ to the database.

[skip]

V Please suggest me on how to overcome the problem.

V The script which I have loaded is as follows.

V 

V ?php

[skip]

V // (c)

V $query= \load data infile  \'/home/lnet/public_html/calcutta/yarn
V type.txt\' into table yarntype fields terminated by \',\' \ ;

V mysql_query($query) or
V die(mysql_error());

V // THE ABOVE QUERY HAD DISPLYED THE ERROR AS FOLLOWS

V //  \Access denied for user: \'lnet_root@localhost\'  (Using  pass
V word: YES)\


You must have FILE privilege to use LOAD DATA INFILE. FILE privilege
is a global privilege, but you set up for your user only privileges
on the database.
   GRANT FILE ON *.* TO 'user_name'@'host_name' IDENTIFIED BY
   'user_password';





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: Re: Re: Temporary Table

2002-07-06 Thread Egor Egorov

Ruda,
Friday, July 05, 2002, 7:55:51 PM, you wrote:

RG Forgive me the wrong addressing - I didn't observed
RG that.

RG Yes I used same connection all the time. I am a
RG SQL-newbee and I suspect that the problem is the
RG installation or configuration.

RG I use Windows 2000 Pro, MySQL 4.0.1-alpha-max-nt and
RG MySQL-Front 2.2

RG The MySQL-server and the client are installed on the
RG same computer.

RG I used copypaste from the example-site to the
RG SQL-window of MySQL-Front.

Check your my.cnf file is there entry
set-variable=lower_case_table_names= 0
?
If so, you should wrote table name in lower case (tmp instead of TMP),
because in the manual table name in lower case.

Look at:

mysql SELECT * FROM TMP;
ERROR 1146: Table 'database_name.TMP' doesn't exist
mysql SELECT * FROM tmp;
+-+---+
| article | price |
+-+---+
|0001 |  3.99 |
|0002 | 10.99 |
|0003 |  1.69 |
|0004 | 19.95 |
+-+---+
4 rows in set (0.00 sec)





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: About installation on Linux

2002-07-06 Thread Victoria Reznichenko

Son,
Saturday, July 06, 2002, 11:12:17 AM, you wrote:

SNI got a problem with the Installation in LINUX, too.

SNI download the MySQL 4.0.1Server (i386) (7M) in
SN http://www.mysql.com/
SN  and use root access to install mysql database with the command:
SN   shell = rpm -i MySQL-4.0.1-2.i386.rpm

[skip]

SNThen I try to change the root password to mySQL database with the
SN mysqladmin, and magically, there is NO mysqladmin program at the
SN /usr/bin/ directory

SN   I try to use the shell = mysql to see whether mysql command works
SN but unexpectly, bash: mysql: command not found message was return
SN back.

SN   Please advice me what I need to do. I am using Red Hat Linux version
SN 7.3

mysql and mysqladmin are client-side programs.
You should download and install client package MySQL-client-4.0.1-2.i386.rpm




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




newbie mysql-SQL question

2002-07-06 Thread Laszlo G. Szijarto

Thank you in advance for your help.

I'm trying to run two tables with identical table structures into a single
continuous resultset.  To simpify, I have one table with columns ID int and
NAME varchar(32) and another table2 with columsn ID int and NAME
varchar(32), and each table has 100 items.  How would I formulate an SQL
query to return 200 items in a continuous resultset which would have rows
1-100 from table and 101-200 from table2 -- making it appear in the
resultset as if these were one continuous 200-item table.

Thank you very much,
Laszlo



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: newbie mysql-SQL question

2002-07-06 Thread Roger Baklund

* Laszlo G. Szijarto
 I'm trying to run two tables with identical table structures into a single
 continuous resultset.  To simpify, I have one table with columns
 ID int and
 NAME varchar(32) and another table2 with columsn ID int and NAME
 varchar(32), and each table has 100 items.  How would I formulate an SQL
 query to return 200 items in a continuous resultset which would have rows
 1-100 from table and 101-200 from table2 -- making it appear in the
 resultset as if these were one continuous 200-item table.

Mysql version 4 have UNION support:

SELECT * FROM table_a
  UNION
SELECT * FROM table_b;

The above is _one_ statement.

URL: http://www.mysql.com/doc/U/N/UNION.html 

Note the use of parentheses when you need to ORDER the combined result.

Version 3.23.x does not support UNION, but you can achieve the same result
using a temporary table, and three statements:

CREATE TABLE tmp SELECT * FROM table_a;
INSERT INTO tmp SELECT * FROM table_b;
SELECT * FROM tmp ORDER BY ID;

--
Roger


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: Re: Re: Temporary Table

2002-07-06 Thread Ruda Gossen

Thanks Egor, but the table names in the example are
already lower case and I pasted them in SQL window of
the client.

Since yesterday I have test to type the script
manually at the prompt in a DOS-window and then all
worked well. 

Trying to do the same in the SQL-window of MySQL-Front
all was OK until I typed the statement:

  select shop.article, dealer, shop.price 
  from shop, tmp
  where shop.article=tmp.article and 
  shop.price=tmp.price;

Now I got an alert-box which tells me:

  Table 'mybase.tmp' does'nt exist.

Finally, it was no problem to:
   
  drop table tmp;

Seems that the problem depends on MySQL-Front.

Best regards

Alf

 --- Egor Egorov [EMAIL PROTECTED] skrev:  
If so, you should wrote table name in lower case
 (tmp instead of TMP),
 because in the manual table name in lower case.
 
 Look at:
 
 mysql SELECT * FROM TMP;
 ERROR 1146: Table 'database_name.TMP' doesn't exist
 mysql SELECT * FROM tmp;
 +-+---+
 | article | price |
 +-+---+
 |0001 |  3.99 |
 |0002 | 10.99 |
 |0003 |  1.69 |
 |0004 | 19.95 |
 +-+---+
 4 rows in set (0.00 sec)
 
 
 
 
 
 -- 
 For technical support contracts, goto
 https://order.mysql.com/?ref=ensita
 This email is sponsored by Ensita.net
 http://www.ensita.net/
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /Egor Egorov
  / /|_/ / // /\ \/ /_/ / /__  
 [EMAIL PROTECTED]
 /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
___/   www.mysql.com
 
 
 

-
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list
 archive)
 
 To request this thread, e-mail
 [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try:
 http://lists.mysql.com/php/unsubscribe.php
  

=


_
Följ VM på nära håll på Yahoo!s officielle VM-sajt www.yahoo.se/vm2002
Håll dig ajour med nyheter och resultat, med vinnare och förlorare...

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Re: Re: Re: Temporary Table

2002-07-06 Thread Keith Yoder

I, too, have been unable to get temporary tables to work from MYsql-FRONT.
They work every other way I try them (command line, delphi zeos component,
etc).


- Original Message -
From: Ruda Gossen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 06, 2002 10:18 AM
Subject: Re: Re: Re: Re: Temporary Table


 Thanks Egor, but the table names in the example are
 already lower case and I pasted them in SQL window of
 the client.

 Since yesterday I have test to type the script
 manually at the prompt in a DOS-window and then all
 worked well.

 Trying to do the same in the SQL-window of MySQL-Front
 all was OK until I typed the statement:

   select shop.article, dealer, shop.price
   from shop, tmp
   where shop.article=tmp.article and
   shop.price=tmp.price;

 Now I got an alert-box which tells me:

   Table 'mybase.tmp' does'nt exist.

 Finally, it was no problem to:

   drop table tmp;

 Seems that the problem depends on MySQL-Front.

 Best regards

 Alf

  --- Egor Egorov [EMAIL PROTECTED] skrev:  
 If so, you should wrote table name in lower case
  (tmp instead of TMP),
  because in the manual table name in lower case.
 
  Look at:
 
  mysql SELECT * FROM TMP;
  ERROR 1146: Table 'database_name.TMP' doesn't exist
  mysql SELECT * FROM tmp;
  +-+---+
  | article | price |
  +-+---+
  |0001 |  3.99 |
  |0002 | 10.99 |
  |0003 |  1.69 |
  |0004 | 19.95 |
  +-+---+
  4 rows in set (0.00 sec)
 
 
 
 
 
  --
  For technical support contracts, goto
  https://order.mysql.com/?ref=ensita
  This email is sponsored by Ensita.net
  http://www.ensita.net/
 __  ___ ___   __
/  |/  /_ __/ __/ __ \/ /Egor Egorov
   / /|_/ / // /\ \/ /_/ / /__
  [EMAIL PROTECTED]
  /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
 ___/   www.mysql.com
 
 
 
 
 -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list
  archive)
 
  To request this thread, e-mail
  [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try:
  http://lists.mysql.com/php/unsubscribe.php
 

 =


 _
 Följ VM på nära håll på Yahoo!s officielle VM-sajt www.yahoo.se/vm2002
 Håll dig ajour med nyheter och resultat, med vinnare och förlorare...

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/5/2002


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: excel spreadsheet to mysql

2002-07-06 Thread Keith Yoder

You could save it as a cvs file and inport it using LOAD DATA INFILE


- Original Message -
From: chris ochap [EMAIL PROTECTED]
To: Mailing List MySQL [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 6:26 PM
Subject: excel spreadsheet to mysql


 is there a way to import a large excel spreadsheet into mysql?  thanks.

 chris.

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/5/2002


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Need help on Matching MySQL, Apache PHP

2002-07-06 Thread duo fu

Dear Friends:
I have installed Apache 1.3.26, MySQL.3.23.51 successfully. However, I 
failed to install tarball versions of PHP4.21 with Apache1.3.26 under my 
REDHAT 6.2. I always got the error message when I tried to start the APache.
-
[root@broekhoven libexec]# /usr/local/apache/bin/apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: pcre_malloc
/usr/local/apache/bin/apachectl start: httpd could not be started
--

Should I use the RPM instead of tar ball? Must I use PHP3. instead of PHP4.
under RedHat6.2?
Could anyone help me with this problem?
THank you very much!

Duo



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Need help on Matching MySQL, Apache PHP

2002-07-06 Thread dan radom

I would suggest you build apache and php from source.  instructions can be found at 
http://www.php.net/manual/en/install.apache.php.

dan

* duo fu ([EMAIL PROTECTED]) wrote:
 Dear Friends:
 I have installed Apache 1.3.26, MySQL.3.23.51 successfully. However, I 
 failed to install tarball versions of PHP4.21 with Apache1.3.26 under my 
 REDHAT 6.2. I always got the error message when I tried to start the APache.
 -
 [root@broekhoven libexec]# /usr/local/apache/bin/apachectl start
 Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/libphp4.so into server:
 /usr/local/apache/libexec/libphp4.so: undefined symbol: pcre_malloc
 /usr/local/apache/bin/apachectl start: httpd could not be started
 
--
 
 Should I use the RPM instead of tar ball? Must I use PHP3. instead of PHP4.
 under RedHat6.2?
 Could anyone help me with this problem?
 THank you very much!
 
 Duo

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Mysql_connect problem

2002-07-06 Thread Christopher Moreno

I'm having a problem with mysql_connect(). Here is the code I am using:

function db_connect() {
   global $dbhost, $dbusername, $dbuserpassword, $default_dbname;
   global $MYSQL_ERRNO, $MYSQL_ERROR;

   $link_id = mysql_connect($dbhost, $dbusername, $dbuserpassword);
   if(!$link_id) {
  $MYSQL_ERRNO = 0;
  $MYSQL_ERROR = Connection failed to the host $dbhost.;
  return 0;
   }
   else if(!mysql_select_db($dbname)) {
  $MYSQL_ERRNO = mysql_errno();
  $MYSQL_ERROR = mysql_error();
  return 0;
   }
   else return $link_id;
}

The problem is, that it completely hangs up and times out. I use this
code on many diff websites and servers, but on this particular server
and site, this happens. I have never done anything else on this server,
so I was thinking it might be the settings, but I'm not even sure where
to start. Usually I just get back error message such as invalid password
or user etcbut this completely hangs and times out, just on the
mysql_connect() alone. If I take that out, the page loads up fine, but
of course I can't do any MySQL work. Any help would be appreciated and I
thank you in advance :)

-Chris


Christopher Moreno
Web Developer
http://www.chaosad2000.com
 



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: encrypting password fields

2002-07-06 Thread MikeParton

I have MySQL 2.0.39 on Win NT and I use md5() to create a digest of the
password.  Perhaps not the highest level of password encryption, but works
for the level of security I need.


- Original Message -
From: Ki Mien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 06, 2002 4:16 AM
Subject: encrypting password fields


Hi mySql gurus,

I have a table that contains my customers username and password. I would
like to know how I can encrypt these values so that they are not stored how
in the way that my customers have keyed them from the front end.

I have read the documentation on password(), and encrypt but it won't work
as I am using windows os and mysql version 3.23.49-max-nt-log.

I appreciate any help on this.

cheers,
Ki Mien


cOntact @ Lycos http://contact.lycosasia.com
= 10MB for email and filestore + lots of other goodies...

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




impossible WHERE noticed after reading const table

2002-07-06 Thread Mike


If I do a SELECT * from TABLE  I get all the records in the DB (as it
should)

If I do a SELECT id from TABLE  all the id's in the table are
retrieved except id's 113-119 for some reason 

To use record 117 as an example:

If I do a SELECT * from TABLE WHERE id=117 it returns no records, but
when I do the SELECT *  from TABLE the record with id=117 shows up.  

id is  an auto-increment int field 

EXPLAIN SELECT * from TABLE WHERE id=117  says impossible WHERE
noticed after reading const table  

what would cause this?  The records that it can't find are recently
added records.  But I've added some since then using the same software
and there's no issues.

MySQL version 3.23.49-max-nt
 

Thanks in advance,
Mike Tiffee




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: encrypting password fields

2002-07-06 Thread MikeParton

oopsthat's my Apache version.  I am using MySQL 4.0.1 and have used
md5() with MySQL 3.23.49-max-nt


- Original Message -
From: MikeParton [EMAIL PROTECTED]
To: Ki Mien [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 06, 2002 3:02 PM
Subject: Re: encrypting password fields


 I have MySQL 2.0.39 on Win NT and I use md5() to create a digest of the
 password.  Perhaps not the highest level of password encryption, but works
 for the level of security I need.


 - Original Message -
 From: Ki Mien [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 06, 2002 4:16 AM
 Subject: encrypting password fields


 Hi mySql gurus,

 I have a table that contains my customers username and password. I would
 like to know how I can encrypt these values so that they are not stored
how
 in the way that my customers have keyed them from the front end.

 I have read the documentation on password(), and encrypt but it won't work
 as I am using windows os and mysql version 3.23.49-max-nt-log.

 I appreciate any help on this.

 cheers,
 Ki Mien

 
 cOntact @ Lycos http://contact.lycosasia.com
 = 10MB for email and filestore + lots of other goodies...

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




BLOB insert problem used ' '

2002-07-06 Thread Mark Worsdall

Hi,

After a good old slurp of an image I am trying to stick it into my
table.


# Slurp file
foreach (@image_list) {
  my $image = /usr/home/shadow/Vision/$_;

  # Load image into memory
  my $imagePIC = do
  {
  local ($/, *PIC); # slurp mode, local file handle
  open PIC, $image or die can't open '$image': $!;
  binmode PIC;
  PIC
  };


And this is how I am sticking it in, but I get an error reported in my
sql code.

my $prep = INSERT INTO object (object) VALUES ('$image');

see anything wrong?

I tried:
my $prep = INSERT INTO object (count) VALUES (1);

to check I can insert, and I can.

M.

-- 
Work:- postmasterAThinwick.demon.co.uk

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Easy Auto-Increment

2002-07-06 Thread Brad W. Galiette

Is there any easy way to create a column in a MySQL table which
automatically
increments with each successive INSERT request?  (I understand that
AUTO_INCREMENT inserts a value that is one greater than the greatest that
already exists in the table; however, this creates a problem --- from the
position of creating a web interface --- of what occurs when the record
holding the greatest value for the AUTO_INCREMENT column is dropped.  Thus
it would be possible to confuse two records which, in the end, would have
had the same identifying value.  Is there any work around to this issue to
continue incrementing even if the record holding the greatest AUTO_INCREMENT
value is deleted?

Thank you in advance for your support!

Regards,
Brad Galiette


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: Easy Auto-Increment

2002-07-06 Thread Paul DuBois

At 22:59 -0400 7/6/02, Brad W. Galiette wrote:
Is there any easy way to create a column in a MySQL table which
automatically
increments with each successive INSERT request?  (I understand that
AUTO_INCREMENT inserts a value that is one greater than the greatest that
already exists in the table; however, this creates a problem --- from the
position of creating a web interface --- of what occurs when the record
holding the greatest value for the AUTO_INCREMENT column is dropped.  Thus
it would be possible to confuse two records which, in the end, would have
had the same identifying value.  Is there any work around to this issue to
continue incrementing even if the record holding the greatest AUTO_INCREMENT
value is deleted?

The behavior you describe (reuse of values) occurs for ISAM tables.
If you use a MyISAM table instead, values will increase monotonically,
even if DELETEs occur.

Thank you in advance for your support!

Regards,
Brad Galiette


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php