ubuntu安装/卸载mysql
1.安装mysql
root@openstack001:/tmp# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libaio1 mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
libaio1 mysql-server mysql-server-5.5 mysql-server-core-5.5
upgraded, newly installed, to remove and not upgraded.
Need to get B/, kB of archives.
After this operation, 53.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libaio1:amd64.
(Reading database ... files and directories currently installed.)
Preparing to unpack .../libaio1_0.3.109-4_amd64.deb ...
Unpacking libaio1:amd64 (0.3.-) ...
Selecting previously unselected package mysql-server-core-5.5.
Preparing to unpack .../mysql-server-core-.5_5.5.53-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-core-5.5 (5.5.-0ubuntu0.14.04.) ...
Selecting previously unselected package mysql-server-5.5.
Preparing to unpack .../mysql-server-.5_5.5.53-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.5 (5.5.-0ubuntu0.14.04.) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.53-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-server (5.5.-0ubuntu0.14.04.) ...
Processing triggers for man-db (2.6.7.1-) ...
Processing triggers for ureadahead (0.100.-) ...
Setting up libaio1:amd64 (0.3.-) ...
Setting up mysql-server-core-5.5 (5.5.-0ubuntu0.14.04.) ...
Setting up mysql-server-5.5 (5.5.-0ubuntu0.14.04.) ...
:: [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
:: [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
:: [Note] /usr/sbin/mysqld (mysqld 5.5.-0ubuntu0.14.04.) starting as process ...
mysql start/running, process
Processing triggers for ureadahead (0.100.-) ...
Setting up mysql-server (5.5.-0ubuntu0.14.04.) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
root@openstack001:/tmp#
2.查看mysql信息
root@openstack001:/tmp# dpkg -l | grep mysql
ii libdbd-mysql-perl 4.025-1ubuntu0. amd64 Perl5 database interface to the MySQL database
ii libmysqlclient18:amd64 5.5.-0ubuntu0.14.04. amd64 MySQL database client library
ii mysql-client 5.5.-0ubuntu0.14.04. all MySQL database client (metapackage depending on the latest version)
ii mysql-client-5.5 5.5.-0ubuntu0.14.04. amd64 MySQL database client binaries
ii mysql-client-core-5.5 5.5.-0ubuntu0.14.04. amd64 MySQL database core client binaries
ii mysql-common 5.5.-0ubuntu0.14.04. all MySQL database common files, e.g. /etc/mysql/my.cnf
ii mysql-server 5.5.-0ubuntu0.14.04. all MySQL database server (metapackage depending on the latest version)
ii mysql-server-5.5 5.5.-0ubuntu0.14.04. amd64 MySQL database server binaries and system database setup
ii mysql-server-core-5.5 5.5.-0ubuntu0.14.04. amd64 MySQL database server binaries
root@openstack001:/tmp#
3.卸载mysql
root@openstack001:/tmp# apt-get autoremove --purge mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
yThe following packages will be REMOVED:
libaio1* mysql-server* mysql-server-5.5* mysql-server-core-5.5*
upgraded, newly installed, to remove and not upgraded.
After this operation, 53.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... files and directories currently installed.)
Removing mysql-server (5.5.-0ubuntu0.14.04.) ...
Removing mysql-server-5.5 (5.5.-0ubuntu0.14.04.) ...
mysql stop/waiting
Purging configuration files for mysql-server-5.5 (5.5.-0ubuntu0.14.04.) ...
Removing mysql-server-core-5.5 (5.5.-0ubuntu0.14.04.) ...
Removing libaio1:amd64 (0.3.-) ...
Purging configuration files for libaio1:amd64 (0.3.-) ...
Processing triggers for man-db (2.6.7.1-) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
ubuntu安装/卸载mysql的更多相关文章
- ubuntu彻底卸载mysql并且重新安装
环境: root@ubuntu:/usr/local/mysql/data# uname -a Linux ubuntu 4.4.0-87-generic #110-Ubuntu SMP Tue Ju ...
- Ubuntu 彻底卸载 MySQL 数据库
Ubuntu 18.04 彻底卸载MySQL 5.7.31 1. 查看MySQL的依赖项 dpkg --list|grep mysql 2. 卸载 mysql-common sudo apt remo ...
- Ubuntu安装卸载anaconda
安装要点: 1.在Anaconda官网https://www.continuum.io/downloads内下载需要的版本: 2.打开终端--进入下载安装包所在的文件夹(cd 文件名)--输入命令:b ...
- ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
在Ubuntu体系中,已经安装了mysql,即应用sudo apt-get install mysql-server mysql-client 但是用C编译mysql数据库时,报错fatal erro ...
- linux安装卸载MySQL以及密码设置+Hive测试
linux系统卸载MYSQL 1,先通过yum方式卸载mysql及相关组件 命令:yum remove mysql* 2.通过命令:rpm -qa|grep -i mysql 查找系统的有关于mysq ...
- linux安装/卸载mysql
其实安装mysql差不多有10次了吧, 但是每次都有坑,各种百度,太麻烦了,所以这次把坑给记录下来,下次直接用. 1. 去官网下载mysql.这里可以使用wget下载.先去官方网站,找到mysql5. ...
- 树莓派3B+安装&卸载mysql
需求 在树莓派上 安装Mysql 服务,并开启远程访问 步骤 安装 mysql server 1 $ sudo apt-get install mysql-server 我以为中间会让我提示输入 数据 ...
- Ubuntu 完全卸载MySQL 重装步骤
sudo rm /var/lib/mysql/ -R 删除mysql的数据文件 sudo rm /etc/mysql/ -R 删除mqsql的配置文件 sudo apt-get autorem ...
- ubuntu 安装apache2,mysql,php5,phpmyadmin等软件
1.安装apache2 sudo apt-get install apache2 输入Y回车 apache2 安装完成 检测:在浏览器输入localhost 出现It works则成功. 2. ...
随机推荐
- ubuntu 16.04 安装nodejs
经过几天的尝试,终于装好了: 1. nodejs官方推荐一下安装方式: NodeSource的二进制安装脚本NodeSource Using Ubuntu curl -sL https://deb.n ...
- CentOS 7 安装MySQL 5.6遇到的疑难杂症小结
在一测试服务器(CentOS Linux release 7.2.1511)上安装MySQL 5.6(5.6.19 MySQL Community Server)时遇到下面错误,这个是因为CentOS ...
- 初识Azkaban
先说下hadoop 内置工作流的不足 (1)支持job单一 (2)硬编码 (3)无可视化 (4)无调度机制 (5)无容错机制 在这种情况下Azkaban就出现了 1)Azkaban是什么 Azkaba ...
- 使用httpclient发送get或post请求
HttpClient 是 Apache Jakarta Common 下的子项目,可以用来提供高效的.最新的.功能丰富的支持 HTTP 协议的客户端编程工具包,并且它支持 HTTP 协议最新的版本和建 ...
- Linux C语言解析.bmp格式图片并显示汉字
bmp.h 文件 #ifndef __BMP_H__ #define __BMP_H__ #include <unistd.h> #include <stdio.h> #inc ...
- Ubuntu 16.04下Linux驱动编写第一步
源码环境的搭建 Install源码 >sudo apt-cache search linux-source linux-source - Linux kernel source with Ubu ...
- 程序设计模式浅析(plain framework商业版设计模式)
程序设计其实对程序开发者来说十分重要,但是在工作中往往我们却忽略了这一块,因为我们所用的都是现有的模式.一个设计模式的好坏,往往能够体现出程序的专业性,还有整个项目的可持续性.这就是为什么有些公司,在 ...
- ORACLE 利用 REPLACE函数替换字段字符串
REPLACE(string,s1,s2) string 希望被替换的字符或变量 s1 被替换的字符串 s2 要替换的字符串 SQL> select replace(he love you,he ...
- [LeetCode] Single Number 单独的数字
Given an array of integers, every element appears twice except for one. Find that single one. Note:Y ...
- ASP.NET提取多层嵌套json数据的方法
本文实例讲述了ASP.NET利用第三方类库Newtonsoft.Json提取多层嵌套json数据的方法,具体例子如下. 假设需要提取的json字符串如下: {"name":&quo ...