mysql 5.7.18 winx64 免安装 配置方法
作者:mrr 时间:2024-01-27 14:00:08
1. 下载
2. 解压缩
3. 添加path环境变量,路径指向mysql所在bin目录下
4. 在主目录下创建data文件夹
5. 注册windows系统服务
新建一个my.ini文件,拷贝到c:\windows目录下,内容如下:
[client]
port=3306
default-character-set=utf8
[mysqld]
# 设置为MYSQL的安装目录
basedir=C:\_04Tools\mysql-5.7.18-winx64
# 设置为MYSQL的数据目录
datadir=C:\_04Tools\mysql-5.7.18-winx64\data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
#开启查询缓存
explicit_defaults_for_timestamp=true
打开cm的,进入mysql bin目录下,输入服务安装命令:
mysqld -install
如果出现Install/Remove of the Service Denied!,进入 C:\Window\System32 找到CMD.EXE 右键选择 以管理员身份 进行,再进入相应目录执行命令,一切就OK了。
6. 启动MySQL服务
命令:
net start mysql
若报错,在data目录下找.rr文件查看具体错误信息。修复错误后记得将data目录下内容清空。
若上述命令依然不成功可尝试 mysqld --initilize --user=mysql --datadir=data
或通过Control Panel --> Administrative Tools --> Services 开启服务。
7. 修改root密码
set password for root@localhost = password('123');
修改密码成功后登录:mysql -u root -p, 输入password
若出现错误:mysql access denied for user 'root'@'localhost' (using password: YES),则在my.ini文件最后一行加入
skip-grant-tables
重启服务后再次登录,成功
以上所述是小编给大家介绍的mysql 5.7.18 winx64 免安装配置方法网站的支持!
标签:mysql,5.7.18,winx64
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python迭代dict的key和value的方法
2021-11-03 16:04:17
Python集合之set和frozenset的使用详解
2021-06-26 22:41:20
![](https://img.aspxhome.com/file/2023/4/68484_0s.png)
Numpy数组array和矩阵matrix转换方法
2021-06-25 06:17:26
HTTP状态码
2009-09-21 12:46:00
MySQL用truncate命令快速清空一个数据库中的所有表
2024-01-18 16:05:29
![](https://img.aspxhome.com/file/2023/2/100322_0s.png)
用javascript判断浏览器版本
2008-04-21 13:50:00
Python 去除字符串中指定字符串
2023-04-20 23:44:53
![](https://img.aspxhome.com/file/2023/2/70742_0s.png)
python 爬取影视网站下载链接
2022-07-30 00:59:42
![](https://img.aspxhome.com/file/2023/1/102771_0s.png)
一文让你秒懂精通pip并快速体验深度学习应用【建议收藏】
2022-07-08 22:27:56
![](https://img.aspxhome.com/file/2023/7/72927_0s.png)
css实现图片倒影效果
2007-11-05 18:29:00
![](https://img.aspxhome.com/file/UploadPic/200711/5/2007115184648157s.jpg)
golang 自旋锁的实现
2024-05-02 16:24:03
使用PyInstaller将Python程序文件转换为可执行程序文件
2023-03-28 11:35:34
python爬虫lxml库解析xpath网页过程示例
2021-10-06 20:01:54
![](https://img.aspxhome.com/file/2023/4/134534_0s.png)
基于Python中的turtle绘画星星和星空
2022-10-31 08:57:41
![](https://img.aspxhome.com/file/2023/8/86368_0s.png)
mysql主键id的生成方式(自增、唯一不规则)
2024-01-14 20:20:27
![](https://img.aspxhome.com/file/2023/7/119217_0s.png)
两行Python代码实现pdf转word功能
2023-06-11 08:55:23
![](https://img.aspxhome.com/file/2023/9/117379_0s.png)
asp如何调用DLL来加快服务器的执行速度?
2009-11-15 20:07:00
Django中更新多个对象数据与删除对象的方法
2021-08-13 13:31:46
sql format()函数的用法及简单实例
2024-01-16 04:58:42
Python描述符descriptor使用原理解析
2022-03-24 20:12:48