-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MsSQL support #439
Comments
@Stylix can you point me to the correct MsSQL module for PHP as well as their install instructions for Linux. |
@cytopia You can find here all the instructions to install MsSQL module for php on linux : Let me know if I can help you for something ;) |
@Stylix |
Refs #439 Adding sqlsrv and pdo_sqlsrv for PHP 7.0, 7.1, 7.2 and 7.3
@Stylix Note: documentation might take 10min after writing this comment to be updated. |
Reopening. I completely forgot to install the MsODBC driver (apart from the PHP modules itself): |
Currently the only part that is missing is the ODBC driver software itself, the PHP modules are available.
I am not sure If I can actually bundle this, due to a license that needs to be accepted. This seems to be a similar issue as: #394 However, I am thinking about an autostart option which would execute any arbitrary user scripts and each user could then provide whatever he/she needs to be auto-executed during the PHP container startup. This could then install the MSODBC drivers on each run automatically. For now, let me know if the above works for you then and if you can successfully connect to a MsSQL database. |
@cytopia thanks for work !! |
I've pull the latest master but i've issue when I try to start my container with the 'docker-compose up' cmd. I'm going to investigate why ... Do you think it's possible to add sqlsrv image like the mysql for a next version ? |
You should compare your current Also do a:
If you still hit issues starting it up, let me know what error is thrown. |
@Stylix
This will eliminate the current limitations due to legal issues. Current PR for php-fpm is here: devilbox/docker-php-fpm#78 |
@cytopia Nice job !! When I'm try to install ODBC driver, I've got this error
|
Hmm is there something wrong with your DNS resolution inside the PHP container? Otherwise if everything is fine, use the
|
Devilbox PR is open: #446 You can checkout this git branch: Example scripts for Ms ODBC driver are available as well and just need to be copied to a file ending by |
@Stylix It is now merged and tested with PHP 7.0, 7.1, 7.2 and 7.3 Documentation available here: https://devilbox.readthedocs.io/en/latest/advanced/custom-startup-commands.html FYI: to get the MsSQL container up and running, you can simply add it to
|
@cytopia Thanks a lot ! I try to test tomorrow morning ;) |
@cytopia Installation for OBCD driver works very well ! Nice job and thanks a lot ! I also added my MsSQL container to the Here is my
|
Just add an
Add the following to
|
@cytopia You are the best 👍 |
@cytopia I have a mistake and i don't find solution... I've done 2 tests with the same script :
First testExecute script from PHP on my local computer, it works Second testExecute script from PHP on my devilbox container, I have this error :
I can connect to the docker machine and also to the SQL server from the command line, but not from PHP. Do you have an idea ? |
Don't use |
You are definitely the best! And I'm definitely stupid 😅 |
@Stylix good to hear it works now :-) I am currently moving anything not related to Devilbox bugs into the new Forum here: https://devilbox.discourse.group So for all further non-bug requests, please go there. This will also allow for other people to catch your issue and respond. |
Nice thing and good idea ! Already in my favorites ;) |
ISSUE TYPE
SUMMARY
Add MsSQL support.
MsSQL is now supported with Linux architecture and docker. It would be interesting to complete SQL database support with MsSQL
Goal
Add new DB support on this good project and connect PHP with pdo's driver for mssql.
The text was updated successfully, but these errors were encountered: