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. ...
随机推荐
- 豆芽儿 - 高端IT人才成长社区 上线啦!
豆芽儿 - 高端IT人才成长社区 这是我们新打造的网站,全新设计了用户体验,给你更爽快的学习体验.为你分享敏捷开发.项目管理.需求分析.软件设计.UML.中层领导力.CMMI.IT职场等“高大上” ...
- SQL SERVER 2008复制数据库时发生执行SQL Server代理作业错误
1. 情况说明 在利用SQL SERVER数据库复制向导,能够很方便的将一个数据库从一台服务器复制到另一台服务器上,具体操作步骤也十分简单. 不过在实际操作过程常发生“执行SQL SERVER代理作业 ...
- win8改win7笔记
内存<=4G,选32位(×86) 内存>=4G,选64位(×64) (非必须) BIOS设置 USB Boot Support Disabled改为Enabled(如 ...
- 前端编辑工具之VSCode
因为前段时间看了瞬息之间的一篇文章编辑器背后的程序观, 里面只提到了Visual studio. 我想想可能是因为非.Net开发者,所以不知道Visual sutdio code这个工具.来看看V ...
- Nginx深入详解之多进程网络模型
一.进程模型 Nginx之所以为广大码农喜爱,除了其高性能外,还有其优雅的系统架构.与Memcached的经典多线程模型相比,Nginx是经典的多进程模型.Nginx启动后以daemon ...
- 简单的浏览器调试——console命令
一.显示信息 <script type="text/javascript"> console.log('hello'); console.info('信息'); con ...
- 理解 JavaScript 回调函数并使用
JavaScript中,函数是一等(first-class)对象:也就是说,函数是 Object 类型并且可以像其他一等对象(String,Array,Number等)一样使用.它们可以"保 ...
- ant windows环境配置
详见如下链接,小蚂蚁builder.xml--apache-ant的配置 http://blog.csdn.net/gaohuanjie/article/details/40142687
- Ajax状态值及状态码
1- AJAX状态值与状态码区别AJAX状态值是指,运行AJAX所经历过的几种状态,无论访问是否成功都将响应的步骤,可以理解成为AJAX运行步骤.如:正在发送,正在响应等,由AJAX对象与服务器交互时 ...
- spring 拦截器
1.mvc.xml <!-- 自定义拦截链配置 --> <mvc:interceptors> <mvc:interceptor> <mvc:mapping p ...