dcblogdev / dcblogcomments

2 stars 0 forks source link

using-mamp-and-dealing-with-the-error-mysql-no-such-file-or-directory #23

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Using MAMP and dealing with the error: mysql No such file or directory - DC Blog

I’ve got a fresh install of Nova Framework installed and decided to use MAMP as my server a...

https://dcblog.dev/using-mamp-and-dealing-with-the-error-mysql-no-such-file-or-directory

demyashev commented 4 years ago

Thanks! Very useful :)

cedric-jacquot commented 3 years ago

Thanks for your explanation, but I don't understand : where is the file "app/Config/Database.php" ?

dcblogdev commented 3 years ago

This path was specially for Nova Framework, the path also works for Laravel if your using something else these instructions won’t work.

I don’t use mamp anymore it’s better to install MySQL in to your system.

cedric-jacquot commented 3 years ago

Thank you for your fast response ;) OK I understand, I think this answer not concern my problem. In the meantime I fund the solution : it was necessary that I create a symbolic link in the path /tmp (on MacOs BigSur) :

sudo mkdir /var/mysql
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock

[https://drupal.stackexchange.com/questions/99446/ive-got-pdoexception-sqlstatehy000-2002-no-such-file-or-directory-when-u](link to the solution)

I did not succeed to install mysql or mariadb that's why I have installed MAMP.