you have to change the connection string this will solve your problem here is the connection string that will work with python(any versions)
connecttodb($servername,$dbname,$dbusername,$dbpassword);
function connecttodb($servername,$dbname,$dbuser,$dbpassword)
{
global $link;
$link=mysql_connect ("$servername","$dbuser","$dbpassword");
if(!$link){die("Could not connect to MySQL");}
mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error());
}
Future Desings And Gadgets only at:
http://techonova.com
Latest Technology News and Updates by
http://technologytoday.in
Latest World News :
http://technologytoday.in/category/world-news/