• 17Linux_mariadb_PXE+Kickstart


    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

  • 相关阅读:
    spring cloud教程
    ideaaaaaaaaa
    Django
    Django 基础介绍
    Pychram
    python
    python
    python
    Python
    Python -- Scrapy 命令行工具(command line tools)
  • 原文地址:https://www.cnblogs.com/biglu/p/10741310.html
Copyright © 2020-2023  润新知