无业游民提供期间mysqld.sock错误

时间:2018-11-17 08:17:41

标签: mysql vagrant virtualbox

我正在尝试运行vagrant provision并继续遇到以下错误:

==> default: Warning: The function 'hiera_include' is deprecated in favor of using 'lookup'. See https://docs.puppet.com/puppet/4.10/reference/deprecated_language.html
==> default:    (file & line not available)
==> default: Warning: /etc/puppetlabs/code/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
==> default:    (in /etc/puppetlabs/code/hiera.yaml)
==> default: Info: Scope(Class[Global]): Found environment vagrant
==> default: Info: Scope(Class[Global]): Found hostname
==> default: Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://docs.puppet.com/puppet/4.10/reference/deprecated_language.html
==> default:    (file & line not available)
==> default: Warning: The function 'hiera_hash' is deprecated in favor of using 'lookup'. See https://docs.puppet.com/puppet/4.10/reference/deprecated_language.html
==> default:    (file & line not available)
==> default: Info: Scope(Class[Nginx]): Current hostname is a host; configuring nginx with gzip ON
==> default: Info: Scope(Class[Cron_jobs]): Current hostname is not a cron-enabled host; not installing crons
==> default: Notice: Compiled catalog in environment vagrant in 1.73 seconds
==> default: Warning: /Apt_key[Add key: 68576280 from Apt::Source nodesource]: The id should be a full fingerprint (40 characters), see README.
==> default: Info: Applying configuration version '1542386491'
==> default: Notice: /Stage[main]/Mysql::Server::Root_password/Exec[remove install pass]: Dependency Exec[wait_for_mysql_socket_to_open] has failures: true

==> default: Notice: /Stage[main]/Mysql::Server::Root_password/Exec[remove install pass]: Dependency Exec[wait_for_mysql_socket_to_open] has failures: true
==> default: Error: 'test -S /var/run/mysqld/mysqld.sock' returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Mysql::Server::Service/Exec[wait_for_mysql_socket_to_open]/returns: change from notrun to 0 failed: 'test -S /var/run/mysqld/mysqld.sock' returned 1 instead of one of [0]
==> default: Warning: /Stage[main]/Mysql::Server::Root_password/Exec[remove install pass]: Skipping because of failed dependencies
==> default: Error: Failed to apply catalog: Execution of '/usr/bin/mysql --defaults-extra-file=/root/.my.cnf -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

这是在Mac OSX High Sierra上,用于Rails环境。

每当我尝试安装和使用Vagrant时,mysql一直是失败的关键。我四处搜寻,但尚未遇到任何解决此问题的方法。我试图单独安装mysql,但没有用。

0 个答案:

没有答案