Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By aktarjahan2003 on
Hi,
In my settings.php I have the following:
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'my_databasename_D7',
'username' => 'myusername',
'password' => 'my Cpanel Password',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
Question to you, if I don't give the Cpanel password here ( 'password' => 'my Cpanel Password',) then my site does not work any more. I am some how afraid to use my cpanel password in this way. Any alternative of this? Can anybody read it?
Comments
You don't have to enter your
You don't have to enter your cPanel username and password.
In cPanel, go to MySQL databases page, and create a new user (with a password). Then, you can add this user to the database you are using in settings.php file, and grant all permissions.
Your hosting company should be able to help you in this. CPanel UI can differ from host to host, but the steps are usually the same.
What's new and changing in PHP 8
Thanks for help.
Thanks for help.