无法在Git Bash上打开Sqlite [英] Can't open Sqlite on Git Bash

查看:74
本文介绍了无法在Git Bash上打开Sqlite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Windows作为我的操作系统,访问本地项目文件夹中/c/wamp/www/laravel5 当前目录中的sqlite数据库.我在目录中添加了sqlite3可执行文件.

I'm trying to access my sqlite database on my current directory at /c/wamp/www/laravel5 on my local project folder, with windows as my OS. I added the sqlite3 executable on the directory.

似乎没有使用git bash打开数据库.在Windows命令提示符中使用默认命令时,它可以无缝运行. sqlite3.exe存储/数据库.sqlite

The database doesn't seem to open using git bash. When using the default command in windows command prompt it works seamlesly. sqlite3.exe storage/database.sqlite

在Git Bash上尝试过:

Tried on Git Bash:

$ ./sqlite3.exe 

$ ./sqlite3.exe storage/database.sqlite

这些无效.错误消息是:

These didn't work. The error message is:

bash: sqlite3.exe: command not found

这是快照:

我想使用git bash查看数据库表和架构,因为与Windows cmd相比,它的字体颜色更酷.

I'd like to see the database tables and schema using git bash since it has cooler font colors compare with the windows cmd.

任何帮助将不胜感激.

推荐答案

如果您遇到了同样的问题,请参阅我的问题

if you have the same problem I had, then see my question here.

简而言之,使用"winpty"启动sqlite3可以工作:

In short, using "winpty" to start sqlite3 worked:

$ winpty sqlite3

这篇关于无法在Git Bash上打开Sqlite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆