Comment 11 for bug 1735097

Revision history for this message
Tobias Brox (c-tobias) wrote :

Sorry for not gzipping the output log.

I do see mysql-server-5.7 being installed, early on. Then it seems like the last lines of the log is most relevant:

+ ./stack.sh:main:1011 : is_service_enabled mysql postgresql
+ functions-common:is_service_enabled:1881 : local xtrace
++ functions-common:is_service_enabled:1882 : set +o
++ functions-common:is_service_enabled:1882 : grep xtrace
+ functions-common:is_service_enabled:1882 : xtrace='set -o xtrace'
+ functions-common:is_service_enabled:1883 : set +o xtrace
+ functions-common:is_service_enabled:1911 : return 0
+ ./stack.sh:main:1012 : configure_database
+ lib/database:configure_database:128 : configure_database_mysql
+ lib/databases/mysql:configure_database_mysql:61 : local my_conf mysql slow_log
+ lib/databases/mysql:configure_database_mysql:62 : echo_summary 'Configuring and starting MySQL'
+ ./stack.sh:echo_summary:434 : [[ -t 3 ]]
+ ./stack.sh:echo_summary:440 : echo -e Configuring and starting MySQL
2018-03-19 13:36:14.499 | Configuring and starting MySQL
+ lib/databases/mysql:configure_database_mysql:64 : is_ubuntu
+ functions-common:is_ubuntu:465 : [[ -z deb ]]
+ functions-common:is_ubuntu:468 : '[' deb = deb ']'
+ lib/databases/mysql:configure_database_mysql:65 : my_conf=/etc/mysql/my.cnf
+ lib/databases/mysql:configure_database_mysql:79 : is_fedora
+ functions-common:is_fedora:438 : [[ -z Ubuntu ]]
+ functions-common:is_fedora:442 : '[' Ubuntu = Fedora ']'
+ functions-common:is_fedora:442 : '[' Ubuntu = 'Red Hat' ']'
+ functions-common:is_fedora:443 : '[' Ubuntu = RedHatEnterpriseServer ']'
+ functions-common:is_fedora:444 : '[' Ubuntu = CentOS ']'
+ functions-common:is_fedora:444 : '[' Ubuntu = OracleServer ']'
+ functions-common:is_fedora:445 : '[' Ubuntu = Virtuozzo ']'
+ lib/databases/mysql:configure_database_mysql:79 : is_suse
+ functions-common:is_suse:453 : [[ -z Ubuntu ]]
+ functions-common:is_suse:457 : [[ Ubuntu =~ (openSUSE) ]]
+ functions-common:is_suse:457 : [[ Ubuntu == \S\U\S\E\ \L\I\N\U\X ]]
+ lib/databases/mysql:configure_database_mysql:87 : sudo mysqladmin -u root password password
^Gmysqladmin: connect to server at '127.0.0.1' failed
error: 'Can't connect to MySQL server on '127.0.0.1' (111)'
Check that mysqld is running on 127.0.0.1 and that the port is 3306.
You can check this by doing 'telnet 127.0.0.1 3306'
+ lib/databases/mysql:configure_database_mysql:87 : true
+ lib/databases/mysql:configure_database_mysql:90 : sudo mysql -uroot -ppassword -h127.0.0.1 -e 'GRANT ALL PRIVILEGES ON *.* TO '\''root'\''@'\''%'\'' identified by '\''password'\'';'
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
+ lib/databases/mysql:configure_database_mysql:1 : exit_trap