# Unable to access database

**URL:** <https://community.localwp.com/t/unable-to-access-database/14465>\
**Category:** Support\
**Tags:** mysql-8\
**Created:** [September 29, 2019, 6:49am UTC](https://community.localwp.com/t/unable-to-access-database/14465 "2019-09-29T06:49:50Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [May 7, 2020, 4:34pm UTC](https://community.localwp.com/t/unable-to-access-database/14465/39 "2020-05-07T16:34:54Z")

</div>

@richardbuff that command creates an alias to the actual command.

The command is as follows.

`SOCKET=$(mysqld --verbose --help | grep ^socket | awk '{print $2, $3, $4}');ln -sfv $SOCKET /tmp/mysql.sock`

---

_[View the full topic](https://community.localwp.com/t/unable-to-access-database/14465)._
