make: it’s highly recommended that you use GNU make3.75 or higher.
MySQL 8.0 source code permits use of C11 features. To enable a good level of C11 support across all supported platforms, the following minimum compiler versions apply:
GCC: 4.8 or higher
The MySQL C API requires a C++ or C99 compiler to compile.
The Boost C++ libraries are required to build MySQL (but not to use it). The current version of Boost must be installed.
$ grep "temporary password" /usr/local/mysql/data_3306/error.log $ mysql -uroot -hlocalhost -p
mysql> alter user 'root'@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
mysql> show variables like '%version%'; +-------------------------+--------------------+ | Variable_name | Value | +-------------------------+--------------------+ | innodb_version | 8.0.3 | | protocol_version | 10 | | slave_type_conversions | | | tls_version | TLSv1,TLSv1.1 | | version | 8.0.3-rc-log | | version_comment | MySQL Server (GPL) | | version_compile_machine | x86_64 | | version_compile_os | Linux | +-------------------------+--------------------+ 8 rows in set (0.01 sec)
1 2 3
$ mysql -uroot -p mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
mysql -uroot做为客户端时,默认会加载/etc/my.cnf配置文件里的[client] sock路径。
如果/etc/my.cnf不存在,则会按默认编译里指定的sock来连接, -DMYSQL_UNIX_ADDR
Default: /tmp/mysql.sock
1
$ mysql -uroot -ppassword -S /usr/local/mysql/data_3306/mysql.sock