HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: MySQL error message
Operating System - Linux
1828352
Members
2984
Online
109976
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2004 09:01 AM
09-16-2004 09:01 AM
MySQL error message
I am setting up a MySQL server and I wanted to run some benchmark tests. When I tried to run the run-all-tests script under mysql-bench, I got the following error message:
DBI connect failed: Can't connect to local MySQL server through socket '/var/llib/mysql/mysql.sock' (2)
What do I need to change to correct this? Thanks.
DBI connect failed: Can't connect to local MySQL server through socket '/var/llib/mysql/mysql.sock' (2)
What do I need to change to correct this? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2004 11:10 AM
09-16-2004 11:10 AM
Re: MySQL error message
This usually means that the mysqld hasn't been started.
The other possiblity is that the 'mysql-bench' is looking for the local-socket file in a different place. '/var/lib/mysql/mysql.sock' in this case, where as your mysql server is quite possibly putting it in a different place ('/tmp/mysql.sock' is not uncommon).
You'll need to verify that your mysql daemon is started, and see where it's putting it's socket file. If it's not '/var/lib/mysql/mysql.sock', then make a symbolic link to it at that location:
ln -s /real/path/to/mysql.sock /var/lib/mysql/mysql.sock
This should allow everything to work.
The other possiblity is that the 'mysql-bench' is looking for the local-socket file in a different place. '/var/lib/mysql/mysql.sock' in this case, where as your mysql server is quite possibly putting it in a different place ('/tmp/mysql.sock' is not uncommon).
You'll need to verify that your mysql daemon is started, and see where it's putting it's socket file. If it's not '/var/lib/mysql/mysql.sock', then make a symbolic link to it at that location:
ln -s /real/path/to/mysql.sock /var/lib/mysql/mysql.sock
This should allow everything to work.
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2004 01:17 AM
09-17-2004 01:17 AM
Re: MySQL error message
if mysqld is running,
see if you have a /var/lib/mysql/mysql.sock and if so, whether it has access rights to mysql:daemon
see if you have a /var/lib/mysql/mysql.sock and if so, whether it has access rights to mysql:daemon
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP