Comments (8)
Can you try ;
'username' => 'root',
'password' => 'secret'
from homestead.
Yes, that works fine, did not find that in the docs. Thank you!
from homestead.
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.
We're fixing this :)
from homestead.
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.
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.
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.
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)
- Homestead Box Settler v13.0.0 can't be detected/found by Vagrant Box Add or Update HOT 19
- Homestead box can't add v13.0.0 in Vagrant (v2.4.0) HOT 6
- Is it time to jump to 22.04? HOT 20
- There is no InfluxDB v2.x HOT 4
- Can't finish provision after pull latest version HOT 5
- Cannot install new Homestead box on windows 11 Pro HOT 2
- Creating databases for influxdb was not updated, thus failing provision execution HOT 3
- NGINX not the right permissions for creating SSL certificates.
- Constraint Issues with laravel/homestead HOT 12
- Uninstalled packages in php8.3.sh file HOT 1
- Vagrant up hangs HOT 17
- Version constraint error HOT 10
- Incompatible configuration requested HOT 1
- Problem installing using composer due to symfony/yaml dependency HOT 3
- vagrant provision crashes in the middle of many Sites (vhosts) because Apache can't bind to port 80
- PHP 8.2 FPM not starting at boot in Homestead v15 HOT 2
- I got this bug while executing MAKE command: HOT 1
- vagrant nginx site config can not create
- npm / node not working on latest Homestead with Virtualbox HOT 1
- WSL Rework Discussion HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homestead.