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: mysql 5 and bebot 31  (Read 11051 times)

0 Members and 1 Guest are viewing this topic.

Offline womp

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
mysql 5 and bebot 31
« on: July 22, 2006, 11:37:07 pm »
when trying to start bebot31 I start to get spammed with the following error

updated to php 5

trying to run bebot31 Fatal error: Call to undefined function mysql_connect <> in c:\bebot31\Mysql.php on line 36


Im lost here

Im unsure of what to be looking for here.
« Last Edit: July 22, 2006, 11:50:02 pm by womp »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: mysql 5 and bebot 31
« Reply #1 on: July 23, 2006, 07:38:05 am »
This indicates that your php is compiled without MySQL support, or that the MySQL module for php is not loaded.
BeBot Founder and Fixer Kingpin

Offline womp

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #2 on: July 24, 2006, 04:57:45 am »
is there by any chance you could explain how I could check or correct this issue?

Offline womp

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #3 on: July 24, 2006, 05:10:12 am »
actually I figured it out. I just had to edit an .ini file up and running good now.

Offline Zerovector

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #4 on: November 15, 2006, 02:37:45 pm »
I actually get the same error, and as I am new to *nix I'm naturally quite lost here.

Fatal error: Call to undefined function:  mysql_connect() in <mumble mumble> BeBot_v0.2.9/MySQL.php on line 63

I have made sure my php.ini has the extension=mysql.so uncommented, also a forum I established (based on phpBB2) went up and running without huge problems.

My PHP version is 4.4.2 and MySQL 5.0.22, on an Ubuntu 6.06 server.

Any kind of hints towards a solution would be greatly appreciated! :-*

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #5 on: November 15, 2006, 05:32:55 pm »
You need to get the mysql extension.

If I recall...
sudo apt-get install php4-mysql

I would say hold off upgrading to 6.10 if you plan to. ;) Some packages don't work properly (especially for php5).
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Zerovector

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #6 on: November 15, 2006, 07:24:32 pm »
Oh yeah, I forgot to mention I've already got that extension. Oh well, I'll continue googling, perhaps something pops up.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #7 on: November 15, 2006, 07:29:12 pm »
Try putting a php.ini files with extension=mysql.so into the bot main directory.

Other possibility: mysql.so is not in a spot php looks for it?

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: mysql 5 and bebot 31
« Reply #8 on: November 15, 2006, 08:38:17 pm »
You need to modify the php.ini extension location.

Just winging this, should be in /etc/php4/cli/php.ini

I can check on mine if i got that wrong :P

Inside that, look for the ext_dir or something along those lines. Put ext-dir = '/usr/lib/php4/2006..../' (I can't remember the exact name of the directory). If you're not sure, when I'm not strapped for time, I'll post a complete detail as to what I mean :) Hopefully my jibberish will point you in the right direction though :P



220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

 

* 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: 299
  • 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