Introduction:
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
/public_html/inc/settings.php
or
/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,
Now this is where people forget, you need to have the period before the domain in "Cookiedomain."
Heres an example:
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:
Once done save it and you're done with configuring your forum, to work with the new site.![Smile Smile]()
Fixing Connection Error:
This one is quite easy. You must go in inc/config.php
Update the query with:
Once you have that all setup, you're done!
Conclusion:
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
. Thanks!
This tutorial is for people who have troubles with logout errors & Errors in Mysql like:
![[Image: Socket.png]](http://docs.mybb.com/images/b/b0/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
/public_html/inc/settings.php
or
/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]](http://i.imgur.com/owrfuaZ.png)
Next look for this in your code,
Code:
$settings['cookiedomain'] = ".olddomain.com";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";
Heres an example:
Code:
$settings['cookiedomain'] = ".google.com";
$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:
Code:
Board URL
Homepage URL
Cookie Domain
Once done save it and you're done with configuring your forum, to work with the new site.

Fixing Connection Error:
This one is quite easy. You must go in inc/config.php
Update the query with:
PHP Code:
$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
Conclusion:
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
