zoukankan      html  css  js  c++  java
  • (2.4)Mysql之SQL基础——下载与使用测试库

    (2.4)SQL基础——下载与使用测试库

    1、查看与下载测试数据库

      https://github.com/datacharmer/test_db

    2、查看安装向导视图

    3、安装

      【1】安装:解压后用 mysql 命令安装(记得加上set autocommit=1)

      【2】核验:查看库与表

      【3】核验:test_employees_sha.sql  文件,验证数据行

      【4】核验:MD5加密核验:test_employees_md5.sql

       

    1、查看与下载测试数据库

      直接去github地址下载:https://github.com/datacharmer/test_db

        

      点击后,进入下载界面,下载即可

        

    2、查看安装向导视图

        

      点击后结果如下

        

     3、安装

      也可以点击图中那里去下载

        

      跟着步骤操作,安装即可

        【1】安装:解压后用 mysql 命令安装(记得修改文件内容,在文件中的SQL语句操作前,加上set autocommit=1)

          mysql -t < employees.sql -uroot -p

          

      【2】核验:查看库与表

          

      【3】核验:test_employees_sha.sql  文件,验证数据行

         time mysql -t < test_employees_sha.sql  -uroot -p

        

       很明显我这个失败了,修改文件(employees.sql),加上

        set autocommit = 1; 

      开启自动提交,放在文件中SQL运行语句之前哦。

      再运行一次:

        mysql -t < employees.sql -uroot -p

        time mysql -t < test_employees_sha.sql  -uroot -p

        

      

       【4】核验:MD5加密核验

          time mysql -t < test_employees_md5.sql  -uroot -p

         全都是OK才行

  • 相关阅读:
    concate string when group by
    Regular Expression
    Login failed for user
    SQL Performance Tools
    Web References
    ARTetris-AR版俄罗斯方块的源码解析
    ARKit_1
    链表
    线性表
    ORB-SLAM2的特征提取算法
  • 原文地址:https://www.cnblogs.com/gered/p/10360034.html
Copyright © 2011-2022 走看看