Php artisan command with mysql

hello everyone,

i have a fresh install with mamp pro and mysql database on a mac. If I want to change the theme from demo to my own and run the php artisan tailor:refresh command I got following error:

In Connection.php line 760:
                                                                                                                             
  SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `tailor_content_schema` order by `id` asc limit 100)  
                                                                                                                             

In Connector.php line 70:
                                                    
  SQLSTATE[HY000] [2002] No such file or directory  

What is this?

This is an error coming from MySQL saying it cannot find the database storage file.

Okay.

How can I fix that? The backend is working but I can’t work with php artisan commands because of the error.

probably try to change the server address, playing with 127.0.0.1 or localhost.
I remember having this type of issue with MAMP

I now tried it with DDEV on Docker and MySQL. And if I run php artisan tailor and got this error:

In Connection.php line 760:
                                                                               
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed:  
   nodename nor servname provided, or not known (SQL: select * from `tailor_c  
  ontent_schema` order by `id` asc limit 100)                                  
                                                                               

In Connector.php line 70:
                                                                               
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed:  
   nodename nor servname provided, or not known                                
                                                                               

In Connector.php line 70:
                                                                               
  PDO::__construct(): php_network_getaddresses: getaddrinfo for db failed: no  
  dename nor servname provided, or not known                                   
                                                                               

It seems more to be a general problem with mysql?!