Manjaro安装mysql数据库

本文详细介绍了在Manjaro操作系统中安装MySQL的步骤,包括使用pacman命令安装,通过mysqld进行初始化,设置开机自启,启动服务,连接数据库以及修改默认密码。在安装过程中需要注意查看输出信息以确保操作成功,并提供了错误处理和密码修改的方法。
摘要由CSDN通过智能技术生成

第一步: 安装 MySQL

安装命令如下:

sudo pacman -S mysql

第二步: 初始化

sudo mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql

如果成功则返回以下信息

2018-12-18T13:52:12.107493Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2018-12-18T13:52:12.107563Z 0 [System] [MY-013169] [Server] /usr/bin/mysqld (mysqld 8.0.13) initializing of server in progress as process 1376
2018-12-18T13:52:12.108739Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consi

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值