资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

有mysql包怎么安装 mysql 怎么安装

如何下载并安装MySQL?

下载并安装MySQL就需要先到应用商店下载MySQL压缩包,然后打开压缩包进行运行,最后创建文件夹设置密码即可。具体操作如下:

创新互联主要从事成都做网站、成都网站制作、网页设计、企业做网站、公司建网站等业务。立足成都服务阿鲁科尔沁,十载网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18982081108

工具:电脑一台。

1、下载MySQL压缩包。

2、将下载后的压缩包解压到当前目录。

3、设置环境变量。

4、安装mysql,创建data文件夹。

5、启动MySQL服务,登录MySQL。

注意事项:

在下载MySQL的时候一定要到各个正规平台进行下载,避免自己的电脑被木马等等病毒入侵。

如何安装MYSQL

使用yum安装mysql数据库的软件包 [root@xuegod63 ~]# yum -y install mariadb-server mariadb 。

注:  mariadb-server   #MariaDB数据库 mariadb      # MariaDB服务器Linux下客户端 。

注:从centos7系统开始,系统中自带的mysql数据库变成了mariadb-server,mariadb-server和mysql操作上一样。mariadb-server是mysql的一个分支。

启动数据库服务[root@xuegod63 ~]# systemctl start  mariadb  #启动MariaDB服务。[root@xuegod63 ~]# systemctl enable  mariadb  #设置开启自动启动MariaDB服务。

安装完mariadb-server后,运行mysql_secure_installation去除安全隐患,[root@xuegod63 ~]# mysql_secure_installation #进入安全配置导向。

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQLSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MySQL to secure it, we'll need the current,password for the root user. If you've just installed MySQL, and,you haven't set the root password yet, the password will be blank,,so you should just press enter here.Enter current password for root (enter for none):   #初次运行直接回车,因为root用户没有密码。

OK, successfully used password, moving on,Setting the root password ensures that nobody can log into the MySQL,root user without the proper authorisation.,Set root password? [Y/n] Y #是否设置root用户密码,输入Y。

New password: 123456   #新密码123456,Re-enter new password: 123456,Password updated successfully!Remove anonymous users? [Y/n] Y   #是否删除匿名用户,生产环境建议删除,所以直接回车或Y。

Success!Normally, root should only be allowed to connect from 'localhost'.  Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] Y  #是否禁止root远程登录,根据自己的需求选择Y/n并回车建议禁止。

Success!By default, MariaDB comes with a database named 'test' that anyone canaccess.  This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] Y   #是否删除test数据库,直接回车或Y。

如何下载安装mysql?

1.

下载MySQL压缩包 下载地址:MySQL :: Download MySQL Community Server (Archived Versions) 此处下载的是MySQL的5.7.31版本,windows,64位。 下载得到的zip压缩包:

2.

安装mysql mysql-5.3.71-winx64.zip是免安装的版本。 解压zip文件 将解压后的压缩包文件放入路径(不要有中文路径)(这里我放在了D:Program Files下)

3.

创建配置文件 在mysql安装目录下,创建一个my.ini配置文件,


当前文章:有mysql包怎么安装 mysql 怎么安装
转载来源:http://cdkjz.cn/article/dopdogg.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220