Giter Club home page Giter Club logo

Comments (8)

hakanersu avatar hakanersu commented on May 14, 2024

Can you try ;

'username' => 'root',
'password' => 'secret'

from homestead.

johannesfosseus avatar johannesfosseus commented on May 14, 2024

Yes, that works fine, did not find that in the docs. Thank you!

from homestead.

hakanersu avatar hakanersu commented on May 14, 2024

Alternatively you can add homestead@localhost
Just login mysql with root/secret

mysql -u root -p
CREATE USER 'homestead'@'localhost' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON * . * TO 'homestead'@'localhost';
FLUSH PRIVILEGES;

from homestead.

taylorotwell avatar taylorotwell commented on May 14, 2024

We're fixing this :)

from homestead.

shealan avatar shealan commented on May 14, 2024

I'm still having trouble. Just installed and setup Homestead but can't get my app to connect to mySQL using either root or homestead usernames. Both work fine when I am SSH'd into the box.

from homestead.

taylorotwell avatar taylorotwell commented on May 14, 2024

What configs etc are you trying?—
Sent from Mailbox

On Fri, May 16, 2014 at 8:41 PM, Shealan Forshaw [email protected]
wrote:

I'm still having trouble. Just installed and setup Homestead but can't get my app to connect to mySQL using either root or homestead usernames. Both work fine when I am SSH'd into the box.

Reply to this email directly or view it on GitHub:
#5 (comment)

from homestead.

shealan avatar shealan commented on May 14, 2024

SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)

Using config:

    'mysql' => array(
        'driver'    => 'mysql',
        'host'      => '127.0.0.1',
        'database'  => 'beatnode',
        'username'  => 'homestead',
        'password'  => 'secret',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
    ),

Obviously trying to connect to my db here but can't connect to homestead db either. Both work fine when SSH'd or connecting via mapped port in SequelPro.

from homestead.

shealan avatar shealan commented on May 14, 2024

Aha. Just tried changing 127.0.0.1 to localhost and it works. Is that a bug or did I read the docs wrong?

from homestead.

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.