uos 20仓库系统中,默认有mysql 5.7安装包,只需要执行如下命令即可安装
apt install mysql-server
启动mysql
systemctl enable mysql
systemctl start mysql
初始化安装的mysql对于root用户是没有密码的,直接输入以下命令即可进入
mysql -u root -p
修改root账号密码
update mysql.user set authentication_string=password("Pass-123-root") where user = 'root';
update mysql.user set plugin="mysql_native_password";
重新使用root用户进行登陆,即可发现需要输入密码。
mysql的配置文件mysqlf在/etc/mysql/conf.d/mysqlf下
转载:
https://lrting-top.blog.csdn/article/details/122087057?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscanv2&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscanv2&utm_relevant_index=1
更多推荐
uos操作系统安装mysql
发布评论