Skip to content

Commit 0a6b58c

Browse files
author
Carl Sverre
committed
Document using singlestore_bundle.pem
Fixes #13 skip ci
1 parent 4fcf6e5 commit 0a6b58c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This package is currently in a pre-release beta, please use with caution and ope
66

77
- [Install](#install)
88
- [Usage](#usage)
9+
- [Issues connecting to SingleStore Managed Service](#issues-connecting-to-singlestore-managed-service)
910
- [PHP Versions before 8.1](#php-versions-before-81)
1011
- [Migrations](#migrations)
1112
- [Rowstore Tables](#rowstore-tables)
@@ -78,6 +79,20 @@ In case you want to store failed jobs in SingleStore, then make sure you also se
7879
],
7980
```
8081

82+
## Issues connecting to SingleStore Managed Service
83+
84+
If you are encountering issues connecting to the SingleStore Managed Service, it may be due to your environment not being able to verify the SSL certificate used to secure connections. You can fix this by downloading and manually specifying the SingleStore certificate file.
85+
86+
* [Download the file here](https://portal.singlestore.com/static/ca/singlestore_bundle.pem)
87+
* In the Laravel SingleStore connection configuration, point the variable `PDO::MYSQL_ATTR_SSL_CA` at `singlestore_bundle.pem`:
88+
89+
```php
90+
'options' => extension_loaded('pdo_mysql') ? array_filter([
91+
PDO::MYSQL_ATTR_SSL_CA => 'path/to/singlestore_bundle.pem',
92+
PDO::ATTR_EMULATE_PREPARES => true,
93+
]) : [],
94+
```
95+
8196
## PHP Versions before 8.1
8297

8398
In PHP versions before 8.1, the flag `PDO::ATTR_EMULATE_PREPARES` results in a bug by which all attributes returned by MySQL (and

0 commit comments

Comments
 (0)