首先要安装MySQL 数据库才可以继续安装图形工具SQLyog

第一步:下载解压包》》

MYSQL官网地址:https://dev.mysql.com/downloads/file/?id=479669

绿色安装 直接解压即可。

第二步》》环境变量配置

解压之后放入E盘,需在系统进行环境变量配置

==============================================================================

第三步》》mysql初始化配置

接下来连接和启动数据库操作:

3.1  创建初始化配置my.ini配置文件 存放根目录下面  复制下面文档(需修改路径)

[mysqld]
# 设置3306端口
port=
# 设置mysql的安装目录
basedir=E:\\mysql\\mysql-8.0.-winx64 # 切记此处一定要用双斜杠\\,单斜杠我这里会出错。
# 设置mysql数据库的数据的存放目录
datadir=E:\\mysql\\mysql-8.0.-winx64\\Data # 此处同上
# 允许最大连接数
max_connections=
# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统
max_connect_errors=
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=
default-character-set=utf8

3.2 在c:\Windows\system32 找到cmd.exe 右键以系统管理员身份启动该程序

指令路径切换到bin目录下输入指令:

//生成临时密码

mysqld --initialize --console       

示例:

E:\mysql\mysql-8.0.-winx64\bin>mysqld --initialize --console
--03T03::.275614Z [System] [MY-] [Server] E:\mysql\mysql-8.0.-winx64\bin\mysqld.exe (mysqld 8.0.) initializing of server in progress as process
--03T03::.017614Z [Note] [MY-] [Server] A temporary password is generated for root@localhost: oZig3fdGSh<E
--03T03::.090414Z [System] [MY-] [Server] E:\mysql\mysql-8.0.-winx64\bin\mysqld.exe (mysqld 8.0.) initializing of server has completed
oZig3fdGSh<E  为系统随机生成的临时密码 

3.3 安装mysql 服务

mysqld --install

示例:

E:\mysql\mysql-8.0.-winx64\bin>mysqld --install
Service successfully installed.

3.4 启动mysql服务

net start mysql

示例:

E:\mysql\mysql-8.0.-winx64\bin>net start mysql
MySQL 服务正在启动 ..
MySQL 服务已经启动成功。

3.5 进入mysql  输入以下指令之后 需要输入临时密码

mysql -u root -p

示例:

E:\mysql\mysql-8.0.-winx64\bin>mysql -u root -p
Enter password: ************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 8.0. Copyright (c) , , Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>

3.6 修改临时密码

修改密码为root

alter user user() identified by "root";

示例:

mysql> alter user user() identified by "root";
Query OK, rows affected (0.25 sec)

修改完密码 退出数据库操作

mysql> exit
Bye

3.7 验证密码

E:\mysql\mysql-8.0.-winx64\bin>mysql -u root -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 8.0. MySQL Community Server - GPL Copyright (c) , , Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>

ok mysql安装完成了密码也修改成功了      命令行操作麻烦,推荐使用图形化工具SQLyog。

Python3.7和数据库MySQL 8.0.12 绿色解压 安装教程(一)的更多相关文章

  1. Python3.7和数据库MySQL 8.0.12 数据库数据驱动mysql-connector安装(四)

    安装mysql-connector驱动 在系统CMD输入命令: pip install mysql-connector 示例: 创建数据库 # 导入驱动 import mysql.connector ...

  2. Python3.7和数据库MySQL 8.0.12 数据库SQLite3连接(三)

    SQLite3 # SQLite3 嵌入式 数据库 python内置SQLite3 # 导入驱动 import sqlite3 # 创建自增主键的表 msql = "create table ...

  3. MySQL 8.0.12 基于Windows 安装教程(超级详细)

    MySQL 8.0.12 基于Windows 安装教程(超级详细) (一步一步来,装不了你找我!) 本教程仅适用Windows系统,如果你原本装了没装上,一定要先删除原本的数据库,执行:mysqld ...

  4. SQLyog 报错2058 :连接 mysql 8.0.12 解决方法

    今天闲来无事,下载新版的 mysql 8.0.12 安装. 为了方便安装查看,我下载了sqlyog 工具 连接 mysql 配置新连接报错:错误号码 2058,分析是 mysql 密码加密方法变了. ...

  5. windows下mysql 8.0.12安装步骤及基本使用教程

    本文实例为大家分享了windows下mysql 8.0.12安装步骤及使用教程,供大家参考,具体内容如下 补充:mysql 已经更新到了 8.0.19,大致步骤和这个差不多,照着来就完事了. 我下载的 ...

  6. Linux安装mysql.8.0.12

    1. linux安装mysql8.0.12,亲测可用. 以下是安装过程中出现的问题: 1 [root@localtest1 file]# systemctl start mysqld 2 Job fo ...

  7. 云数据库 MySQL 8.0 重磅发布,更适合企业使用场景的RDS数据库

    点击订阅新品发布会! 新产品.新版本.新技术.新功能.价格调整,评论在下方,下期更新!关注更多内容,了解更多 最新发布 云数据库MySQL 8.0 升级发布会 2019年5月29日15时,阿里云云数据 ...

  8. MySQL v5.7.18 版本解压安装

    下载MySQL https://dev.mysql.com/downloads/mysql/5.1.html#downloads 个人机子是64位的,所以选择下载:Windows (x86, 64-b ...

  9. MySQL Community Server 5.5.56 ZIP Archive 绿色解压版 window安装步骤

    MySQL Community Server 5.5.56  ZIP Archive  绿色解压版 window安装步骤 首先 准备好启动配置文件my.ini [mysqld] #设置字符集为utf8 ...

随机推荐

  1. linux php5.6 安装Redis扩展

    wget http://pecl.php.net/get/redis-4.2.0.tgz tar -zxvf redis-.tgz cd redis- /usr/local/php5./bin/php ...

  2. flask基础--第二篇

    1.Flask中的HTTPResponse,Redirect, render #导入render_template和redirect from flask import Flask,render_te ...

  3. 网络编程-day2

    1 网络通信协议 Tcp udp的区别 重点(*****) TCP(Transmission Control Protocol)可靠的.面向连接的协议(eg:打电话).传输效率低全双工通信(发送缓存& ...

  4. 洛谷P2886 [USACO07NOV]牛继电器Cow Relays

    题意很简单,给一张图,把基本的求起点到终点最短路改成求经过k条边的最短路. 求最短路常用的算法是dijkstra,SPFA,还有floyd. 考虑floyd的过程: c[i][j]=min(c[i][ ...

  5. 显式拥塞通告(ECN)及其在Linux上的实现

    1 ECN简介 首先看看ECN握手报文的特点,根据RFC3168,ECN握手报文IP头部不能够设置ECT和CE位的 SYN报文TCP标志字段的CWR和ECE位被置1 SYN-ACK报文的CWR位被置0 ...

  6. npm由来和作用

    npm由来 本文转载自: https://blog.csdn.net/qq_37696120/article/details/80507178 npm作用 本文转载自: https://www.cnb ...

  7. grep用法

    正则表达式只是一种表示法,只要工具支持这种表示法, 那么该工具就可以处理正则表达式的字符串.vim.grep.awk .sed 都支持正则表达式,也正是因为由于它们支持正则,才显得它们强大:在以前上班 ...

  8. mybatis 报The content of elements must consist of well-formed character data or markup. 语法格式错误

    最近在写sql的时候 同时使用到了 >= 和 <= 之前只使用一个的时候 没有什么问题,今天同时使用到了两个,结果xml出现了The content of elements must co ...

  9. jQuery 的自定义事件

    jQuery  中,想要自动触发自定义事件,必须满足2个条件: 1.事件必须是通过on 来绑定的. 2.事件必须是通过trigger / triggerHandler 来触发. 格式如下: $(fun ...

  10. document.onkeydown

    document.onkeydown=function(e) { if(e.keyCode==13) { //当按下回车键,执行我们的代码 } }