M
M
myskypesla2017-04-26 12:43:48
PHP
myskypesla, 2017-04-26 12:43:48

How to run a 1C Bitrix project on MAMP?

Please tell me, I have a project on 1C Bitrix and a .sql database for it. There is a password for the database and the actual Mac OS with MAMP & MAMP PRO installed.
I put the project files in the MAMP/htdocs folder
And also the database in the MAMP/db/mysql folder.
The project starts according to the standard on localhost:8888, even the favicon is displayed, but writes the following error:

[Bitrix\Main\DB\ConnectionException] 
Mysql connect error [localhost]: (2002) No such file or directory (400)
/Applications/MAMP/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:65
#0: Bitrix\Main\DB\MysqliConnection->connectInternal()
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/db/mysqliconnection.php:122
#1: Bitrix\Main\DB\MysqliConnection->queryInternal(string, array, NULL)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/db/connection.php:329
#2: Bitrix\Main\DB\Connection->query(string)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/config/option.php:183
#3: Bitrix\Main\Config\Option::load(string, NULL)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/config/option.php:53
#4: Bitrix\Main\Config\Option::get(string, string, string)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/httprequest.php:337
#5: Bitrix\Main\HttpRequest->prepareCookie(array)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/httprequest.php:63
#6: Bitrix\Main\HttpRequest->__construct(object, array, array, array, array)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/httpapplication.php:43
#7: Bitrix\Main\HttpApplication->initializeContext(array)
  /Applications/MAMP/htdocs/bitrix/modules/main/lib/application.php:122
#8: Bitrix\Main\Application->initializeExtendedKernel(array)
  /Applications/MAMP/htdocs/bitrix/modules/main/include.php:24
#9: require_once(string)
  /Applications/MAMP/htdocs/bitrix/modules/main/include/prolog_before.php:14
#10: require_once(string)
  /Applications/MAMP/htdocs/bitrix/modules/main/include/prolog.php:10
#11: require_once(string)
  /Applications/MAMP/htdocs/bitrix/header.php:1
#12: require(string)
  /Applications/MAMP/htdocs/index.php:2

Tell me what can be done? I didn't touch any other files and didn't touch anything in the MAMP settings.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Harakhnin, 2017-04-26
@Chupokabr

I also have MAMP and no problems at startup. Post your connection settings in Bitrix.
I don't really understand the base yet. It is possible that you somehow filled it in a strange way. Start MAMP and in the Mysql tab open phpmyadmin and try to connect to the database using access

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question