Mysql 使用中的错误

1、ERROR! The server quit without updating PID file (/usr/local/var/mysql/EricdeiMac.local.pid).



2、ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

mysql> SHOW VARIABLES LIKE 'validate_password%';

+--------------------------------------+--------+

| Variable_name                        | Value  |

+--------------------------------------+--------+

| validate_password.check_user_name    | ON    |

| validate_password.dictionary_file    |        |

| validate_password.length            | 8      |

| validate_password.mixed_case_count  | 1      |

| validate_password.number_count      | 1      |

| validate_password.policy            | MEDIUM |

| validate_password.special_char_count | 1      |

+--------------------------------------+--------+

7 rows in set (0.00 sec)

mysql> set global validate_password_length=4;

ERROR 1193 (HY000): Unknown system variable 'validate_password_length'

mysql> set global validate_password.length=4;

Query OK, 0 rows affected (0.00 sec)

mysql> set global validate_password.policy=0;

Query OK, 0 rows affected (0.00 sec)

3、解决MySQL修改密码:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option

1)第一个终端 打开:cd /usr/local/mysql/bin => sudo su => ./mysqld_safe --skip-grant-tables &

2)  第二个终端 打开:mysql -u -root =>  flush privileges;  =>ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

你可能感兴趣的:(Mysql 使用中的错误)