首页 > 数据库技术 > 详细

mysql数据库部署与连接

时间:2020-09-23 09:12:08      阅读:55      评论:0      收藏:0      [点我收藏+]

第一章 数据库部署与连接

1. Windows系统环境下操作:

1.1. 安装部署

方式一: https://dev.mysql.com/downloads/installer/

 技术分享图片

 

 

方式二:下载安装PHPstudy程序,然后打开其MySQL服务。注意:phpstudy程序存储目录必须全英文!

1.2. 连接

备注:mysql服务端口为——3306

方式一:命令行操作

win+r——>cmd——>进入phpstudy数据程序的MySQL\bin目录下——>mysql.exe -uroot -proot(mysql .exe用户名 密码(默认为root))

 技术分享图片

 

 

方式二:图形界面操作

安装程序Navicat

链接本地数据库,密码默认root

 技术分享图片

打开数据库

 技术分享图片

 

 

2. Linux系统环境下:

2.1. 安装,启动

[root@test-201 ~]# yum -y install mariadb mariadb-server

[root@test-201 ~]# systemctl start mariadb      systemctl enable mariadb

2.2. 连接

方式一:

[root@test-201 ~]# mysql -uroot

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 3

Server version: 5.5.65-MariaDB MariaDB Server

 

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

 

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

 

MariaDB [(none)]>

方式二:

 技术分享图片

 

 

 

 

mysql数据库部署与连接

原文:https://www.cnblogs.com/dazhu-secure/p/13716076.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!