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. ...
随机推荐
- 记录一次Quartz2D学习(五)
(四)内主要讲了绘制状态的保存与恢复 本次主要讲述 缩放,旋转,平移等操作 5.附加操作 5.1 旋转 TIP: 旋转操作主要是对本次渲染的图层进行旋转,旋转的中心为左上角顶点 - (void)dra ...
- Spring ApplicationContext 简解
ApplicationContext是对BeanFactory的扩展,实现BeanFactory的所有功能,并添加了事件传播,国际化,资源文件处理等. configure locations:(C ...
- CSS3:radial-gradient,径向渐变的使用方法
语法 径向渐变不同于线性渐变,线性渐变是从“一个方向”向“另一个方向”的颜色渐变,而径向渐变是从“一个点”向四周的颜色渐变.其语法如下: background: radial-gradient(cen ...
- 4.MySQL 主主(m-m) 同步生产库标准同步操作实施流程
通过MySQL参数配置使用主主前提: 1.表的主键自增. ################################################################# #m1-m ...
- python-基本数据类型
/int整数/ 如: 18.73.84 每一个整数都具备如下功能: class int(object): """ int(x=0) -> int or long i ...
- 飞一般的国内maven中央仓库
修改maven根目录下的conf文件夹中的setting.xml文件,内容如下: <mirrors> <mirror> <id>alimaven ...
- BZOJ 3529: [Sdoi2014]数表 [莫比乌斯反演 树状数组]
3529: [Sdoi2014]数表 Time Limit: 10 Sec Memory Limit: 512 MBSubmit: 1399 Solved: 694[Submit][Status] ...
- CentOS系统yum源使用报错:Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge.
服务器上的yum突然不好使用,使用yum的时候报错如下:[root@bastion-IDC src]# yum list......Could not retrieve mirrorlist http ...
- PYOJ 44. 【HNSDFZ2016 #6】可持久化线段树
#44. [HNSDFZ2016 #6]可持久化线段树 统计 描述 提交 自定义测试 题目描述 现有一序列 AA.您需要写一棵可持久化线段树,以实现如下操作: A v p x:对于版本v的序列,给 A ...
- 单例模式中用volatile和synchronized来满足双重检查锁机制
背景:我们在实现单例模式的时候往往会忽略掉多线程的情况,就是写的代码在单线程的情况下是没问题的,但是一碰到多个线程的时候,由于代码没写好,就会引发很多问题,而且这些问题都是很隐蔽和很难排查的. 例子1 ...