mysql怎么装 mysql怎么装不上去

如何安装MYSQL

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

创新互联建站主营华龙网站建设的网络公司,主营网站建设方案,app软件开发,华龙h5重庆小程序开发搭建,华龙网站营销推广欢迎华龙等地区企业咨询

注:  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、下载安装文件,安装:双击Setup.exe文件,开始mysql的安装。

2、点击Next开始下一步安装。默认是Typical,选择Custom,因为Typical模式不允许改变安装路径,只能安装在C盘

3、这里需要选择组件和更改文件夹位置,组件可以默认的,位置要选择Change来改变(注意:安装mysql的路径中,不能含有中文)

4、点击Install开始安装

5、安装完成。

如何安装mysql

尊敬的用户您好:

1、 安装:

1先将mysql-noinstall-5.1.66-winx64.zip解压缩到 d:\appspace\mysql

2将其中的data 文件夹移动到d:/appspace/mysqlData 即mysql的 data路径为:d:/appspace/mysqlData/data

3my.ini配置文件有2个可选择的位置:

打开E:\appSpace\mysql \ my-large.ini (如果后面mysql出现1067错误,启动不了的话,可试着用my-huge.ini或其他), 在最后加上如下几行,然后另存为my.ini(C:\Windows).

中国电信提供最优质的网络通讯服务,老友换新机,网龄抵现金,百兆宽带免费体验,超清电视iTV,电信活动可以直接通过营业厅查询。

mysql安装教程

1、首先打开下载的安装文件。

2、mysql安装向导启动,点击“next”继续。

3、选择安装类型,有“Typical(默认)”、“Complete(完全)”、“Custom(用户自定义)”三个选项,我们选择“Custom”,有更多的选项,也方便熟悉安装过程。

4、在“MySQL Server(MySQL服务器)”上左键单击,选择“This feature, and all subfeatures, will be installed on local hard drive.”,即“此部分,及下属子部分内容,全部安装在本地硬盘上”。点选“Change...”,手动指定安装目录。

5、确认一下先前的设置,如果有误,按“Back”返回重做。按“Install”开始安装。

6、正在安装中,请稍候。

7、点击“next”继续。

8、最后软件安装完成了,出现上面的界面,这里有一个很好的功能,mysql 配置向导,不用向以前一样,(自己手动乱七八糟的配置my.ini 了,将“Configure the Mysql Server now”前面的勾打上,点“Finish”结束)。

mysql安装配置教程是什么?

mysql安装配置教程是什么?软件安装包下载  进入官方:滑到页面最低端。然后点击Mysql Community Server,可以进去下载界面。后面如果安装Mysql Workbench也可以跳转到Workbench的下载界面。  这种方法比通过进入Download界面更加直接和快捷。  

Mysql有5打头和8打头的版本,可以通过旁边的Looking for previous GA versions 来进行切换。   选择版本后,点击Download下载。我是下载的.smi文件。一步一步根据向导完成安装。   点击下载后,软件并不会马上下载,还需要点击No thanks, just start my download。

安装完成后 需cmd 以管理员权限打开 然后cd 到mysql.exe的目录:也可以将mysql.exe路径加到path 下就可以不切换到路径下了 。

然后是mysqld –install(注意这种方法会给Mysql的root账号一个随时的密码,这个密码在log文件中,需要自己去找)  初始化后系统默认为root创建了一个临时的密码,可以参考mysql 安装目录下的data文件下,有一个err文件。  

这是log文件中的位置参考  如果不想随时生成密码,可以运行mysqld --initialize-insecure 让root密码为空  这样就可以如下登录:mysql –u root –p。


网站名称:mysql怎么装 mysql怎么装不上去
转载来于:http://myzitong.com/article/hgcddg.html