博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
macos sqlite_如何在macOS上安装SQLite
阅读量:2507 次
发布时间:2019-05-11

本文共 2181 字,大约阅读时间需要 7 分钟。

macos sqlite

I’m a Mac user and I do not own a Windows computer, so I can’t write the instructions for Windows. Google “how to install sqlite on windows” for specific instructions. Same goes for Linux.

我是Mac用户,并且没有Windows计算机,因此无法编写Windows的说明。 谷歌“如何在Windows上安装sqlite”以获取具体说明。 Linux也是如此。

On macOS, you don’t need to do anything to install sqlite. It’s preinstalled in all modern versions of macOS.

在macOS上,您无需执行任何操作即可安装sqlite。 它已预安装在所有最新版本的macOS中。

All you need to do is to open a terminal and run the

您需要做的就是打开一个终端并运行

sqlite3

command.

命令。

Press ctrl-C 2 times to exit the SQLite executable.

按ctrl-C 2次以退出SQLite可执行文件。

This is pretty cool!

太酷了!

My macOS with Mojave comes with SQLite 3.24, and the latest version (at the time of writing) is SQLite 3.30. You can upgrade SQLite using Homebrew, but for the sake of simplicity, I’m not going to cover this.

我的装有Mojave的macOS带有SQLite 3.24,而最新版本(在撰写本文时)是SQLite 3.30。 您可以使用Homebrew升级SQLite,但是为了简单起见,我将不介绍它。

A great software we can use to interact with a SQLite database is TablePlus. It comes with a free trial that’s perfect for our usage, because it’s not time-based but rather it limits the amount of concurrent connections you can make to the database.

TablePlus是我们可以用来与SQLite数据库进行交互的出色软件。 它带有一个免费试用版,非常适合我们的使用,因为它不是基于时间的,而是限制了您可以与数据库建立的并发连接的数量。

Download it from . I know there are macOS, Windows and Linux versions.

从下载。 我知道有macOS,Windows和Linux版本。

You create a new connection, choosing SQLite:

创建一个新连接,选择SQLite:

You select a name, and type a database path. I choose test.db, in the /Users/flaviocopes/ folder:

您选择一个名称,然后键入数据库路径。 我在/Users/flaviocopes/文件夹中选择test.db

SQLite is pretty cool because the database is contained in a file, which you can put pretty much everywhere you want. This is radically different from PostgreSQL, and MySQL and other big DBMS.

SQLite非常酷,因为数据库包含在一个文件中,您可以将其放置在几乎任何地方。 这与PostgreSQL,MySQL和其他大型DBMS完全不同。

Pressing Connect, the connection was successfully created:

Connect ,连接已成功创建:

and I can see the file created in that folder, with zero KB of size:

我可以看到在该文件夹中创建的文件,大小为零KB:

That’s it.

而已。

I’m going to make more tutorials on how to use this SQLite database, soon.

我将很快就如何使用此SQLite数据库做更多教程。

翻译自:

macos sqlite

转载地址:http://smqgb.baihongyu.com/

你可能感兴趣的文章
一、 object c -基础学习第一天 如何定义一个类
查看>>
C#调用C++编译的DLL详解
查看>>
Kali Linux的安装
查看>>
我的大学生活-5-08-赵心宁
查看>>
bzoj1708[Usaco2007 Oct]Money奶牛的硬币(背包方案数dp)
查看>>
P2700逐个击破(并查集/树形dp)
查看>>
python几大排序算法
查看>>
hdu 4619 二分图最大匹配 ——最大独立集
查看>>
VM CentOS 问题汇总
查看>>
这段时间的小结
查看>>
ANDROID_MARS学习笔记_S01原始版_021_MP3PLAYER001_下载mp3文件
查看>>
SQLServer视图
查看>>
入门阶段
查看>>
Android中使用http协议访问网络
查看>>
vs win32 & MFC 指针默认位置
查看>>
Join 与 CountDownLatch 之间的区别
查看>>
js存cookie
查看>>
vc6下dll调试
查看>>
Ubuntu apt常用命令
查看>>
struts2 配置(部分)
查看>>