it’s first time i using MySQLdb on python and i using Manjaro, when i tried to run my program. The error always show like :
_mysql_exceptions.OperationalError: (2002, 'Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (13 "Permission denied")')
Many people suggest me to add file mysqld.sock ang yes i did it, but still error with the same error.
And i get suggest to install mysql-client, python-mysql-connector, mysql-python, But still error.
Advertisement
Answer
According to this prompt
"Permission denied"
I guess your operation may need root privilege.