Skip to content

Commit 2928579

Browse files
Update README.md
1 parent cabf511 commit 2928579

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,10 @@ nginx && php-fpm
200200
* Open This URL “[http://localhost:8080](http://localhost:8080)” on your Mobile [Chrome](https://play.google.com/store/apps/details?id=com.android.chrome) Browser.
201201

202202
![TEMP Result](./temp.jpg)
203+
204+
## MariaDB Config with PDO (socket)
205+
$mariadb = ini_get('mysqli.default_socket');
206+
$mariadb = ini_get('pdo_mysql.default_socket');
207+
208+
$pdo = new PDO("mysql:unix_socket=$mariadb;dbname=test", 'root', '');
209+
echo "Database connection success!";

0 commit comments

Comments
 (0)