collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Local Host Error.  (Read 14376 times)

0 Members and 1 Guest are viewing this topic.

Offline Xanadu

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Local Host Error.
« on: January 22, 2009, 09:12:27 pm »
Hello all,

I just configured my BeBot and created my MySQL data base.  However, when I run the BeBot, I get the following error:

WARNING: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) is in C:\Program Files (x86)\Bebot\SOurces\MySQL.php on line 124
Can't connect to MySQL on 'localhost' (10061)

I am using

v.0.5.4  and PhP 5.2.6

MySQL.conf file is read as such:

<?php
   /*
   Database name
   */
   $dbase = "inne";

   /*
   Database username
   */
   $user = "xanadu";

   /*
   Database password
   */
   $pass = "123456";

   /*
   Database server (usually localhost)'
   */
   $server = "localhost";

   /*
   Database table prefix
   The bot will use <botname> as prefix on default, you only need to change this entry if you
   want a different prefix or none at all, in which case you have to set it to an empty
   string ("").
   If you want a different or no prefix you will have to uncomment the line below by removing
   the // in front of it and set it to the wished value.
   */
   // $table_prefix = "";

   /*
   Master prefix table.
   This is the mastertable containing information about all tablenames and whether those use
   or don't use a prefix. Only uncomment the line below by removing the // in front of it if
   you want to use a different mastertable then botname_tablenames, which is used on default.
   */
   // $master_tablename = "botname_tablenames";
?>

What am I doing wrong?  Or what else needs to be done?


« Last Edit: January 22, 2009, 09:14:48 pm by Xanadu »

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Local Host Error.
« Reply #1 on: January 22, 2009, 10:01:55 pm »
looks like you dont have MySQL running on the same computer

Offline Xanadu

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Local Host Error.
« Reply #2 on: January 24, 2009, 05:30:27 pm »
Oh it's running on the same PC.  I am also using Vista Ultimate 64 if that helps any.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Local Host Error.
« Reply #3 on: January 24, 2009, 10:22:59 pm »
Is mysql running? Is some firewall blocking access?

Offline Serbaa

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Local Host Error.
« Reply #4 on: January 25, 2009, 02:05:54 am »
can you open up mysql and connect to the database (just use a command prompt) using that same username and password ?

Offline Xanadu

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: Local Host Error.
« Reply #5 on: January 25, 2009, 02:46:26 pm »
can you open up mysql and connect to the database (just use a command prompt) using that same username and password ?

How do I do this?  I am very PC inept.  Also I have my windows firewall turned off, and I had my my brother open up the port on my router, and I still get the same error.  My SQL is also turned on before I try connecting

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Local Host Error.
« Reply #6 on: January 25, 2009, 04:34:36 pm »
localhost doesnt use the router
you should also try the ip for localhost
127.0.0.1

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 192
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal