Author Topic: MySql - Blank password  (Read 3168 times)

Offline xprex

  • Newbie
  • *
  • Posts: 2
MySql - Blank password
« on: June 05, 2007, 06:15:13 PM »
Something that I've been trying to find a solution the last few days is driving me crazy.

I have MySql and PHP 5 running on a win 2003 server, IIS6.
Everything works fine with roundcube except this:
I can only connect to the DB using an user with a blank password otherwise I get the "Bad Handshake" message. With a tool like SQLyog everything runs the way it shoud be.

MySql is enabled in PHP and I uncommented in the .ini file everything (I think) needed.

I also tried running this script but it's the same situation. The user has to have a blank password.

// hostname or ip of server (for local testing, localhost should work)
$dbServer='localhost';

// username and password to log onto db server
$dbUser='username';
$dbPass='';

// name of database
$dbName='test';

$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
print "Connected successfully
";
mysql_select_db("$dbName") or die("Could not select database");
print "Database selected successfully
";

// close connection
mysql_close($link);
?>


Since I know nothing about coding (I'm the nightmare of forums experts), I'm counting on your precious help solving this problem.

Thanks and remember: the monsters under your bed are there only to look after your socks!