MySQL免安装的安装方法以及配置
发布日期:2021-09-14 23:17:59
浏览次数:10
分类:技术文章
本文共 1809 字,大约阅读时间需要 6 分钟。
首先进入MySQL官网:
下载安装包: 下载社区版的这个: 解压(路径最好不要有中文)管理员身份打开cmd命令行
cd到mysql目录下的bin目录 执行mysqld --install
安装mysql的服务 D:\Users\mysql-8.0.22-winx64\bin>mysqld --installService successfully installed.
执行mysqld --initialize --console
初始化mysql
D:\Users\mysql-8.0.22-winx64\bin>mysqld --initialize --console2020-12-15T03:08:37.293189Z 0 [System] [MY-013169] [Server] D:\Users\mysql-8.0.22-winx64\bin\mysqld.exe (mysqld 8.0.22) initializing of server in progress as process 123082020-12-15T03:08:37.306291Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.2020-12-15T03:08:37.929297Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.2020-12-15T03:08:39.188232Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: ThNNga4rIf_&
执行net start mysql
开启mysql的服务
D:\Users\mysql-8.0.22-winx64\bin>net start mysqlMySQL 服务正在启动 .MySQL 服务已经启动成功。
执行mysql -u root -p
登录验证,mysql是否安装成功
D:\Users\mysql-8.0.22-winx64\bin>mysql -u root -pEnter password: ************Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 8Server version: 8.0.22Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
改密码alter user 'root'@'localhost' identified by '0000';
mysql> alter user 'root'@'localhost' identified by '0000';Query OK, 0 rows affected (0.02 sec)
加入环境变量:
这边只是自己做个记录,记的比较简单,
详细移步:
以下是centos7下安装mysql方法
wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpmyum -y localinstall mysql80-community-release-el7-3.noarch.rpmsystemctl start mysqld// 查看初始默认密码:cat /var/log/mysqld.lomysql -u root -p
转载地址:https://blog.csdn.net/weixin_43451928/article/details/111194874 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过,博主的博客真漂亮。。
[***.116.15.85]2024年03月13日 09时23分57秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
安卓是用java语言写的吗_android开发是用java语言吗?
2019-04-21
java 符号 t_java – 运算符”不能应用于’T’,’T’表示有界泛型类型
2019-04-21
用matlab写出信源熵,计算离散信源的熵matlab实现
2019-04-21
php表单yii2,Yii2创建表单(ActiveForm)方法详解
2019-04-21
php 程序授权机制,授权认证详细说明
2019-04-21
java 命令提示符,如何使用Java打开命令提示符并插入命令?
2019-04-21
linux移动文件的脚本,使用Linux脚本移动文件
2019-04-21
linux查看系统所有变量,Linux系统各指标命令
2019-04-21
linux打印机守护程序,linux下怎么编写守护程序呢?
2019-04-21
嵌入式linux 设置时间,time_clock控件应用,使用命令date -s 12:00:00手动设置时间后,时间就停住不走了,我在Ubuntu和嵌入式Linux平台都测试到了...
2019-04-21
linux监控windows,zabbix监控之linux及windows客户端安装配置
2019-04-21
linux中怎么卸载tree,Liunx系统命令中tree命令详解
2019-04-21
linux 网络音箱 混音6,Linux音频编程(三)混音器介绍
2019-04-21
node与mysql开源_node与mysql的相互使用————node+mysql
2019-04-21
mysql连接nginx_nginx四层负载均衡连接mysql
2019-04-21
mysql截取栏目字符_substring从指定字符串开始截取(图)
2019-04-21