欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

MySQL的安装与卸载方法

程序员文章站 2022-03-16 16:05:04
...

1.什么是数据库?

  俗称数据的仓库,方便管理数据的软件(或程序)

2.MySQL入门

  1.官网下载

  2.安装MySql

  直接双击安装即可,但注意安装的目录不可出现中文。

  2.1验证安装是否成功

  打开命令行-->输入 "mysql -u root -p" 回车,输入密码-->回车

  出现以下内容,即为成功。

  C:\Users\Administrator>mysql -u root -p
  Enter password: ******
  Welcome to the MySQL monitor. Commands end with ; or \g.
  Your MySQL connection id is 2
  Server version: 5.5.30 MySQL Community Server (GPL)

  Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

  Oracle is a registered trademark of Oracle Corporation and/or its
  affiliates. Other names may be trademarks of their respective
  owners.

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

  mysql>

  3.卸载MySQL(以Win7系统为例)

    a.停止window的MySQL服务

    找到“控制面板”-->"管理工具“-->"服务",停止MySQL后台服务

    b.卸载MySQL安装程序

    ”控制面板“-->"程序和功能",卸载MySQL程序

    c.删除MySQL安装目录下的所有文件

    d.删除C盘ProgramData隐藏目录中关于MySQL的目录

      ProgramData这是C盘下的一个隐藏目录,打开”显示隐藏文件“功能,即可查到

      删除即可。

    

以上就是MySQL的安装与卸载方法的详细内容,更多请关注其它相关文章!