PHP / Mysql Path Login

Hello Community,

I would like know how configure path
in config.php
define( 'DBPASSWORD', 'passwordhere' );

I had

sudo -u userdb mysql --login-path=dbpath

1 Reply

Greetings @jbsystem,

I did some digging and found a few detailed answers on creating a database configuration file. You can find them below:

http://www.mysqltutorial.org/php-connecting-to-mysql-database/

https://stackoverflow.com/questions/29763358/best-way-to-create-configuration-fileconfig-php-php

I also searched Github and found a php configuration file that you could use for some ideas:

https://gist.github.com/fcm/1196118/6742d0160294d8150b141e7c9b0af49b9b29487e

Best,
Preston
Linode Support Team

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct