首页 \ 问答 \ 我的数据库在postgres中进入哪里?(Where did my database go in postgres?)

我的数据库在postgres中进入哪里?(Where did my database go in postgres?)

postgres拒绝工作。 我使用9.2和一个新手。

我创建了一个数据库。 我列出并且不在那里? 没有错误! 它去了哪里? 它创造过吗?

postgres-# creatdb test
postgres-# \list
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | 
 template0 | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(3 rows)

postgres-# 



postgres@ubuntu:/home/ubuntu$ psql -h 127.0.0.1 -U postgres -d test
Password for user postgres: 
psql: FATAL:  database "test" does not exist

postgres refuses to work. I am using 9.2 and a newbie.

I create a database. I list and its not there? There is no error! Where did it go? Was it ever created?

postgres-# creatdb test
postgres-# \list
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | 
 template0 | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_PH.UTF-8 | en_PH.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(3 rows)

postgres-# 



postgres@ubuntu:/home/ubuntu$ psql -h 127.0.0.1 -U postgres -d test
Password for user postgres: 
psql: FATAL:  database "test" does not exist

原文:https://stackoverflow.com/questions/18627003
更新时间:2023-03-10 13:03

最满意答案

您的格式表示采用720p以下的最佳视频流,并将其与最佳音频流混合在一起。 但是,在这种情况下,所讨论的直播流似乎没有单独的数据流,只有一个带有图片音频的数据流。

为了支持这些类型的视频,请在您的格式中添加该格式( best[height<=?720]' )到您的格式规格中:

youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM

如果您始终需要720p或更低的视频,您还可以将-f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]'写入配置文件中,以便您不必键入它一直都在。


Your format says to take the best video-only stream below 720p and mux it together with the best audio stream. However, in this case, the live stream in question does not seem to have individual streams, just one stream with picture and audio.

To support these kinds of videos, add that format (best[height<=?720]' in your case) to your format specification:

youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM

If you always want videos in 720p or less, you can also write -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' into a configuration file so you don't have to type it out all the time.

相关问答

更多
  • 我会将param声明为local ,这样你就不会在url之后附加url了... 您可以尝试将这个很棒的函数添加到.zshrc : funfun() { local _fun1="$_fun1 fun1!" _fun2="$_fun2 fun2!" echo "1 says: $_fun1" echo "2 says: $_fun2" } 观察事物;) 编辑(解释): 在获取shell脚本时,您将其添加到当前环境中,这就是您可以运行您定义的那 ...
  • 您正在寻找对音频流的缓冲访问(录制或播放),iOS通过Audio Queue Services提供它( AVAudioRecorder太高级别),因此当音频缓冲区被填满时,iOS会使用队列中的填充缓冲区调用您的callback ,你用它做一些事情(将它保存到磁盘,将其写入基于C#的流,发送到播放音频队列[扬声器]等...),并且通常将其放回队列中以便重复使用。 像这样的东西开始录制到音频缓冲区queue : var recordFormat = new AudioStreamBasicDescription ...
  • 对不起,我发现了错误。 我忘了添加管道来写文件。 这是代码中缺少的部分。 var output = path.join(path.resolve('.'), info.filename); video.pipe(fs.createWriteStream(output)); 我将使用github中完整工作应用程序的链接编辑此答案。 我还没上传。 最好! Sorry, I found the error. I was forgetting to add the pipe to write the file. t ...
  • 你需要的选项是ignoreerrors 查看从命令行参数映射到“in-code”的最简单方法是查看cli规范 。 它基于内置的optparse lib,并且正在寻找dest参数。 Option you need is ignoreerrors Easiest way to see mapping from command-line params to "in-code" is to look into cli spec. Its based on build-in optparse lib, and you ...
  • 如果你真的想要格式22,那么确实传入format键22 。 如果22不可用,您可以使用/best回退到最佳视频格式: ydl_opts = { 'format': '22/best', ... If you really want format 22, then indeed, pass in a format key of 22. You can use /best to fall back to the best video format if 22 is not available: ...
  • 你是不对的,你不能简单地使任何函数异步。 您的问题假定youtube-dl需要ffmpeg才能工作。 它并不完全正确,它可以通过自己的方式下载单个流,AFAIK ffmpeg仅用于将这些流(视频+音频+可能是字幕)复用到一个文件。 如果你使用ffmpeg,从性能的角度来看并不是很多,因为如果它是通过子进程使用的(很可能就是这种情况),那么至少会有一个完整的进程用于完成工作。 与子进程的交互也可以非阻塞方式完成 - 请参阅https://docs.python.org/3/library/asyncio-su ...
  • 要选择视频质量,首先使用-F选项列出可用格式,这是一个示例, youtube-dl -F http://www.youtube.com/watch?v=P9pzm5b6FFY 这是输出 [youtube] Setting language [youtube] P9pzm5b6FFY: Downloading webpage [youtube] P9pzm5b6FFY: Downloading video info webpage [youtube] P9pzm5b6FFY: Extracting vide ...
  • 您的格式表示采用720p以下的最佳视频流,并将其与最佳音频流混合在一起。 但是,在这种情况下,所讨论的直播流似乎没有单独的数据流,只有一个带有图片和音频的数据流。 为了支持这些类型的视频,请在您的格式中添加该格式( best[height<=?720]' )到您的格式规格中: youtube-dl -f 'bestvideo[height<=?720]+bestaudio/best[height<=?720]' Ij2rYpNxXgM 如果您始终需要720p或更低的视频,您还可以将-f 'bestvide ...
  • 每秒轮询一次并为进度条设置动画。 Poll only every second and animate the progress bar.
  • ffmpeg不是Python模块。 查看FFmpegExtractAudioPP类中的youtube-dl代码。 它使用这个调用来确定可执行文件是否存在。 它检查你的当前路径: subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() 您需要下载ffmpeg的Windows版本并将它们放在当前路径中,可能确保它们名称末尾没有.exe 。 ffmpeg is not a ...

相关文章

更多

最新问答

更多
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)
  • 是否可以嵌套hazelcast IMaps?(Is it possible to nest hazelcast IMaps? And whick side effects can I expect? Is it a good Idea anyway?)
  • UIViewAnimationOptionRepeat在两个动画之间暂停(UIViewAnimationOptionRepeat pausing in between two animations)
  • 在x-kendo-template中使用Razor查询(Using Razor query within x-kendo-template)
  • 在BeautifulSoup中替换文本而不转义(Replace text without escaping in BeautifulSoup)
  • 如何在存根或模拟不存在的方法时配置Rspec以引发错误?(How can I configure Rspec to raise error when stubbing or mocking non-existing methods?)
  • asp用javascript(asp with javascript)
  • “%()s”在sql查询中的含义是什么?(What does “%()s” means in sql query?)
  • 如何为其编辑的内容提供自定义UITableViewCell上下文?(How to give a custom UITableViewCell context of what it is editing?)
  • c ++十进制到二进制,然后使用操作,然后回到十进制(c++ Decimal to binary, then use operation, then back to decimal)
  • 以编程方式创建视频?(Create videos programmatically?)
  • 无法在BeautifulSoup中正确解析数据(Unable to parse data correctly in BeautifulSoup)
  • webform和mvc的区别 知乎
  • 如何使用wadl2java生成REST服务模板,其中POST / PUT方法具有参数?(How do you generate REST service template with wadl2java where POST/PUT methods have parameters?)
  • 我无法理解我的travis构建有什么问题(I am having trouble understanding what is wrong with my travis build)
  • iOS9 Scope Bar出现在Search Bar后面或旁边(iOS9 Scope Bar appears either behind or beside Search Bar)
  • 为什么开机慢上面还显示;Inetrnet,Explorer
  • 有关调用远程WCF服务的超时问题(Timeout Question about Invoking a Remote WCF Service)