Please configure the postgresql binary path in the preferences dialog как исправить

To fix Utility file not found, please correct the binary path in the preferences dialog error, adjust your settings accordingly.

Fix the Utility file not found error by changing a few settings

by Milan Stanojevic

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he… read more


Published on January 11, 2023

Reviewed by
Alex Serban

Alex Serban

After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server… read more

  • To fix Utility file not found error, you just need to configure your application properly.
  • Alternatively, you can try moving the missing files to the correct directory.

utility file not found please correct the binary path in the preferences dialog

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

Computer errors can cause various problems, and one error that many users reported is the Utility file not found, please correct the binary path in the preferences dialog.

This error can cause all sorts of problems, such as SQL Server error 18456, and in today’s guide, we’re going to show you the best methods you can use to fix it.

What causes the Utility file not found in PostgreSQL?

There are two reasons for this error message:

  • Improper configuration If the application isn’t configured properly, you won’t be able to use it at all. You might even encounter errors such as SQL Server query execution failed.
  • Missing files – In some instances, the necessary files might not be located in the proper location, thus causing issues to appear. If you’re working with databases, you should consider SQL backup software to prevent any file loss.

How can I fix the Utility file not found, please correct the binary path in the preferences dialog error?

1. Restore the database

  1. Open pgAdmin. Click on File and select Preferences.
     
  2. Next, choose Binary path and set ProgresSQL Binary path to C:Program FilesPosgresSQL13bin

  3. Lastly, select your database from the menu on the left, right-click it and choose Restore.

Once you perform these steps, the pgAdmin 4 utility file not found, please correct the binary path in the preferences dialog should be gone.

2. Edit the config_distro file

Note icon
NOTE

This method will achieve the same results as the previous one, but instead of using the graphical interface, you’ll directly edit the settings.

  1. Navigate to C:Program FilesPostgreSQL13pgAdmin 4web
  2. Open the config_distro in your code editor.
     
  3. Now change the pg value so it matches the location of the ProgresSQL bin directory.
  4. Save changes.

As you can see, this is a simple solution that will help you fix Please configure the PostgreSQL binary path in the preferences dialog in PostgreSQL 14 error.

Read more about this topic

  • Kindle for PC Not Working: 4 Simple Ways to Fix it
  • Readiris has Stopped Working: 7 Easy Fixes That you can use

3. Copy the necessary files

  1. Look for the pg_restore.exe file. It should be located in C:Program FilesPostgreSQL13bin
  2. Navigate to the following path: C:Program FilesPostgreSQL13pgAdmin 4
  3. Navigate to the runtime directory. If it’s not available, right-click the empty space and expand the New menu and then select Folder. Name it runtime and navigate to it.
  4. Now paste all the files from the bin directory inside the runtime folder.

As you can see, the Utility file not found, please correct the binary path in the preferences dialog is a minor error that can be easily fixed in a matter of minutes.

Fixing this error is important, and speaking of database errors, be sure to check our guide on how to repair a corrupted database in SQL Server.

Did you find a different solution for this problem? If so, let us know in the comments section below.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Newsletter

Двоичный путь в настройках pgAdmin

Я установил PostgreSQL, потому что мне нужно восстановить большой .backup файл, который я получил для загрузки на другую платформу (это 38 миллионов строк, что, по-видимому, было слишком большим для человека, чтобы экспортировать его любым другим способом). Когда я пытаюсь «восстановить» в pgAdmin 4, я получаю сообщение:

Пожалуйста, настройте двоичный путь PostgreSQL в диалоге настроек.

Это просто путь к папке PostgreSQL? Я не могу найти документацию по этому вопросу на сайте PostgreSQL. Все, что я могу найти, это:

Используйте поля в узле двоичных путей, чтобы указать пути к двоичным утилитам PostgreSQL и двоичным утилитам EnterpriseDB Postgres Advanced Server.

Есть ли более простой способ восстановить базу данных, кроме как через pgAdmin?

Двоичный путь PostgreSQL в pgAdmin 4 1.0-rc1

Что нужно указать в поле PostgreSQL Binary Path в разделе File > Preferences > Path > Binary paths ?

4 ответа

Это должен быть каталог , а не отдельный файл. Итак, в Windows это обычно C:Program FilesPostgreSQL9.6bin

В будущих версиях pgAdmin 4 будет такая подсказка:

Path to the directory containing the PostgreSQL utility programs (pg_dump, pg_restore etc).

В последней версии PostgreSQL 9.6, запущенной на pgAdmin 4, вы найдете подсказки на вкладке «Справка» по этим двум URL-адресам после замены $ VERSION $ на соответствующий номер версии: https://www.enterprisedb.com/docs/en/9.6/pg/ и https://www.postgresql.org/docs/9.6/static/ (однако ссылки как таковые не очень помогают).

enter image description here

Если вы последуете подсказке под окном и выполните поиск по запросу «pg_dump, pg_restore» в каталоге, в который вы устанавливаете PostgreSQL, они будут в каталоге / папке «bin».

enter image description here

В Windows при установке по умолчанию это выглядит примерно так: C: Program Files PostgreSQL 9.6 bin

Скопируйте свой путь и вставьте в поля под. Щелкните вкладку «Двоичные пути» и нажмите «ОК»

enter image description here

Итак, что вам нужно сделать, это настроить путь (очевидно):

В pgAdmin выберите File -> Preferences и найдите Path , а затем нажмите Binary Path , и ему нужен ваш путь там, где написано PostgreSQL Binary Path

Перейдите к своему компьютеру -> C: (в Windows) -> Program Files -> PostgreSQL -> your version -> bin . Это должно быть примерно так: C:Program FilesPostgreSQL9.6bin . И это то, что вам нужно скопировать и вставить в pgAdmin.

Надеюсь, это поможет ☺️

Все двоичные файлы, связанные с postgresql, должны быть там. Это должно быть указано в папке bin при установке postgre.

Двоичный путь в настройках pgAdmin

Я установил PostgreSQL, потому что мне нужно восстановить большой файл .backup , который я получил для загрузки на другую платформу (это 38 миллионов строк, которые, по-видимому, слишком велики для того, чтобы пользователь мог экспортировать любой другой способ). Когда я пытаюсь «восстановить» в pgAdmin 4, я получаю сообщение:

Пожалуйста, настройте двоичный путь PostgreSQL в диалоговом окне «Настройки».

Это только путь к папке PostgreSQL? Я не могу найти документацию на этом сайте PostgreSQL. Все, что я могу найти, это:

Используйте поля в узле Binary paths для указания путей к двоичным утилитам PostgreSQL и двоичным утилитам EnterpriseDB Postgres Advanced Server.

Есть ли более простой способ восстановить базу данных, кроме как через pgAdmin?

Проблема

На русском:

Файл утилиты не найден. Пожалуйста, исправьте двоичный путь в диалоговом окне настроек.

Откуда появилась проблема?

При попытке обращения к окну «Импорта/Экспорта» в веб-интерфейсе pgAdmin4 появляется проблема. Мы не можем выполнить импорт, из-за отсутствия пути до бинарного файла самого PostgreSQL.

pgAdmin4 элементы выпадающего меню import-export data

pgAdmin4 элементы выпадающего меню import-export data
pgAdmin4 окно Utility not found
pgAdmin4 окно Utility not found

Решение

Теперь нужно понять о каком «двоичном пути» идёт речь.

Заходим в меню «Файл» затем «Настройки»

pgAdmin4 меню Файл Настройки

pgAdmin4 меню Файл Настройки

В окне «Настройки» (Preferences) скролим вниз до пункта «Пути» (Paths). Нажимаем на пункт «Пути программ» (Binary paths).

pgAdmin4 меню Файл Настройки Пути - Пути программ

pgAdmin4 меню Файл Настройки Пути — Пути программ

В открытом окне листаем до «Каталог программ PostgreSQL«.

pgAdmin4 раздел Каталог программ PostgreSQL с пустыми путями

pgAdmin4 раздел Каталог программ PostgreSQL с пустыми путями

И видим, что в pgAdmin4 не указан ни один путь до каталога исполняемых файлов СУБД PostgreSQL.

ВНИМАНИЕ!!! Мы установили СУБД PostgreSQL в ОС Debian.

Ниже нам подсказывают:

Enter the directory in which the psql, pg_dump, pg_dumpall, and pg_restore utilities can be found for the corresponding database server version. The default path will be used for server versions that do not have a path specified.

На русском:

Введите каталог, в котором можно найти утилиты psql, pg_dump, pg_dumpall и pg_restore для соответствующей версии сервера баз данных. Путь по умолчанию будет использоваться для версий сервера, для которых путь не указан.

Мы можем поискать в Debian все места хранения файлов «psql«:

find / -iname "psql"

В ответе:

Поискали места хранения файлов psql на всём диске в Debian

Поискали места хранения файлов psql на всём диске в Debian

Нас будет интересовать путь:

/usr/lib/postgresql/14/bin/

Можем сразу проверить содержимое остальных файлов в этой директории:

ls /usr/lib/postgresql/14/bin/

Отобразили все файлы директории bin в Debian

Отобразили все файлы директории bin в Debian

Мы видим, что в этой директории присутствуют все необходимы файлы, о которых просит pgAdmin4.

Вводим путь:

Ввели путь программы для PostgreSQL 14 из Debian

Ввели путь программы для PostgreSQL 14 из Debian

Следующим шагом нужно АКТИВИРОВАТЬ СИНЮЮ ТОЧКУ, которая сейчас серая. Нажимаем на серую точку.

Активировали выбор пути до PostgreSQL 14 в pgAdmin в Debian

Активировали выбор пути до PostgreSQL 14 в pgAdmin в Debian

Нажимаем «Сохранить«.

Проверяем работоспособность. Выделяем нужную таблицу.

Выделяем нужную таблицу в pgAdmin4

Выделяем нужную таблицу в pgAdmin4

Переходим к окну «Импорта/Экспорта» в веб-интерфейсе pgAdmin4.

Окно Импорта Экспорта заработало после указания правильного пути до бинарных файлов СУБД PostgreSQL

Окно Импорта Экспорта заработало после указания правильного пути до бинарных файлов СУБД PostgreSQL

Задача решена! Утилиты подключены!

Информационные ссылки

Справка по Диалоговому окну импорта/экспорта — https://www.pgadmin.org/docs/pgadmin4/development/import_export_data.html

Команды SQL в PostgreSQL 14 — https://postgrespro.ru/docs/postgresql/14/sql-commands

Список команд программы PSQL — https://postgrespro.ru/docs/postgresql/14/app-psql

Официальный сайт PostgreSQL — https://www.postgresql.org

Графический веб-интерфейс для управления СУБД PostgreSQL — https://www.pgadmin.org

Операционная система Debian — https://www.debian.org

Computer errors can cause various problems and one of the errors reported by many users is the utility file not found. Please correct the binary path in the settings dialog.

This error can cause all sorts of issues like SQL Server error 18456 and in today’s guide, we’ll show you the best methods you can use to fix it.

What causes utility file not found in PostgreSQL?

This error message can be caused by two things:

  • Misconfiguration. If the app is set up incorrectly, you won’t be able to use it at all. You may even run into errors such as the SQL Server query execution failed.
  • Missing files. In some cases, the required files may not be in the correct location, resulting in problems. If you work with databases, you should consider SQL backup software to prevent file loss.

How can I fix utility file not found error, fix binary path in settings dialog?

1. Restore the database

  1. Open pgadmin. Click «File» and choose «Settings».

  2. Then choose Binary Path and set for ProgresSQL binary path value C:Program FilesPosgresSQL13bin

  3. Finally select your database from the menu on the left, right click on it and select «Restore».

After following these steps, the pgAdmin 4 utility file was not found, correct the binary path in the settings dialog.

2. Edit the config_distro file.

  1. Switch to C:Program FilesPostgreSQL13pgAdmin 4web
  2. Open config_distro in the code editor.

  3. Now change the pg value to match the directory location bin ProgreSQL.

  4. Save changes.

As you can see, this is a simple solution that will help you fix PostgreSQL error 14. Adjust the path to the PostgreSQL binary in the settings dialog.

3. Copy the required files

  1. Find the file pg_restore.exe. He must be in C:Program FilesPostgreSQL13bin
  2. Go to the following path: C:Program FilesPostgreSQL13pgAdmin 4
  3. Change to the runtime directory. If it’s not available, right-click on an empty space and expand the New menu and then select «Folder«. Name it runtime and navigate to it.

  4. Now paste all the files from the bin directory into the runtime folder.

As you can see, the utility file was not found, fix the binary path in the settings dialog — this is a minor error that can be easily fixed in a matter of minutes.

Have you found another solution to this problem? If so, please let us know in the comments section below.


Fix: Intel Unison not working on Windows 11

Fix: Intel Unison not working on Windows 11

ChatGPT error «Too many requests in 1 hour» (2023): how to…

ChatGPT error "Too many requests in 1 hour" (2023): how to...

USB ports not working in Windows 10: why and how…

USB ports not working in Windows 10: why and how...

Windows 11 cursor: how to change and customize it

Windows 11 cursor: how to change and customize it

Advapi32.dll Not Found: How To Fix or Reinstall

Advapi32.dll Not Found: How To Fix or Reinstall

Windows 10 Won’t Boot on My Computer: 5 Easy Solutions

Windows 10 Won't Boot on My Computer: 5 Easy Solutions

How to Fix PS5 Error CE-113524-6 — Fixing Connection Timeout to…

How to Fix PS5 Error CE-113524-6 - Fixing Connection Timeout to...

What Bluetooth codec does Windows 11 use?

What Bluetooth codec does Windows 11 use?

Понравилась статья? Поделить с друзьями:
  • Playback error mail ru на телевизоре
  • Playback error chrome
  • Play market ошибка соединения
  • Play market нет подключения к интернету как исправить
  • Play market выдает ошибку при входе