Big Sur mySQL - php - apache simple low maintenance configuration needed
Short version of my questions: what is the way forward for hobbiest-learners who want to use the triad of apache-php-mySQL to do a bit of web development?
After not touching my setup for a couple years and many OS upgrades I have set about getting the pieces back up and running together. The php and apache took a bit of fiddling but they are working fine though the warning that php will not be a part of future OS is a little concerning. Getting mySQL running has taken the better part of two days without succeeding. There are dozens of results returned by searches but so far none have worked. There are problems with paths, the shell, and permissions. mySQL Workbench has not helped. Some of the errors are listed below.
I am looking for two things here... a listing of what it takes to get mySQL working on my local computer (Big Sur) and some insight about whether this is a lost cause to reasonably maintain. And by reasonable I exclude keeping up with weekly upgrades or significant reconfigurations with each new OS.
mysql -u root -p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
sudo: /usr/local/mysql/bin/mysql.server: command not found
mysqld_safe --skip-grant-tables &
[1] 41040
pamelaparks@Blackie ~ % /usr/local/mysql/bin/mysqld_safe: line 653: /usr/local/mysql/data/Blackie.local.err: Permission denied
Logging to '/usr/local/mysql/data/Blackie.local.err'.
2021-06-25T20:15:09.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/Blackie.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 199: /usr/local/mysql/data/Blackie.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 916: /usr/local/mysql/data/Blackie.local.err: Permission denied
2021-06-25T20:15:09.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/{pamelaparks}.pid ended
/usr/local/mysql/bin/mysqld_safe: line 144: /usr/local/mysql/data/Blackie.local.err: Permission denied
Parallels, macOS 10.14