zoukankan      html  css  js  c++  java
  • 开启mysql sql追踪

    my.ini

    [mysqld]
    
    # The next three options are mutually exclusive to SERVER_PORT below.
    # skip-networking
    # enable-named-pipe
    # The Pipe the MySQL Server will use
    # socket=mysql
    
    # The TCP/IP Port the MySQL Server will listen on
    port=3306
    
    # Path to installation directory. All paths are usually resolved relative to this.
    # basedir="C:/Program Files/MySQL/MySQL Server 5.6/"
    
    # Path to the database root
    datadir="C:/ProgramData/MySQL/MySQL Server 5.6/data"
    
    # The default character set that will be used when a new schema or table is
    # created and no character set is defined
    character-set-server=utf8
    
    # The default storage engine that will be used when create new tables when
    default-storage-engine=INNODB
    
    # Set the SQL mode to strict
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    
    # Enable Windows Authentication
    # plugin-load=authentication_windows.dll
    
    # General and Slow logging.
    log-output=FILE
    general-log=1
    general_log_file="iZ25wc538etZ.log"
    slow-query-log=0
    slow_query_log_file="iZ25wc538etZ-slow.log"
    long_query_time=10
    
    # Binary Logging.
    # log-bin
    
    # Error Logging.
    log-error="iZ25wc538etZ.err"

    重启mysql

    查看日志

  • 相关阅读:
    chrome浏览器实现上传下载功能
    Python安装第三方库时报错的解决办法
    python文本编辑器Visual Studio Code
    python下载安装
    selenium环境配置
    linux_安装浏览器
    在linux中安装selenium+chrome
    armbian_配置selenium
    armbian_运行puppeteer
    java环境配置
  • 原文地址:https://www.cnblogs.com/hellowzd/p/5495738.html
Copyright © 2011-2022 走看看