Author Topic: MySql - Blank password  (Read 2075 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)

// username and password to log onto db server

// name of database

$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

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!