Mariadb mariadb-client mariadb-server

# yum groupinstall mariadb mariadb-client mariadb-server -y

# vim /etc/my.cnf

skip-networking=1

# systemctl restart mariadb

# systemctl enable mariadb

# mysql

show databases;

create database Contacts  ; 注意大小写

use Contacts  ;

show tables; 查看一下有哪些表

source /root/users.mdb  ;     恢复数据库,根据实际文件路径

show tables  ;

grant select on Contacts.* to Luigi@'localhost' identified by 'flectrag' ;

exit

# mysql_secure_installation

回车

y回车

输入新密码两遍

y回车

y回车

y回车

y回车

 

# mysql -u root –p

输入密码flectrag

# use Contacts ;

# show tables ;

# select * from 表名字 ;

# select * from 表名字 where emp_name='jack' ; 列的名子和要查的关键字

# select * from User_Logins where User_Pass='tangerine' ;

PXE+Kickstart

 

posted on 2019-04-20 16:06  三叉戟、  阅读(112)  评论(0编辑  收藏  举报