1 error:
“mysqld_safe mysqld from pid file /usr/local/mysql/data/localhost.localdomain.pid ended”
Solution:
Determine if there is a configuration file /etc/my.cnf with the following settings:
port = 3306
socket = /tmp/mysql.sock
data = / var / lib / mysql /
2.you must reset your password using alter user statement before executing this
After installing mysql, after logging in, no matter what command is run, it always prompts this
Solution:
step 1: SET PASSWORD = PASSWORD(‘your new password‘);
step 2: ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;
step 3: flush privileges;
3.Field 'ssl_cipher' doesn't have a default value
Solution:
grant usage on *.* to 'username'@'localhost' identified by 'password' with grant option;
where username and password are replaced with your own username and password;
principle:
With the USAGE permission in the GRANT statement, you can create an account without granting any permissions. It can set all global permissions to 'N'. It is assumed that you will later grant specific permissions to this account.
4. Open the binlog method:
Modify my.cnf and add configuration under [mysqld]
log-bin=$path/$prefix
server_id = $ serverId
Description: The server-id parameter is used to provide an independent ID for the primary database and the standby database during replication to distinguish the primary database from the standby database.
If server_id is not specified, the following error will be reported:
You have enabled the binary log, but you haven't provided the mandatory server-id. Please refer to the proper server start-up parameters documentation