MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #16  
Old January 24th, 2005, 05:07 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 5 h 41 m 45 sec
Reputation Power: 1331
Facebook
Ok, I've done some googling, and it looks like phpBB has trouble with php5. The solutions are to a) use php 4 or b) to install this patch/mod

--Simon

Reply With Quote
  #17  
Old January 24th, 2005, 08:58 PM
JimmyGosling's Avatar
JimmyGosling JimmyGosling is offline
Back...with an opinion!
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Location: I invented Java
Posts: 1,033 JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level)JimmyGosling User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 17 h 2 m 27 sec
Reputation Power: 385
Thanks Simon
I did try the mod but found that this would also require mysqli to be installed with mysql from the start (or so it seemed)
Being that that I'm not sure if the enviroment I'm going to be deploying to had this, I decided that going the route of switching to php4 was the better answer, seeing as the production enviroment was using 4.3.10. I just like to be running the latest and greatest if I can, guess I just couldn't have it all this time, (well could have, just decided to let it go and move on)
In any case, it's up and running thanks to your help.

Reply With Quote
  #18  
Old April 29th, 2005, 03:27 AM
Nik's Avatar
Nik Nik is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Location: Thessaloniki
Posts: 720 Nik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 2 h 56 m 12 sec
Reputation Power: 5
Send a message via Google Talk to Nik
blockcipher told me that:

Downloading a new version from CPAN I don't think will help unless you actually compile it against version 4.1 or newer client libraries. I'll let someone else walk you through this because I had to do it once with the Cygwin version of Perl using GCC and that involved recompiling both the client libraries and dbd::mysql. If you're using the Activestate version of Perl, you probably didn't get the CPAN version of dbd::mysql, you got the Activestate version which is pre-compiled and, the last time I checked, a couple minor versions behind the CPAN version.

You'll probably want to ask for more help in the Perl forums.

but i dont know exactly what to do:

Actually yes i do have ActiveState's Perl version and i

c:\> ppm
install dbd::mysql
exit

to download the mysql DataBase Driver.

What exactly i must do now to get mysql 5 to work?
__________________
What is now proved was once only imagined!

Reply With Quote
  #19  
Old June 27th, 2005, 05:35 PM
h4x0r's Avatar
h4x0r h4x0r is offline
llama slayer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 460 h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 22 h 6 m 14 sec
Reputation Power: 10
ok,
I'm confused because it seems like it should be working, as things always do whenever we have a problem...but that's neither here nor there, my problem is that I cannot seem to get mysqld.exe to run with --old-passwords

each time I try to do that from my command prompt I get a:
[ERROR] mysqld: unknown variable 'Server=C:/dir/path/bin/mysqld-nt.exe'

I've made sure that mysql is shut down before trying to execute the code and I've tried editing the registry entry for the server, but I can't figure it out and don't know what to do next. I also tried adding "old_passwords" to the my.ini file as sombody suggested, but that didn't fix my authentication problem either.

Any suggestions?
__________________
"So I hired the best Feng-Shui artist to come down here and get my yin and yang in order, cause I...FRICK'N...LOVE...HARMONY!!!"
- Captain Murphey, Sealab 2021

Reply With Quote
  #20  
Old June 28th, 2005, 02:38 PM
h4x0r's Avatar
h4x0r h4x0r is offline
llama slayer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 460 h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level)h4x0r User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 22 h 6 m 14 sec
Reputation Power: 10
ok,
well what I ended up doing to fix my problem was using
Code:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

while this worked, it is by no means ideal since it is on a per-user basis...fortunately, the db I'm working on is dev only and when the project goes live, it will be running on an earlier version and won't have to deal with this problem.

Reply With Quote
  #21  
Old November 11th, 2005, 12:36 PM
mastertheknife mastertheknife is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 137 mastertheknife User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 10 sec
Reputation Power: 5
Send a message via ICQ to mastertheknife Send a message via MSN to mastertheknife
Quote:
The problem is that a number of programs / applications haven't been updated to deal with this hashing algorithm


That's not entirely correct. The problem is that many programs use an old libmysql.dll (MySQL Client Library) which doesn't support the new password hashing.

In most programs where the mysql client is dynamically linked (DLL) you can simply replace the dll with a newer one.. you can find the dll in mysql servers in "\lib\opt\libmysql.dll" which is the same version as the mysql server. So if your server is 5.0.15, that DLL would be also version 5.0.15.

But there's an alternative workaround, which is posted in this thread hundred times..
SET PASSWORD FOR user@host = OLD_PASSWORD('password');

Reply With Quote
  #22  
Old November 27th, 2005, 12:45 PM
ralphuk100's Avatar
ralphuk100 ralphuk100 is offline
meester luva luva
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Posts: 2,643 ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level)ralphuk100 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 19 h 54 m 47 sec
Number of bans: 1
Reputation Power: 19
Send a message via MSN to ralphuk100
Hmm, I have enabled the old passwords flag in mysql administrator and restarted mysql and apache and I still get the client does not support.... error.

I can log into a console though using this:

mysql -u root -p password

any ideas?

Reply With Quote
  #23  
Old January 15th, 2006, 11:41 PM
redstar redstar is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 604 redstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m 57 sec
Reputation Power: 5
Send a message via ICQ to redstar Send a message via AIM to redstar Send a message via MSN to redstar Send a message via Yahoo to redstar
I have a little problem. I'm using a share server. I set the command : SET PASSWORD = OLD_PASSWORD( 'pass' ), but no resoults..

Reply With Quote
  #24  
Old January 15th, 2006, 11:51 PM
redstar redstar is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 604 redstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m 57 sec
Reputation Power: 5
Send a message via ICQ to redstar Send a message via AIM to redstar Send a message via MSN to redstar Send a message via Yahoo to redstar
After I do this..the password was changed..and now I don't have acces even to myphpadmin , but my scripts also don't work.

Reply With Quote
  #25  
Old February 22nd, 2006, 08:58 PM
tim0 tim0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: toronto
Posts: 142 tim0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 9 m 39 sec
Reputation Power: 5
i running in a newer MySQL 4.1.7 when i'm connecting i get
DBI connect('andregaron1:localhost','agaron',...) failed: Client does not support authentication protocol requested by server; conside


based on this thread i'm trying to fix my code but now i'm getting:

syntax error at login.pl line 15, near "FOR 'agaron'"
Bad name after newpwd' at login.pl line 15.

#!/usr/bin/perl -wT

use strict;
use CGI qw/:standard/;
use CGI::Carp "fatalsToBrowser";
use DBI;

print "Content-type: text/html\n\n";



SET PASSWORD = OLD_PASSWORD('secret');
SET PASSWORD FOR 'agaron'@'localhost' = OLD_PASSWORD('newpwd');

my $host = "localhost";
my $db = "andregaron1";
my $user = "agaron";
my $pass = "********";
my $dbh = DBI->connect ("DBI:mysql:$db:$host",$user,$pass,{ RaiseError => 1, AutoCommit => 1})
or die "info.pl: can't open database: $!\n";
__________________
_____________________________
www.tim0.net

Reply With Quote
  #26  
Old February 22nd, 2006, 09:10 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 5 h 41 m 45 sec
Reputation Power: 1331
Facebook
You'll need to run that query directly in MySQL, or send it as a query to the server via DBI

Reply With Quote
  #27  
Old February 22nd, 2006, 09:20 PM
tim0 tim0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: toronto
Posts: 142 tim0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 9 m 39 sec
Reputation Power: 5
Quote:
Originally Posted by SimonGreenhill
You'll need to run that query directly in MySQL, or send it as a query to the server via DBI



can i keep the old password?

Reply With Quote
  #28  
Old February 22nd, 2006, 09:22 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 5 h 41 m 45 sec
Reputation Power: 1331
Facebook
Yes, it's just changing the stored hash of it -
Code:
mysql> select PASSWORD( 'secret' ), OLD_PASSWORD( 'secret' );
+-------------------------------------------+--------------------------+
| PASSWORD( 'secret' )                      | OLD_PASSWORD( 'secret' ) |
+-------------------------------------------+--------------------------+
| *14E65567ABDB5135D0CFD9A70B3032C179A49EE7 | 428567f408994404         |
+-------------------------------------------+--------------------------+
1 row in set (0.00 sec)


Both passwords are "secret", but the hash is different.

--Simon

Reply With Quote
  #29  
Old February 22nd, 2006, 09:26 PM
tim0 tim0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: toronto
Posts: 142 tim0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 9 m 39 sec
Reputation Power: 5
YEEAAA it worked
thank you so much