r8 / vagrant-lamp

My default LAMP development stack for Vagrant
http://r8.github.io/vagrant-lamp/
753 stars 255 forks source link

Mysql Pass is not vagrant #121

Closed blueShadow closed 9 years ago

blueShadow commented 9 years ago

The password for mysql is not set. Need's to be configured manually if you want to manage all databases with phpmyadmin. In the console after you type vagrant up: vagrant ssh sudo su Log in to mysql: mysql -uroot inside mysql: FLUSH PRIVILEGES; SET PASSWORD FOR root@'localhost' = PASSWORD('vagrant'); Exit mysql console: exit; Back to the file system: /etc/init.d/mysql stop /etc/init.d/mysql start