Mysql problem seen (sorted by time encountered)
1.Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
The solution: restart mysql server
2. The password does not meet security policy (password is too simple)
Objective: To set up a simple password
solution:
1, use the command: show variables like 'validate%' ;
inquiry into the current password security policy:
2. Modify validate_password_length validate_password_policy field and change the password length and password level
statement:
SET Global validate_password_policy = 0;