安装后MySQL的error log提示:[Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.# sudo mysql -urootmysql> alter user root@localhost identified with mysql_native_password as '*xxxxx';【阅读全文】
修改my.cnf:[mysqlld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sock# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0log-error=/var/log/mysqld.logpid-file=/var/run/mysqld/mysqld.pidsocket=/var/lib/mysql/mysql.sockcharacter_set_server=utf8[cl...【阅读全文】