当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Zhiwen final version
我们想更换RDS数据库,从sqlserver 2016 web升级到 2017企业集群版,有专家咨询
搭建企业级数据治理体系指南
浅谈C语言简单实现二分查找
QT With OpenGL(泛光)(Bloom)
CF1165F2(二分答案)
关于求最小公倍数的三种常用方法
SSH协议抓包-工具Wireshark
连接工具和idea能查询出数据库数据,项目中查不到数据库数据:解决办法
发光的几何图形canvasjs特效
【Promise.allSettled】手写Promise.allSettled方法
ccdV01_20220808
3D角色建模师和3D角色动画师哪个更有前景?哪个更适合小白入门?
Task-Driven Super Resolution: Object Detection in Low-resolution Images
JVM内存模型和结构详解(五大模型图解)
CS231n: 12 Reinforcement Learning
干货技巧|如何用3DsMax制作笔记本电脑
2022年美术生就业前景解析
hdu1042 N!(大数)
2021年9月电子学会图形化二级编程题解析含答案:画正多边形