无法在Git Bash上打开Sqlite [英] Can't open Sqlite on Git Bash
问题描述
我正在尝试使用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屋!