网站建设资讯

NEWS

网站建设资讯

怎么启动安装mysql 怎么启动安装向导

windows安装成功mysql,怎么启动?

直接在命令行

创新互联专注于企业全网营销推广、网站重做改版、红花岗网站定制设计、自适应品牌网站建设、H5页面制作成都做商城网站、集团公司官网建设、成都外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为红花岗等各大城市提供网站开发制作服务。

mysql-uroot-p(你的密码)

如果不行

在安装目录下

mysql-uroot-p

然后根据提示输入密码

要是还不行不是有一个mysqlcommandline在的你开始菜单里面吗,点进去就可以了

判断mysql有没有运行

只要进程里面有mysqld就可以了

祝好运

怎么启动mysql数据库服务器

1、在MySQL数据库安装时选择过MySQL服务器随系统启动,但如果没有选择,也没关系,可以在可以在Windows服务管理器启动,具体在开始菜单搜索services.msc,

2、单击出现如下图窗口,下滑鼠标找到MySQL57:

3、右击后点击启动,MySQL57旁边状态列显示“已启动”字样,说明启动成功。如下图:

二、登录MySQL数据库

4、用系统命令行工具登录,点击开始菜单,找到附件,点击命令提示符。

5、在命令行中输入cd加空格然后粘贴bin路径:cdc:\ProgramFiles(x86)\MySQL\MySQLServer5.7\bin回车命令行定位到c:\ProgramFiles(x86)\MySQL\MySQLServer5.7\bin,在后面输入mysql_hlocalhost_uroot_p(这些都是安装时设置好的)敲回车,

6、出现Enterpassword:在后面输入安装时设置的登录密码,按回车后出现WelcometotheMySQLmonitor.说明登陆成功。如下图:

7、用安装时配置好的命令行工具登录,在开始菜单,点击MySQL5.7CommandLineClient或下面搜索程序框中输入comm选择MySQL5.7CommandLineClient启动DOS命令窗口。如下图:

8、在窗口Enterpassword:处输入安装时设置的MySQL数据库客户端登陆密码,回车,如果出现WelcomtotheMySQLmonitor.等字眼表示登陆服务器成功,可以在闪烁光标处输入SQL可执行语言:如下图:

如何安装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

mysql安装启动两种方法如下所示:

方法一(简单版):

1.cmd进入mysql安装的bin目录:mysqld.exe –install

2.net start mysql 服务启动(或者选择计算机-(右键)管理-服务和应用程序-服务-mysql右键启动服务)

3.mysql –uroot –p 回车

4.password留空 回车

方法二:

1.cmd进入到mysql安装目录bin,如:D:\MySQL Server 5.6\bin

2.mysqld --console开启mysql服务

3.另起一个cmd:进入到mysql安装目录bin,如:D:\MySQL Server 5.6\bin

4.mysql -u root –p 回车

5.输入密码:(留空)回车

6.进入mysql命令行环境

以上所述是 给大家介绍的MySql安装启动两种方法教程详解,希望对大家有所帮助


网站题目:怎么启动安装mysql 怎么启动安装向导
文章起源:http://cdweb.net/article/dodedso.html