I am installing Erpnext in my ubuntu 18.04 Lts. I want to know how to set password for MySql root user.
I am installing erpnext in my ubuntu 18.04 LTS. while running the command - 'sudo bench new-site site4.local' for creating a new frappe site, it is asking for - 'MySQL root password':
I have tried - sudo mysql --user=root mysql' but it is giving output as- mysql: unknown variable 'pid-file=/var/run/mysqld/mysqld.pid
pymysql.err.InternalError: (1698, "Access denied for user 'root'@'localhost'")