在.env
文件中,我如何将数据库配置设置为通过SSL提供的SSL数据库读取?提供SSL证书文件?
以下是clearDB在配置PHP时所说的内容:
# In order to connect via SSL using PHP, you'll need to use the "MySQLi" extension,
# like this:
$db = mysqli_init();
$db->ssl_set(PATH_TO_SSL_CLIENT_KEY_FILE, PATH_TO_SSL_CLIENT_CERT_FILE, PATH_TO_CA_CERT_FILE, null, null);
$db->real_connect(HOSTNAME, USERNAME, PASSWORD, DATABASE_NAME);
但是这可以在Laravel .env
文件中配置吗?