17Linux_mariadb_PXE+Kickstart

原文链接: http://www.cnblogs.com/biglu/p/10741310.html

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

17Linux_mariadb_PXE+Kickstart_第1张图片

 

转载于:https://www.cnblogs.com/biglu/p/10741310.html

你可能感兴趣的:(17Linux_mariadb_PXE+Kickstart)