-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Sql Server] Error migrating tables #33
Comments
First of all, thank you :) I have some considerations about your step by step:
|
Hello, thank you for quick reply ^^ Now I've got this error
so I try to install pdo_dblib but it was deprecated. Does your library support sqlsrv_connect ? Edit: about the example connects to 172.18.0.4, it is because I am using bridge to connect to sql server from another php container (it was okay calling localhost) |
Right now we don't have support for sqlsrv_connect, however it is something to think about. Let me analyse what can be done and I return to you soon. |
The problem with the Microsoft Sql Server connector for PHP Linux is the driver is a wrapper for ODBC. It means you have an intermediate layer acting making the connection slower. The dblib driver connects using the databse protocol without intermediaries directly Meanwhile, could you try to install the DBLIB on MAC following this tutorial? https://gist.github.com/jschroed91/8235909e16f79fbb31feff1f313aa9ca As you are using Docker you can try also use our PHP docker image. It has all necessary modules you need. You can pull the image by |
Thanks for the advice Even after I install the DBLIB on Mac,
We would appreciate it if you could make this library support Microsoft SQL Server Driver for PHP |
All right. Let me think how I'll add it. |
Hi @c4ndle , I implemented the Sqlsrv to be deployed in the next migration version. I'd like you test it for me before I create a new version. Please update the migration temporarly to The connection string is:
|
Hello, thank you for the update, I did try run
Try using -W option
Btw I did run
|
OK, use the following
|
Did it work as expected? |
Hello, sorry I can not test it soon (busy with client side development). |
No problem.
Yes, it is, but I would like just to make sure everything is OK. |
updating dev-next after edit
And then I have an exception command not found
Do I have to update https://github.com/byjg/migration-cli too ? using
|
Could you tell more specific how do you do that from the ground up @byjg |
Hi, I am generating a new release version where I can have all tied togheter. After merge PR #31 in a few minutes I'll send the proper instructions. |
I bump all component versions, so you can use without any "hacks".
e.g.:
To use the Let me know if everything is working. |
Finally it works using this command
If using API, I have an error
Then I change localhost to sql1(container name) because both php and Thanks a lot |
I am glad to know that the solution is working. About why |
Hello, thanks for sharing this library.
Sorry for a newbie question.
I am trying to use this library with Sql Server
but I receive this error message
-- Error migrating tables --
How to Reproduce:
Run SqlServer on docker
docker run --name sql1 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=!@#p455qwe' -p 11433:1433 -d mcr.microsoft.com/mssql/server:2017-latest
Install Database Migrations(CLI) on mac
composer require 'byjg/migration-cli=4.0.*'
Change test_sqlserver.php like this
Run this command
I can connect to sql using this
http://localhost:8080/indexSQL.php
Question 1:
Please tell step by step how to use this library with sql server,
what file need to change sql user and password and server address
and how to test the connection established.
Question 2:
How to find more details of this
-- Error migrating tables --
,such as if the error is because the connection failed
Mac php version
The text was updated successfully, but these errors were encountered: