Update README.md

This commit is contained in:
Ste Vaidis 2023-07-28 17:09:02 +03:00
parent 54efac5e07
commit 0e8befe1fb

View File

@ -100,9 +100,22 @@ socket=/var/run/mysql/mysql.sock
port=3306
```
`mysql -uroot -p1234 # Test`
Test mysql
```sh
mysql -uroot -p1234
```
```sh
mysql -uroot -p1234 -e 'CREATE USER drupal@localhost IDENTIFIED BY "1234"'
mysql -uroot -p1234 -e 'CREATE DATABASE drupal'
mysql -uroot -p1234 -e 'GRANT ALL ON drupal.* TO drupal@localhost'
mysql -uroot -p1234 -e 'FLUSH PRIVILEGES'
```
Test php mysql
`/var/www/htdocs/test.php`
```php
<?php
@ -117,6 +130,10 @@ echo "Database connected successfully, Congratulations ";
?>
```
```sh
curl http://localhost/test.php
```
HTTPD
```sh