BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.3 support => Topic started by: womp on July 22, 2006, 11:37:07 pm

Title: mysql 5 and bebot 31
Post by: womp 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.
Title: Re: mysql 5 and bebot 31
Post by: Khalem 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.
Title: Re: mysql 5 and bebot 31
Post by: womp on July 24, 2006, 04:57:45 am
is there by any chance you could explain how I could check or correct this issue?
Title: Re: mysql 5 and bebot 31
Post by: womp 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.
Title: Re: mysql 5 and bebot 31
Post by: Zerovector 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! :-*
Title: Re: mysql 5 and bebot 31
Post by: Naturalistic 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).
Title: Re: mysql 5 and bebot 31
Post by: Zerovector 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.
Title: Re: mysql 5 and bebot 31
Post by: Alreadythere 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?
Title: Re: mysql 5 and bebot 31
Post by: Naturalistic 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



SimplePortal 2.3.7 © 2008-2024, SimplePortal