卸载MySQL,安装SQLite
来源:互联网 发布:淘宝转卖闲鱼怎么发货 编辑:程序博客网 时间:2024/05/17 05:51
环境:Debian
卸载MySQL:
#sudo apt-get autoremove --purge mysql-server-5.0
出现是否继续选项时,选y
Do you want to continue [Y/n]? y
出现warning,可以卸载完成后手动删除/etc/mysql。
dpkg: warning: while removing mysql-common, directory '/etc/mysql' not empty so not removed
安装SQLite:
下载安装包。最新版本是sqlite-3.8.5。
#wget http://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz
解压缩。
#tar -xzvf sqlite-autoconf-3080500.tar.gz
检查并设置安装环境。
#./configure
编译源程序,这可能会较长时间,测试时间为1小时加2分钟。
#make
完成安装。
#make install
在终端输入sqlite3,报错
-bash: sqlite: command not found
是因为/usr/lib/arm-linux-gnueabihf目录下有老版本的libsqlite3.so.0和libsqlite3.so.0.8.6。而新安装的sqlite的库文件在/usr/local/lib目录下。解决方案是修改/etc/ld.so.conf,加入路径/usr/local/lib。
#vi /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
include /etc/ld.so.conf.d/*.conf
/usr/local/lib
wq保存退出。
测试是否安装成功。
#sqlite3
输出
SQLite version 3.8.5 2014-06-04 14:06:34Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
说明安装成功了。
http://www.sqlite.org/threadsafe.html
http://www.sqlite.org/c3ref/threadsafe.html
http://www.sqlite.org/c3ref/threadsafe.html
0 0
- 卸载MySQL,安装SQLite
- 安装、卸载MySQL服务
- mysql安装,卸载,连接
- centos 卸载,安装mysql
- yum 安装卸载mysql
- Mysql 安装与卸载
- yum 安装卸载mysql
- mysql安装以及卸载
- mysql 安装 卸载
- MySQL安装与卸载
- MySQL的安装、卸载
- mysql 卸载及安装
- mysql免安装卸载
- yum 安装卸载mysql
- 卸载编译安装mysql
- MySQL安装及卸载
- centos mysql 卸载安装
- mysql安装和卸载
- hibernate的current_session_context_class配置
- android 如何添加第3方lib库到kernel中
- C语言文件操作函数大全
- 听说此文又是一篇找砖头的文章, 善良,可爱型的人请速速离开。 1: 模板引擎。 模板引擎是否得继续使用及发挥作用, 成为phper们在争论的第一话题。 其实我们可以换个立场来思考, 如果d
- mysql中的select * for update
- 卸载MySQL,安装SQLite
- Spanned
- java解析xml的方法
- AN VideoPlay
- android 编译共享ccache的缓存
- 使用Links方法安装Eclipse插件
- iOS开发中地图与定位
- 使用InetAddress
- Windows内存管理