SuiteCRM-8.6.2 installation | MY SQL DATABASE ISSUE

hello dears,
i download SuiteCRM-8.6.2, i reach the last part to enter my sql data base that i already created but i could not find where i will enter them in the uploaded open source file.

thank for advance

Hi there . can you please elaborate what do you mean by last part? and where you want to enter sql database ?

i reach the part where i enter my sql data base that i create and i enter them correctly

i do not know where and witch file to put them so i process to the next part on install

Hello Ichiko,

usually, you woulnd’t need to manually enter the sql server details in the file.
Check out this video as a reference:

But should you wish to setup another DB / do a server migration or similar, check out the file:

public/legacy/config.php

  array (
    'db_host_name' => 'localhost',
    'db_host_instance' => '',
    'db_user_name' => 'user',
    'db_password' => 'pass',
    'db_name' => 'db',
    'db_type' => 'mysql',
    'db_port' => '3306',
    'db_manager' => 'MysqliManager',
    'collation' => NULL,
    'charset' => NULL,
  ),

as well as the file:

.env.local

where you can configure your DATABASE_URL

thank you sir for your time and effort,

concerning the legacy file not exist, and for .env i have this code below

CODE .env:

In all environments, the following files are loaded if they exist,

the latter taking precedence over the former:

* .env contains default values for the environment variables needed by the app

* .env.local uncommitted file with local overrides

* .env.$APP_ENV committed environment-specific defaults

* .env.$APP_ENV.local uncommitted environment-specific overrides

Real environment variables win over .env files.

DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.

Run β€œcomposer dump-env prod” to compile .env files for production use (requires symfony/flex >=1.2).

###> symfony/framework-bundle ###
APP_ENV=prod
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
#TRUSTED_HOSTS=β€˜^localhost|example.com$’
###< symfony/framework-bundle ###

###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://(localhost|127.0.0.1)(:[0-9]+)?$
###< nelmio/cors-bundle ###

###> AUTH_TYPE ###
AUTH_TYPE=native
###< AUTH_TYPE ###

###> LDAP CONFIG ###
LDAP_HOST=β€˜β€™
LDAP_PORT=389
LDAP_ENCRYPTION=tls
LDAP_PROTOCOL_VERSION=3
LDAP_REFERRALS=false
LDAP_DN_STRING=β€˜β€™
LDAP_QUERY_STRING=β€˜β€™
LDAP_SEARCH_DN=β€˜β€™
LDAP_SEARCH_PASSWORD=β€˜β€™
###< LDAP CONFIG ###

###> LDAP AUTO CREATE CONFIG ###
LDAP_AUTO_CREATE=disabled
LDAP_PROVIDER_BASE_DN=β€˜β€™
LDAP_PROVIDER_SEARCH_DN=β€˜β€™
LDAP_PROVIDER_SEARCH_PASSWORD=β€˜β€™
LDAP_PROVIDER_DEFAULT_ROLES=ROLE_USER
LDAP_PROVIDER_UID_KEY=β€˜β€™
LDAP_PROVIDER_FILTER=β€˜β€™
###< LDAP AUTO CREATE CONFIG ##

###> SAML CONFIG ###
SAML_AUTO_CREATE=disabled
SAML_USERNAME_ATTRIBUTE=uid
SAML_USE_ATTRIBUTE_FRIENDLY_NAME=true
###< SAML CONFIG ###

###> symfony/lock ###
LOCK_DSN=flock
###< symfony/lock ###

###> login throttling ###
LOGIN_THROTTLING_MAX_ATTEMPTS=5
###< login throttling ###

###> login throttling ###
LOGIN_THROTTLING_IP_LOGIN_MAX_ATTEMPTS=50
LOGIN_THROTTLING_INTERVAL=β€œ30 minutes”
###< login throttling ###

Please recheck the files, folders and names carefully:

and:

in legacy file there NO config.php, but i find this

i think the change would be here but to be hosnest i did not witch file i update

In that case, you have not completed the installation.
Your config.php is being created from / during the installation with your variables (like the MySQL credentials) set during the installation.

Are you trying a standard installation?
Or a CLI installation?

I’m wondering why you want to write the MySQL connection details manually into the file(s) - since this is only needed in special situations (like a server migration or similar).

in my case :
1 i download the files from the official site
2 i have access to my file manager in my hosting plan, i extract them, i run into technical issue but my hosting provider solve it
but when i reach into my sql data base that i created they refuse to make or help me do the connection, because they said where is the exact file

Check if the MYSQL modules are turned on in your CPanel, or ask your hosting about it.

The SuiteCRM installer should be able to create its own database without your manual intervention. But that can only work if your PHP is able to connect with MySQL.

for my SQL database already work because i have other site where i use it and it ok, i think the issue is what you mention PHP is not able to connect with mysql

hello dears,
in case anyone install SuiteCRM-8.6.2 and face the issue of MYSQL DATABASE you can solved it by adding this code into .env file directly
image
and with the same info add them in suite crm.
after that you will face dashboard issue you can solve it by permmesion