当前位置:网站首页>MySQL的登陆【数据库系统】
MySQL的登陆【数据库系统】
2022-07-25 14:38:00 【华为云】
1.服务的停止与启动
MySQL安装完毕之后,需要启动服务器进程,不然客户端无法连接数据库。
---以管理员身份运行windows命令提示符,否则会出现拒绝访问:
1.MySQL服务处于已停止状态:
2.启动MySQL服务:
3.MySQL服务处于已启动状态:
start和stop后面的服务名应与之前配置环境变量时指定的服务名一致。
2.登陆与退出
格式:
举例:
登陆成功:
这里出现了警告,只需要改变密码输入的方法:
退出指令:
注意:
(1)-p与密码之间不能有空格,其他参数名与参数值之间可以有空格也可以没有空格。如:
(2)密码建议在下一行输入,保证安全。
(3)客户端和服务器在同一台机器上,所以输入localhost或者IP地址127.0.0.1。同时,因为是连接本机: -hlocalhost就可以省略,如果端口号没有修改:-P3306也可以省略。
登陆之前可以通过:
或者
的方式获取MySQL Server服务版本的信息。
登陆之后通过
查看当前版本信息。
边栏推荐
- idea正则表达式替换(idea正则搜索)
- SSM framework integration, simple case
- 安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径
- jqgrid全选取消单行点击取消事件
- Reverse Integer
- Numpy basic package for data analysis
- sqli-labs Basic Challenges Less11-22
- PS making and loading GIF pictures tutorial
- 云安全技术发展综述
- QObject source code analysis -d pointer and Q pointer
猜你喜欢

GameFramework制作游戏(一)

基于浏览器的分屏阅读

The concept and operation rules of calculus of variations

Typora cannot open the prompt to install a new version solution

安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径

IP地址分类,判断一个网段是子网超网

Realize a family security and environmental monitoring system (II)

VS2017大型工厂ERP管理系统源码 工厂通用ERP源码
![优质数对的数目[位运算特点+抽象能力考察+分组快速统计]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]

基于AMD EPYC服务器的EDA芯片设计解决方案
随机推荐
Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
Pytorch training code writing skills, dataloader, Einstein logo
【MySQL系列】-索引知多少
Examples of bio, NiO, AIO
(原创)自定义一个滚屏的RecyclerView
Matplotlib data visualization three minutes entry, half an hour enchanted?
Development of uni app offline ID card identification plug-in based on paddleocr
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part 2)
Wechat official account official environment online deployment, third-party public platform access
Filters get the data in data; Filters use data in data
English语法_不定代词 - other / another
关于ROS2安装connext RMW的进度条卡在13%问题的解决办法
Keys and scan based on redis delete keys with TTL -1
IDEA报错 Failed to determine a suitable driver class
Doris学习笔记之与其他系统集成
Summary of some problems about left value and right value [easy to understand]
Thymeleaf controls whether display is displayed through style
软件测试 -- 1 软件测试知识大纲梳理
CTS test introduction (how to introduce interface test in interview)
元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展








