zoukankan      html  css  js  c++  java
  • MySql8最新配置方式(完美)

    下载MYSQL8

    地址:https://www.mysql.com/downloads/

    1.滑动网页到最下面,选择Community (GPL) Downloads »

    2.选择MySQL Community Server 

    3. 这里依然选择绿色手动的安装方式:需要安装包的选择MSI安装方式

    正式安装:

    1. 选择你的一个没有中文的目录解压安装:解压后目录如图我所示:

    2.重要配置文件保存为mysql.ini 放到mysql根目录下面

    [mysqld]
    
    # Remove leading # and set to the amount of RAM for the most important data
    # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
    # innodb_buffer_pool_size = 128M
    
    # Remove leading # to turn on a very important data integrity option: logging
    # changes to the binary log between backups.
    # log_bin
    
    # These are commonly set, remove the # and set as required.
    # basedir = .....
    # datadir = .....
    # port = .....
    # server_id = .....
    basedir = "D:DevToolsmysql-8.0.13-winx64"
    datadir = "D:DevToolsmysql-8.0.13-winx64data"
    port = 3306
    max_connections=1000
    max_user_connections=500
    wait_timeout=200
    character-set-server=utf8
    # Remove leading # to set options mainly useful for reporting servers.
    # The server defaults are faster for transactions and fast SELECTs.
    # Adjust sizes as needed, experiment to find the optimal values.
    # join_buffer_size = 128M
    # sort_buffer_size = 2M
    # read_rnd_buffer_size = 2M 
    #character-set-server=UTF-8
    default-storage-engine=INNODB
    sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
    #忘记密码时使用
    #skip-grant-tables
    #设置协议认证方式(重点啊)
    default_authentication_plugin=mysql_native_password
    [mysql]
    default-character-set=utf8

    3.添加环境变量

    实际上不添加环境变量也是可以的,这里只是为了方便:我这里的是安装在这个目录,只需要将他添加到你的path目录即可

    4.安装服务 mysqld --install 服务名(可以不写,默认是MySql,如果你的电脑上要安装付哦个mysql,这里的服务名写一下做区分),安装成功后控制它会提示:successful 

    mysqld --install [服务名]

     5.执行安装

     mysqld --initialize-insecure //这里会等待一段时间,

     6.启动服务(这时候不要去登录mysql,登录不进去的,必须要先启动)

    7.登录mysql

    mysql -u root -p //初始化密码为nULL

     8.如果你的连接客户端出现2056错误那么是不支持mysql8的通讯协议

    # 执行下面的代码 
    use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
    # 如果你的客户端支持 下面的也可以mysql7也是可以的

       SET PASSWORD = PASSWORD('123456'); 

     

    好了!安装完成!

  • 相关阅读:
    Unable To Open Database After ASM Upgrade From Release 11.1 To Release 11.2
    11g Understanding Automatic Diagnostic Repository.
    How to perform Rolling UpgradeDowngrade in 11g ASM
    Oracle 11.2.0.2 Patch 说明
    Pattern Matching Metacharacters For asm_diskstring
    Steps To MigrateMove a Database From NonASM to ASM And ViceVersa
    Upgrading ASM instance from Oracle 10.1 to Oracle 10.2. (Single Instance)
    OCSSD.BIN Process is Running in a NonRAC Environment
    Steps To MigrateMove a Database From NonASM to ASM And ViceVersa
    On RAC, expdp Removes the Service Name [ID 1269319.1]
  • 原文地址:https://www.cnblogs.com/dgwblog/p/10079338.html
Copyright © 2011-2022 走看看