Have you updated your PHP-Version with a newer from http://windows.php.net/ , then change the extension_dir option in the php.ini to "ext" and uncomment every databaseextension you need. For SQLite extension=php_pdo_sqlite.dll or extension=php_sqlite3.dll. For MySQL extension=php_pdo_mysql.dll or extension=php_mysqli.dll. For PostgreSQL extension=php_pdo_pgsql.dll or extension=php_pgsql.dll.
Sorry for my bad english. But i hope that i could help and we have a central answer as reference.
mysql drivers is included in php ... then..
connect to mysql in php desktop is very easy ..
1. download mysql server and install
original server here..
https://mysql.com/
or this other... Apache friends include a portable mysql distro
with batch files to start and stop service..
https://www.apachefriends.org/
2. replace php.ini file in /php/ directory for this code:
; ==================================
; Extensions
extension_dir = "./ext"
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
extension=php_sqlite3.dll
extension=php_com_dotnet.dll
extension=php_mbstring.dll
; Date
date.timezone=Europe/Berlin
; Errors
error_reporting=E_ALL
display_errors=On
display_startup_errors=On
log_errors=Off
report_memleaks=On
report_zend_debug=On
; General
short_open_tag=On
ignore_user_abort=Off
implicit_flush=Off
output_buffering=0
default_charset = "UTF-8"
; Execution time
max_execution_time=30
; Memory
memory_limit=256M
; File uploads
; "post_max_size" must be equal or bigger than "upload_max_filesize"
max_file_uploads=20
upload_max_filesize=2048M
post_max_size=2048M
; ==================================
3. connect to mysql .. using PDO php (very very portable code)
https://phpdelusions.net/pdo
Note: Mysql haves a restrictive license.
Other sql engine is postgresql
and you license is very friendly with comercial projects..
download postgresql portable...
http://gareth.flowers/postgresql-portable/
to connect use a default settings..
host: localhost port: 5432
user : postgres
password:
The best tool to manage SQL databases is...
Dbeaver
We tried to port the website to use sqlite but most of the queries had issues.
finally I found the solution to embedded the mysql into the distribution.
Had to write new startup exe that first start mysql server and then start the php chrome.
We were able to bundle the app into a single installer using nsis scripts.
I will publish details when i could find time.
my email is: svtpa...@gmail.com
Thank you so much
Could you please send me the link for the mysql download?
Please let me know how can I do this.
Thanks.
Thanks