linuxmysql8安装教程,MySQL8系列安装与配置教程(Linux环
mysql安装教程菜鸟课程
境)
以CentOS8为例进⾏讲解。
关闭firewalld
关闭: systemctl stop firewalld
开机禁⽤  : systemctl disable firewalld
使⽤root⽤户按照如下步骤执⾏
yum install -y wget
选择⼀个⽬录,并进⾏下载
rpm -arch.rpm
yum install mysql-server -y
默认安装⽬录 /usr/share/mysql
如果需要取消⼤⼩写敏感,请在启动mysql之前进⾏设置:
(1)打开mysql配置⽂件
vim /etc/myf.d/mysql-serverf
(2)尾部追加⼀⾏
lower_case_table_names=1
关于python中len是什么意思
并保存,然后再初始化数据库。
activex flash和ppapi flash的区别启动mysql
systemctl start mysqld
验证是否启动
systemctl status mysqldanimate闪退怎么办
mysql安装完成之后,默认⽆密码!
登录数据库:
mysql -urootapp engine sdk
Enter password:
高压svg无功补偿装置出厂报告
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 Server version: 8.0.17 Source distribution
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
重新设置root密码(红⾊部分密码⾃⾏修改)
alter user 'root'@'localhost' identified by 'Dongyun@8888';
use mysql;
update user set host = '%' where user = 'root';
修改加密规则(可能会报ERROR 1396 (HY000): Operation ALTER USER failed for ‘root’@’%’,再执⾏⼀次即可!) ALTER USER 'root'@'%' IDENTIFIED BY 'Dongyun@8888' PASSWORD EXPIRE NEVER;
更新 root ⽤户密码(允许navicat登录)
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Dongyun@8888';
刷新权限
FLUSH PRIVILEGES;

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。