sudo pacman -S mysql
正在解析依赖关系...
正在查找软件包冲突...
软件包 (5) jemalloc-1:5.2.0-1 libmysqlclient-8.0.16-1 mysql-clients-8.0.16-1 protobuf-3.7.0-1 mysql-8.0.16-1
全部安装大小: 240.16 MiB
:: 进行安装吗? [Y/n] y
:: You need to initialize the MySQL data directory prior to starting
the service. This can be done with mysqld --initialize command, e.g.:
mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql
:: Additionally you should secure your MySQL installation using
mysql_secure_installation command after starting the mysqld service
mysql 的可选依赖
perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission
:: 正在运行事务后钩子函数...
(1/3) Reloading system manager configuration...
(2/3) Creating temporary files...
(3/3) Arming ConditionNeedsUpdate...