zoukankan      html  css  js  c++  java
  • 压缩包安装MySQL服务

    安装方式:命令行输入

    mysqld --install

    mysqld --intialize 

    net start mysql

    mysql -uroot -p 生成的随机密码

    mysq修改root密码:mysqladmin -uroot -p password newpassword

    Enter password:

    Installing MySQL on Microsoft Windows Using a noinstall Zip Archive

    https://dev.mysql.com/doc/refman/5.7/en/windows-install-archive.html

    在windows上安装MySQL有两种方式,使用MySQLInstaller,使用压缩文件需要注意的几点:

    1,解压目录就是安装目录。
    2,建配置文件(Option File),解压后根目录里有my-default.ini。官网描述MySQL Server在Windows
    上启动时会在C:、安装目录等处寻找配置文件,配置文件可以命名为my.ini(优先选择)、my.conf(
    如果c盘不是启动盘,不能使用my.conf)。直接使用my-default.ini就可以,配置一下

    basedir =E:\...\mysql-5.7.17-winx64
    datadir =E:\...\mysql-5.7.17-winx64\data


    3,MySQL 5.7.6之后压缩包不再包含data目录,可以在bin目录下执行mysqld --initialize 或mysqld --initialize-insecure进行
    初始化。--initialize生成的随机密码保存在data[computer name].err文件中, --initialize-
    insecure生成的密码为空。修改密码的语句set password for 'root'@'localhost' =password('newpassword');

    4,可以吧bin目录写进path路径,用起来会方便

    5,到现在还不能使用net start|stop mysql 来开启和关闭mysql服务,安装mysql服务的方法:在bin目录下(即便配了环境变量也要在bin目录下执行)执行mysqld --install来安装服务。相关命令:mysqld --remove卸载mysql服务;

  • 相关阅读:
    uploadify
    mark down pad2
    yii1.1.3主从(多从)、读写分离配置
    yii多数据库
    Uploadify上传问题
    出现upstream sent too big header while reading response header from upstream错误
    Nginx 启动脚本/重启脚本
    VB6_小林的气象类模块
    进程与线程
    JDK动态代理与CGLib
  • 原文地址:https://www.cnblogs.com/afraidToForget/p/6518674.html
Copyright © 2011-2022 走看看