-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[8.x] Added support to MySQL dump and import using socket #35083
Conversation
@eusonlito Does this change the way the code behaves? It is helpful to add the results of whatever tests you have done. |
@selcukcukur no, no changes on behaves. Without I will add my tests output ASAP. |
What if no |
Same as without Ok, let me update code to avoid Also, if I only have |
If they are not truly required we should probably handle cases where they aren't present. |
Socket connections don't need host and port on any way. Also, socket connection is fast than host:port connection: https://www.percona.com/blog/2020/04/13/need-to-connect-to-a-local-mysql-server-use-unix-domain-socket/ |
MySQL with
MySQL with
MySQL with
MySQL with Removed also
MySQL with
|
I don't understand what you're getting at. We just need to account in the code for the options being missing. |
Sorry @taylorotwell, @selcukcukur asked about |
Done! |
@eusonlito I wanted to tell you to add the test files in case there is a code that changes the behavior, I apologize if I am misunderstood 😄 |
If your MySQL server only allow socket as connection (
skip-networking
) you can not dump or import thedatabase/schema/mysql-schema.dump
file.This PR check the
DB_SOCKET
value to generate themysql
/mysqldump
command string with--socket
instead--host
and--port
.I haven't found any test about
schema:dump
artisan command. Checked on local and servers with MySQL 8 with the different.env
DB_
configurations and enabling or disabling network connections on database server.