昨天它随机坏了(不再启动了),我不知道怎么解决它。
当我跑步时:
sudo service mysql start
它给出了这个错误:
Job for mysql.service failed because the control process exited with error
code. See "systemctl status mysql.service" and "journalctl -xe" for details.
systemctl status mysql.service的输出:
● mysql.service - MySQL Comm
我的服务器在试图安装apc时出现故障。/var/log/syslog sais:
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23765]: Upgrading MySQL tables if necessary.
Aug 20 01:16:00 vps29386 /etc/mysql/debian-start[23768]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Aug 20 01:16:00 vps29386 /etc/mysql
一切都很好,所有的电子邮件都已经发送了。
但在最近几天,电子邮件停止工作,两次。我只重新启动了服务器,它又开始工作了,但我认为,在这里的某个地方是更好的解决方案。
错误:
Oct 11 08:39:02 vps0241 postfix/smtp[18996]: warning: 8E39925410: flush service failure
Oct 11 08:44:25 vps0241 postfix/smtp[19987]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on
使用MariaDB 5.5.36。在尝试启动MariaDB时,我得到了以下内容:
# syslog
Dec 14 09:40:52 vps1497 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Dec 14 09:40:52 vps1497 mysqld: 141214 9:40:52 [ERROR] mysqld: File '/var/log/mysql/mariadb-bin.index' not found (Errcode: 13)
Dec 14 09:40:52 vps
我的网站输出以下错误:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
我尝试了很多我在网上找到的解决方案,但都没有奏效。
# service mysql status
Nov 08 07:51:00 vps412690.ovh.net mysql[14525]: /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full...iled!
Nov 08 07:5
当我检查/etc/mysql/my.cnf文件时,它没有绑定地址。当我放置绑定地址时,它不会因为出现错误而重新启动进程。 当我尝试命令mysql时,我得到的结果是: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@vps687459:~# 当我尝试重新启动该服务时,它会显示以下信息: Sep 02 13:14:34 vps687459 systemd[1]: mysql.service: Contr
在Bundler中有以下代码:
group :production do
gem 'pg'
gem 'mysql2'
end
如您所见,我只在生产中使用mysql2。现在我正在本地机器上开发我的应用程序,但是我得到了以下错误:
Could not find mysql2-0.3.15 in any of the sources
Run `bundle install` to install missing gems.
但我不想这样做,我只需要生产宝石在生产VPS。我怎么才能修好它?谢谢。
在开发web应用程序时,我使用和XAMPP (用Laravel)。此外,我还使用Git进行版本控制。当我完成一个项目时,我将不得不在VPS (LAMP)上部署它。该怎么做呢?现在,我想到了两个想法:
SFTP -例如,我会使用MobaXterm的图形SFTP浏览器,我只需复制我的项目(文件).然后导入MySQL数据库(或运行迁移)。
Git /GitHub -在我的VPS上,我会安装Git,然后我会:
- create a remote repository on GitHub (should it be private?)
- **git push** (from lo
我遵循关于VPS (https://www.vultr.com/docs/how-to-install-apache-mysql-and-php-on-ubuntu-16-04)上安装灯堆栈的指导。当试图在引导时启用mysql时,我得到了一个错误。
# sudo systemctl enable mysql.service
Synchronizing state of mysql.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sy