Magento Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 113 - magento

I have copy the magento website from one server to another and done all the necessary changes and now when i opened my new site the following error is coming
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1237612538
It is showing the numbers of errors first is
a:4:{i:0;s:115:
"SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 113"
;i:1;s:2374:"
#0 /home/content/32/9503032/html/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()

Here is the solution:
Are you sure changed db credentials correct in xml file?
1 .Recheck db credentials with username and password correct or not?
File permisions
compilation mode enable/disable
clear cache
clear sesion
try it

if you want to more detail in error, you can change a little bit step as follows
go to Magento Folder
Magento Folder
errors
local.xml.sample to local.xml
Refresh Page. You will see more detail errors.

Related

Transferring Joomla from local to remote host

I built a website on Joomla on a local host server and now I'm trying to upload it to the new hosting I bought. So here it goes:
I upload the Akeeba backup
When I'm on the pre-installation page I click next then it asks me for > Connection information
I'm not sure what should I put there so I click next and it gives me this message:
An error occurred while restoring the database. The error message can
be found below. Click on the × button at the top right of this dialog
message to close it and return to the database restoration page.
Access denied for user 'voiscypr_vacd'#'localhost' to database
'voiscypr_vacd' SQL=CREATE DATABASE voiscypr_vacd CHARACTER SET
utf8
Any ideas on how to fix it ?

Magento session_regenerate_id() error

I am getting this error in system.log. When this error appears,user can not register.
What can it be? I am using Magento 1.9.3.9
2018-08-28T06:42:12+00:00 ERR (3): Warning: session_regenerate_id(): Session object destruction failed in D:\workspace\src\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php on line 543
Please make sure apache running at user, and user has permissions to change files where your local websites are stored else PHP wouldn't start the session.
You need to change the Apache user and everything will be working fine.
Thank you!

Exception printing is disabled by default for security reasons. Error log record number:

I just re-installed Magento and restored the old database with PhpMyAdmin.
The front page of the website is OK. But in the backend I've got this error when I go to Manage Categories.
Exception printing is disabled by default for security reasons.
Error log record number: 986836145855
Does anyone know how to solve this problem?
Go to magento/var/report and open the file with the Error log record number name (986836145855 in your case).
In that file you can find the complete description of the error.
For log files like system.log and exception.log, go to magento/var/log/.

Internal server error in bakup of magento 1.8.1

Taking System backup System->tools->backup -> System Backup in admin panel of magento 1.8.1, following Internal server Error occurred ---
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster#eshopsnet.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
During backup maintenance mode message show on home page of live website. After refreshing browser above error occured in home page and admin panel.
Please provide any solution.
connect to the ftp using software (ex:filezilla) go to the root folder (ex:public_html) right click on index.php and select file permissions. Then set the Numeric value to the 644. your done :)

500 internal server error on virtual hosting magento

I am running magento sites on virtual host.All are working properly except one where on product saving it shows me 500 error.I search and did alot of techniques but couldn't succeed.Can anyone tell me that either this is my side issue or server side.I check magento logs but no error or exception.Only on product save it show me the error.Thanks I also enable rewrites from htaccess.
While watching var/reports i found two types of errors in all files:
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction
SQLSTATE[42000] [1044] Access denied for user 'magento'#'%' to database

Resources