I think the same as HELP NEEDED on Local: can't connect to any databases anymore or import them after computer shut down unexpectedly
However, I followed How can I connect to MySQL using TCP/IP rather than a socket on macOS/Linux? so my PhpStorm was still able to access the database - so I exported to SQL files (one file per db table)
So how do I now create a new table and import? My Adminer looks just like that other article’s screenshot, and my running
wp db create --dbuser=root --dbpass=root returns
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Does this happen for all sites in Local, or just one in particular?
Which version of Local is being used?
What Operating System (OS) and OS version is being used?
Attach the Local Log. See this Community Forum post for instructions on how to do so:
local-lightning.log (245.0 KB)