Fixing the Logout Error & MYSQL Connection Errors.

This tutorial is for people who have troubles with logout errors & Errors in Mysql like:
[Image: Socket.png]

Fixing Cookies:

First thing first, we need to get access to our files. So we need to get a ftp client such as: Filezilla.
Once we have filezilla we login with out FTP credentials.

Next we go to the path of
/inc/settings.php //Like my server//

Then we open it up with a client like notepad/notepad++ if your on windows, or if your on Mac/Linux open it up with Gedit or whatever your text editor is. Minimal is Vim(For Mac/Linux).

[Image: owrfuaZ.png]
Next look for this in your code,
$settings['cookiedomain'] = "";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";
Now this is where people forget, you need to have the period before the domain in "Cookiedomain."

Heres an example:

$settings['cookiedomain'] = "";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";

I replaced mydomainwith google.

Once we have this we need to login to our Admin Panel, and go to:
ACP->Configuration->Settings->General Configuration
Make sure to fix EVERYTHING that has your old domain, in it.

These are the settings to re-update:
Board URL
Homepage URL
Cookie Domain

Once done save it and you're done with configuring your forum, to work with the new site. Smile

Fixing Connection Error:
This one is quite easy. You must go in inc/config.php
Update the query with:
$config['database']['type'] = ''; //What you want for database managing. (PDO,mysql,mysqli)

$config['database']['database'] = ''; //Your Database name here
$config['database']['table_prefix'] = 'mybb_'; //A prefix if you choose to add one.

$config['database']['hostname'] = ''; //The host your sql is located at.
$config['database']['username'] = ''; //Username of the SQL database.
$config['database']['password'] = ''; //Password of the SQL user
Once you have that all setup, you're done!

In conclusion, you have successfully fixed the cookie errors, and have successfully fixed the Mysql connection error. I apologize for the color scheme I wrote this for my site before and I have a darker theme. So it looks more better on a dark scheme. If you like this tutorial please provide me some feedback and provide me anything you may want me to add/improve Wink. Thanks!
Hey Everyone I am back! I will slowly be in progression of helping you all with your questions!


Forum Jump:

Users browsing this thread: 1 Guest(s)