budcolor Posted December 29, 2003 Share Posted December 29, 2003 Accdently i deleted localhost user,now i need to connect ,OR how to uninstall MYSQL in windowsXP(OS) ERROR:access denied for user=\'@localhost\' to database\'test\' Please give eamil :[email protected] thanks Link to comment https://forums.phpfreaks.com/topic/1575-local-host-error/ Share on other sites More sharing options...
Influx Posted December 30, 2003 Share Posted December 30, 2003 if you need to connect use this... [php:1:a7ebf38d4e] $host = \"localhost\"; $user = \"USER\"; $pass = \"PASSWORD\"; $db = \"DATABASE NAME\"; $connection = mysql_connect($host,$user,$pass); $base = mysql_select_db($db,$connection); [/php:1:a7ebf38d4e] Link to comment https://forums.phpfreaks.com/topic/1575-local-host-error/#findComment-5170 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.