Closed hadifarnoud closed 5 years ago
As you can see in the error logs, these are empty:
--site-mail= \
--account-mail= \
--site-name= \
--account-name= \
You can find an example in the documentation: http://www.contentacms.org/#install
Please let me know if that doesn't fix your installation problems.
it didn't.
> scripts/install-mysql.sh
-----------------------------------------------
Installing Contenta CMS for local usage
-----------------------------------------------
EXECUTING /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush site-install contenta_jsonapi --verbose --yes \
--root=/Users/hadifarnoud/playground/contenta/install/web \
--db-url=mysql://root:[REDACTED]@localhost:3306/contenta \
--site-mail=[REDACTED] \
--account-mail=[REDACTED] \
--site-name=Persianpreneurs \
--account-name=admin \
--account-pass="[REDACTED]";
[info] Executing: mysql --defaults-file=/private/tmp/drush_1WRHB6 --database=contenta --host=localhost --port=3306 --silent -A < /private/tmp/drush_nVkqf5 > /dev/null
// You are about to CREATE the 'contenta' database. Do you want to continue?:
// yes.
[info] Sites directory sites/default already exists - proceeding.
[info] Executing: mysql --defaults-file=/private/tmp/drush_PAbT9w --database=contenta --host=localhost --port=3306 --silent -A < /private/tmp/drush_MQARAK > /dev/null
[info] Executing: mysql --defaults-file=/private/tmp/drush_0DhNmC --database=information_schema --host=localhost --port=3306 --silent -A < /private/tmp/drush_UryDxF
[notice] Starting Drupal installation. This takes a while.
In install.core.inc line 980:
[Drupal\Core\Installer\Exception\InstallerException]
Resolve all issues below to continue the installation. For help configuring
your database server, see the <a href="https://www.drupal.org/getting-star
ted/install">installation handbook</a>, or contact your hosting provider.<d
iv class="item-list"><ul><li>Failed to connect to your database server. The
server reports the following message: <em class="placeholder">SQLSTATE[HY0
00] [2002] No such file or directory</em>.<ul><li>Is the database server ru
nning?</li><li>Does the database exist or does the database user have suffi
cient privileges to create the database?</li><li>Have you entered the corre
ct database name?</li><li>Have you entered the correct username and passwor
d?</li><li>Have you entered the correct database hostname?</li></ul></li></
ul></div>
Exception trace:
() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:980
install_get_form() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:631
install_run_task() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:584
install_run_tasks() at /Users/hadifarnoud/playground/contenta/install/web/core/includes/install.core.inc:125
install_drupal() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/includes/drush.inc:238
drush_call_user_func_array() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/includes/drush.inc:223
drush_op() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Commands/core/SiteInstallCommands.php:141
Drush\Commands\core\SiteInstallCommands->install() at n/a:n/a
call_user_func_array() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:246
Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:181
Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/CommandProcessor.php:150
Consolidation\AnnotatedCommand\CommandProcessor->process() at /Users/hadifarnoud/playground/contenta/install/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:404
Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:971
Symfony\Component\Console\Application->doRunCommand() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:248
Symfony\Component\Console\Application->doRun() at /Users/hadifarnoud/playground/contenta/install/vendor/symfony/console/Application.php:148
Symfony\Component\Console\Application->run() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Runtime/Runtime.php:112
Drush\Runtime\Runtime->doRun() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/src/Runtime/Runtime.php:41
Drush\Runtime\Runtime->run() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush.php:66
require() at /Users/hadifarnoud/playground/contenta/install/vendor/drush/drush/drush:4
site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]] [--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--druplicon] [--xh-link XH-LINK] [--] <command> [<profile>]...
ERROR The Drupal installer failed to install Contenta CMS.
Script scripts/install-mysql.sh handling the install:with-mysql event returned with error code 3
the automated install script does not work. I followed every step very carefully.
I'm sure mysql credential is correct. I'm sure because it does create the database.