Git Product home page Git Product logo

Comments (8)

dizda avatar dizda commented on June 17, 2024

Can you try to remove the quotes in your mysql db_port ?

from cloudbackupbundle.

tim96 avatar tim96 commented on June 17, 2024

I create var_dump of backup command:

string(180) "mysqldump --host='127.0.0.1' --port='3306' --user='tim' --password='' db1 > G:\db1\app\cache\prod/backup/mysql/db1.sql"

Can you try to remove the quotes in your mysql db_port ?

@dizda, I try this in my parameters.yml, but I still have this error:

database_port: null

I found what this suffix appear in this line:

$this->auth = sprintf("--host='%s' --port='%d' --user='%s' --password='%s'"

from cloudbackupbundle.

dizda avatar dizda commented on June 17, 2024

You should leave the port, did you try like this?

database_port: 3306

from cloudbackupbundle.

dizda avatar dizda commented on June 17, 2024

Weird, the command looks correct

from cloudbackupbundle.

tim96 avatar tim96 commented on June 17, 2024

You should leave the port, did you try like this?

@dizda Yes, I try it. The same error.

I change this line with suffix:

$this->auth = sprintf("--host='%s' --port='%d' --user='%s' --password='%s'"

to this in MySQL.php file:

$this->auth = sprintf("--host=\"%s\" --port=\"%d\" --user=\"%s\" --password=\"%s\"",

And it seems to work for me.

from cloudbackupbundle.

dizda avatar dizda commented on June 17, 2024

Hmm weird, I think it's because mysqldump's behavior is different on Windows.

Well, can you send a PR to fix this bug? Thanks

from cloudbackupbundle.

tim96 avatar tim96 commented on June 17, 2024

Well, can you send a PR to fix this bug? Thanks

Ok, I try to do it. Thanks

from cloudbackupbundle.

tim96 avatar tim96 commented on June 17, 2024

Fixed

from cloudbackupbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.