Wamp 2.0 Mysql error 0
Posted by: zoyzmagic (---.bb.sky.com)
Date: July 03, 2009 09:20PM

I have recently downloaded Wamp 2.0, but when i tried to configer MySql is stoped on start service and error said,

"CANNOT CREATE WINDOWS SERVICE FOR MYSQL. ERROR 0"

I have uninstalled n reinstalled about 3 times but same thing happening,

Can anyone please help me out..

Thank you.

-zoyz

Options: ReplyQuote
Re: Wamp 2.0 Mysql error 0
Posted by: rahulsareen (61.246.243.---)
Date: July 06, 2009 02:15PM

<?php

$con=mysql_connect("localhost","root","root"winking smiley;

if(!$con)

{

die('could Not Connect' . mysql_error());
}

mysql_select_db("my_db1",$con);

mysql_query("Insert into RAM (RT,RT1,RT2)values('RT','RT1','RT2')"winking smiley;


mysql_close($con);




?>



error comes could not connect to database

Options: ReplyQuote
Re: Wamp 2.0 Mysql error 0
Posted by: yfastud (Moderator)
Date: July 06, 2009 06:11PM

to setup db, follow this
[blog.jlbn.net]
and try to setup db w/ these simple info just for test
Username: test
Host: localhost
Pass: 1234
Re-Pass: 1234
DB: test (auto created when follow my guide)
then try w/ this very simple test script
<?php
@ $db = mysql_pconnect('localhost', 'test', '1234');
  
  if (!$db)
  {
     echo 'Error: Could not connect to MySQL';
     exit;
  }
  else
  {
     echo 'Successful connect to MySQL';
  }
  
$useDB = mysql_select_db('test');
 if (!$useDB )
  {
     echo 'Error: Could not open MySQL DB';
     exit;
  }
  else
  {
     echo 'Successful open MySQL DB';
  }
 
?>

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.