Without any reason, after closing the terminal window without exiting and stopping the server, the next time I run any command, for example python manage.py migrate / runserver / makemigrations, I get the following trace. I canβt understand what is wrong right now?
EDIT: Also in the mysql command, enter your interface 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
EDIT2: I suppose this could be caused by MAMP, which is also installed on my MAC
EDIT3: After I uninstalled MAMP. Not sure if this was directly related. Unable to enter mysql shell.
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
EDIT4 !!:
I use a terminal on mac, so I applied this command sudo /usr/local/mysql/support-files/mysql.server start and returned
ERROR! MySQL server process
after trying to start the server
ERROR! The server quit without updating PID file (/usr/local/mysql/data/MacBook-Air-Vitalij.local.pid).
reboot command:
ERROR! MySQL server PID file could not be found!
EDIT5: after recommending the answer, I tried changing max_connections, but to no avail:
mysql --help | grep "Default options" -A 1 Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
I tried all the ways, but he was absent. And I canβt find this file manually, I am funding that my.cnf is not in MySQL for Mac. Also tried to uninstall MySQL and reinstall it - also did not help.
open -a Finder etc/mysql/my.cnf The file /Users/TheKotik/djboy/etc/mysql/my.cnf does not exist.

python django mysql terminal
user3475724
source share