TL; DR;
Passwords 123
how to get there:
After I unscrewed VM from this window, I logged in and checked several files from mysql conf, and especially the file /etc/mysql/debian.cnf
[12:41 ]-[vagrant@symfony]-[/etc/mysql]
$ sudo more debian.cnf
[client]
host = localhost
user = debian-sys-maint
password = 7WpHbEJmn1MxcfD9
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = 7WpHbEJmn1MxcfD9
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
so that I can connect using the user from this file
[12:41 ]-[vagrant@symfony]-[/etc/mysql]
$ mysql -u debian-sys-maint -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 17
....
I checked the user in an already created table
mysql> SELECT User, Host, Password FROM mysql.user;
+------------------+-------------+-------------------------------------------+
| User | Host | Password |
+------------------+-------------+-------------------------------------------+
| root | localhost | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
| root | symfony.dev | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
| root | 127.0.0.1 | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
| root | ::1 | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
| debian-sys-maint | localhost | *8275381EF253977AC1CD84B53CAFE742E4288272 |
| phpmyadmin | localhost | *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
+------------------+-------------+-------------------------------------------+
6 rows in set (0,00 sec)
so that they all contain the same password .. ring the bell, checking
mysql> select password ('123');
+-------------------------------------------+
| password ('123') |
+-------------------------------------------+
| *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 |
+-------------------------------------------+
1 row in set (0,00 sec)
source
share