• windows 7 下安装mysql压缩包版


    windows 7 下安装mysql压缩包版

    版本:5.6.17 64bit

    1. 将解压后的文件夹放到某个目录下,比如c:software;

    2. 在环境变量中新建MYSQL_HOME=C:softwaremysql-5.6.17-winx64,然后在系统变量Path下添上 %MYSQL_HOME%in;

    3. 将根目录下my-default.ini拷贝一份,改名为my.ini,并修改以下部分为实际情况:

    # These are commonly set, remove the # and set as required.
    basedir = C:/software/mysql-5.6.17-winx64
    datadir = C:/software/mysql-5.6.17-winx64/data
    port = 3306

    4. 命令行下执行mysqld -install将mysql安装到windows的服务(mysqld -remove将卸载服务);

    如果出现错误:install/remove of the service denied,应该右键选择c:/windows下的cmd.exe,以管理员身份运行。

    5. 执行net start mysql启动服务(net stop mysql将停止服务)。

    Tips:

    刚安装的mysql的root用户是没有密码的,可以连接mysql后用以下语句设置(密码为123):

    mysql> update mysql.user set password=PASSWORD('123') where User='root' ;
    mysql> flush privileges ;

    如果出现错误:UPDATE command denied to user ''@'localhost' for table 'user'错误 ,则进入mysql/bin目录,执行

    mysqladmin -uroot password 密码

    登录时,命令行下:

    mysql -u root -p在提示下输入密码即可。

  • 相关阅读:
    Symmetric Order
    Red and Black
    Sticks(递归经典)
    Pascal Library
    cantor的数表
    OJ 调试技巧:VS2010 中 通过设置编译参数定义宏,无需修改源文件重定向标准输入输出
    strcmp
    最短周期串
    字母重排
    codeblocks 单步调试
  • 原文地址:https://www.cnblogs.com/handsome1013/p/5057233.html
Copyright © 2020-2023  润新知