当前位置:网站首页>Redhat 7 Maria DB installation and configuration
Redhat 7 Maria DB installation and configuration
2022-08-08 18:42:00 【51CTO】
(1) Install Maria DB and create database
yum install -y mariadb*
#Install all related packages of mariadb
systemctl start mariadb
#Start mariadb database
systemctl enable mariadb
#Set mariadb to start automatically when booting by default
mysql
#Enter the database
create database Contacts;
#Create a database named Contacts
show databases;
use Contacts
source /users.mdb
show tables;
grant select on Contacts .* to [email protected]'localhost' identified by 'redhat'; exit
mysqladmin -uroot -p password 'redhat' #two carriage returns
mysql -uroot –p #password input redhat
mysql -uZhangsan –p #password input redhat
(2) Common commands
mysql –uroot –p
show tables;
#View table structure
desc table name;
#View table fields
select bid,password from pass where password='tangerine';
#Check the ID number of the password
select * from name where aid='3';
#Find name by password id
边栏推荐
猜你喜欢
随机推荐
Shell脚本三剑客(grep、sed、awk)
百度分享插件的使用
水印图像读取与制作,三通道图转为4通道,制作透明图
CF533B(树形dp+转移技巧)
面试突击:输入URL之后会执行什么流程?
diff 命令
Shell正则表达式
mv-lcd初始化
为什么需要交叉编译器
CF187C(堆优化BFS)
2021年9月电子学会图形化三级编程题解析含答案:接红包游戏
小白转行做3D游戏建模,有没有前途?
数据压缩和归档(三)、tarfile
熬夜拜读349页阿里面试通关手册,成功闯入字节
DHCP服务初探
MIMO雷达波束赋形
hdu2647 N!Again
建设必要的是什么意思
内核实战教程第1期|数据库系统概述,带你走近 OceanBase 研发环境!
flask基础知识:









