MyBB Community Forums

Full Version: What file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to know what file are they mentioning exactly. Doesn't help if their not stating it.

Installing MyBB on mySQL 4.0.x

To be able to install MyBB on mySQL 4.0.x, you need to make an alteration to a file first before running the installation script. This is a workaround, and not an alternative - mySQL 4.0 has already reached it's end of life so you really should upgrade as soon as possible.

In ./inc/db_mysql.php, delete/remove or comment out:

if($success && $this->db_encoding)
{
$this->query("SET NAMES '{$this->db_encoding}'");
if($write_success && count($this->connections) > 1)
{
$this->write_query("SET NAMES '{$this->db_encoding}'");
}
}
return $success;

and also:

return " CHARACTER SET {$this->db_encoding} COLLATE {$collation}";

This will allow you to install MyBB. If you have any problems, please report them at the Community Forums.

Note: These changes are not needed if your host has MySQL 5.0 or above.
assuming that you had extracted the myBB installation package to a folder - db_mysql.php file
is at mybb/upload/inc folder on your computer. if you had uploaded the installation content to
webhost's server then it is at ./inc folder . open the file using a code editor (eg. notepad++)
AND do required changes , save and reupload / upload

[Image: dbmysql.png]
AFAIK, that only works for MyBB 1.4.

Bare minimum (server requirements)

A host with the following:

    PHP version 5.1.0 or above with XML Extension installed
        Note: If you want to use MyBB 1.4.x, PHP version 4.3.11 or above would be required 
If MySQL 4 is all your host offers, then that's ridiculous, find a host that has modern software installed.
(2011-07-21, 01:40 AM)Oskii Wrote: [ -> ]I would like to know what file are they mentioning exactly. Doesn't help if their not stating it.

Er...

(2011-07-21, 01:40 AM)Oskii Wrote: [ -> ]Installing MyBB on mySQL 4.0.x

To be able to install MyBB on mySQL 4.0.x, you need to make an alteration to a file first before running the installation script. This is a workaround, and not an alternative - mySQL 4.0 has already reached it's end of life so you really should upgrade as soon as possible.

In ./inc/db_mysql.php, delete/remove or comment out:

...

Undecided Says it right here...

But anyway, if MYSQL 4 is the best your host offers, then that's ridiculous, find a proper host that offers recent versions of software.