Welcome
Guest. Please
Login
or
Register
Client Area
|
Softaculous Cloud
|
Calendar
|
Quick Links
|
You are here:
Index
>
Virtualizor - Virtual Server Control Panel
>
General Support
> Topic :
Can't connect to local MySQL server through socket
Threaded Mode
|
Print
Can't connect to local MySQL server through socket (2 Replies, Read 19649 times)
Papershosting
#
November 29, 2021, 6:16 am
Group:
Member
Post Group: Newbie
Posts: 1
Status:
Hello, today I visited my virtualizor site and got a lovely message
Code
Error!: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/usr/local/emps/var/mysql/mysql.sock' (2)
What troubleshooting steps should i take to resolve this issue?
IP:
--
Can't connect to local MySQL server through socket
wolke
#
November 29, 2021, 7:42 am | Post: 1
Group:
NOC
Post Group: Elite Member
Posts: 437
Status:
check if mysql is running at all:
Code
systemctl status mysql
if mysql is running, check your my.cnf config file if you have the following line in the [mysqld] section:
socket=/var/lib/mysql/mysql.sock
If not, add this line and restart mysql
Edited by
wolke
: November 29, 2021, 7:42 am
IP:
--
Can't connect to local MySQL server through socket
jevingala
#
November 29, 2021, 1:11 pm | Post: 2
Group:
Virtualizor Team
Post Group: Super Member
Posts: 746
Status:
Hi,
You can also try using this guide :
https://www.virtualizor.com/docs/faq/panel-is-offline/
-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/
IP:
--
« Previous
Next »
Threaded Mode
|
Print
Jump To :
Select a location to go to :
Home
Softaculous Inc.
|--News and Announcements
Softaculous Auto Installer
|--General Support
|--Suggestions
|--Languages and International Support
|--Themes and skins
|--Bugs
SitePad Website Builder
|--General Support
|--Suggestions
Pagelayer and PopularFX for WordPress
|--PopularFX
|--Pagelayer
Virtualizor - Virtual Server Control Panel
|--Pre-Sales
|--General Support
|--Languages and International Support
|--Suggestions
|--Bugs
Webuzo
|--General Support
|--Suggestions
|--Bugs
AMPPS
|--General Support
|--Suggestions
|--Bugs
General Stuff
|--General Discussions
|--Introduce Yourself
Users viewing this topic
1 guests, 0 users.
All times are GMT. The time now is June 18, 2024, 2:15 am.
Powered By AEF 1.0.8
© 2007-2008
Electron Inc.
Queries: 10 | Page Created In:7.361