Archive > BeBot 0.3 support
MySql problem
captainwinky:
heya,
i hope this is the correct place for this query.
apon trying to run any BeBot newer than 0.2, i get
MySQL support required to run this bot
i am currently running 0.2.2 without any real problems, but would like to fiddle with newer versions to amuse myself in the wee hours of the morning :p
a little system info regarding mysql and php:
mysql Ver 14.12 Distrib 5.0.21, for pc-linux-gnu (i486) using readline 5.1
PHP 5.1.2-1+b1 (cli) (built: Mar 20 2006 04:17:24)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
any pointers would be appreciated :)
Xenixa:
You need to ensure both the php_mysql(handles mysql functions) and libmysql(handles mysql connections) extentions are being loaded at runtime. Check the local php.ini for the bebot install.
captainwinky:
had a little look at ../BeBot/php.ini
it seems to suggest the extensions section is for Windows. is there also something that needs doing here on Linux?
also took a look at some of my system's php.ini files. no mention of php_mysql or libmysql in them.
sorry for my noobness, and all the questions that come as a result of it :)
Khalem:
Im heading to bed so i dont have the time to do much right now.
But this is the second time ive heard of the problem. The first person ended up downgrading without giving me a chance to try and diagnose the problem.
If you have a 0.2.2 working, its obvious that you have php with MySQL compiled in.
What i fail to understand offhand is why the following in main.php fails to detect the MySQL module being part of php:
--- Code: ---if (!extension_loaded("mysql"))
{
if ($os_windows)
{
if (!dl("php_mysql.dll"))
{
die("Loading php_mysql.dll failed. MySQL extention required to run this bot");
}
}
else
{
die("MySQL support required to run this bot");
}
}
--- End code ---
Has something changed on *nix when it comes to PHP and MySQL in 5.0/5.1 that im unaware of?
In any case, commenting out the die() statement in main.php should allow you to run newer versions for now.
Im wondering if this is a shell account though, and if it would be possible to obtain temporary access to it to do some testing.
captainwinky:
Thanks Khalem. I'll give that a try when I have a bit of spare time.
Regarding testing, I might be able to arrange that (assuming I have not misunderstood what you meant there). I would need to speak to my network admin though to determin whether it's possible due to my being behind a bit of masquerading and such (and whether he would allow it) :)
Navigation
[0] Message Index
[#] Next page
Go to full version