为了django项目,我尝试在ubuntu16.04上安装mysql。安装时遇到了一些现有文件的问题,因此出现了以下错误:
mysql-server is already the newest version (5.7.19-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is
MySQL服务器在我安装Drupal (上一个版本)时停止工作。然后我重新安装了MySQL服务器,但没有成功。它没能启动。
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.s
我已经从http://dev.mysql.com/downloads/mysql/下载了通用的Linux64位Ubuntu5.6.17 TAR存档,并按照http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html的说明安装在我的64位Ubuntu14.04上。
我在服务器上有一些问题,所以我想卸载并重新安装。但是,如果我尝试通常的apt-get remove mysql-server(按照如何卸载Mysql?),我会得到:
Package 'mysql-server' is not installed, so
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libmysqlclient21 : Depends: mysql-common (>= 8.0.32-1ubuntu20.04) but 5.8+1.0.5ubuntu2 is installed
Depends: mysql-community-client-plugins (= 8.0.32-1ub
无法重新安装mysql-service
root@xxx:~# apt-get install mysql-server -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mysql-server-5.5
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
我运行了sudo apt-get install mysql-client,它安装正确。然后我运行mysql_config_editor print,我得到了 mysql_config_editor: not found mysql_config_editor不会像我期望的那样出现在/usr/bin中,也不会像我在另一台机器上那样显示。 在它工作的机器上,mysql --version显示 mysql Ver 8.0.21-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu)) 在无法工作的机器上,mysql --version显示 mysql V
Mysql工作得完美无缺。但是,这些被阻止的数据包已经与apt包管理器搞混了。
The following packages have been kept back:
mysql-client mysql-server 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Mysql "apt-cache策略mysql-client mysql-server“应@popey的请求
apt-cache policy mysql-client mysql-server
mysq
bhoopathi@it-Latitude-3510:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
mysql-server-core-8.0
The following NEW packages will be
我正在新的Ubuntu18.04虚拟机上设置Ubuntu8.0,但是我无法将变量lower_case_table_names设置为1。我尝试像以前版本一样更改/etc/ mysql /mysql.conf.d/mysqld.cnf mysqld,但没有成功,无法重新启动mysql服务。这必须是特定于8.0,因为我能够在以前的版本中设置它。
当我试图通过这个命令在ubuntu14.04上安装mysql时,我会得到这个错误。帮助我的简单和详细的解决方案,因为我是新的ubuntu。
sudo apt-get install mysql-server
Error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible si
我正试图将我的一个项目从另一个VPS移到另一个VPS上,我想我已经把SQL数据库搞砸了。我相当肯定这个问题已经开始了,因为我的VPS上有多个MySQL实例,但是我在删除所有文件时遇到了问题。
因此,首先,我尝试登录到MySQL。
root@fileserver:~# mysql --user=root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
由于我的数据库中没有很多
嗨,我最近在Ubuntu-22.04中启动mysql时遇到了一些问题。当我尝试sudo service mysql start时,会弹出一个错误:
Failed to start mysql.service: Unit mysql.service failed to load properly, please adjust/correct and reload service manager: File exists
See system logs and 'systemctl status mysql.service' for details.
我也尝试过一些来自堆栈溢出和其
使用mariaDB作为支持数据库,创建了一个VPS来处理多个wordpress站点。在为站点统计安装matomo的过程中,整个mysql区域(考虑到mariadb和mysql名称的使用之间的混淆,我不知道如何称呼它)被扭曲了,显然超出了使用范围。
mysql -h 127.0.0.1 -P 3306 -u root -p firstdb
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (61)
变体
Can't connect to local MySQL server throu
(我只是从ubuntu 18.04移动到Ubuntu 20.04。)
我不懂的
下面解释了我如何解决问题和细节的过程,但我真的不明白其中所写的部分
php7.4-mysql : Depends: php7.4-common (= 7.4.3-4ubuntu2.2) but 7.4.9-1+ubuntu18.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
我可以理解包php7.4-mysql依赖于on php7.4-common (它已经安装好
我的MySQL服务器刚刚在ESXi服务器重新启动后停止工作.它不会自动启动,我也不能从Unix启动它。
~# service mysql restart
restart: Unknown instance:
~# sudo service mysql start
start: Job failed to start
~# sudo -u mysql mysqld
~#
~# netstat -tap | grep mysql
~#
~# service mysql restart
restart: Unknown instance:
/var/log/ : mysql.err和mysql
我尝试在Ubuntu14.4服务器上安装MySQL,并在网上提供了许多指南。但是,在MySQL安装过程中,所有方法都遇到了这个问题:
Setting up libdbd-mysql-perl (4.025-1) ...
Setting up mysql-client-5.6 (5.6.31-0ubuntu0.14.04.2) ...
Setting up mysql-server-5.6 (5.6.31-0ubuntu0.14.04.2) ...
2016-08-28 10:45:19 0 [Warning] TIMESTAMP with implicit DEFAULT value is d
当我安装mysql-server时,会得到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages hav
昨天我下载了新的ubuntu20版本,长话短说,它毁了我的mysql和php安装;我已经修复了一些错误,但是看起来ubuntu将我从php 7.4.3升级到7.4.5,现在我的mysql_pdo驱动程序坏了,我想我需要安装php7.4-gd才能让驱动程序正常工作,但我不能这样做,因为它与php 7.4.5不兼容。
sudo apt-get install php7.4-gd
php7.4-gd : Depends: php7.4-common (= 7.4.3-4ubuntu1) but 7.4.5-1+ubuntu19.10.1+deb.sury.org+1 is to be instal
我在Ubuntu 17.04。
长话短说,在与MariaDB搏斗了一段时间之后,我遵循了一些关于如何从我的主服务器上完全删除MySQL和MariaDB的有问题的建议。现在我无法重新安装mysql-server。当我尝试时,我得到了这个错误:
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, b
如何在UbuntuMinimum12.04中安装MySQL?
当我尝试apt-get install mysql-server (作为root用户)时,即使在新安装apt-get update和apt-get upgrade之后,我也会收到以下消息:
# Setting up mysql-server-5.5 (5.5.37-0ubuntu0.14.04.1) ...
# /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
# ATTENTION: An error has occu
我试图在我的Ubuntu上安装MySQL,但是得到了以下错误。我尝试了一些可以在这个网站和互联网上找到的解决方案,但似乎都没有效果。
$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (5.7.24-0ubuntu0.18.04.1).
0 upgraded, 0 newly installed,
今天,我尝试将ubuntu从18.04LTS升级到20.04LTS。用do-release-uprade
升级完成后,我尝试用service mysql start启动mysql。
结果是
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
最近,我尝试使用Ubuntu20.04在我的计算机上安装mysql-server-8.0软件包。我有一些问题,并决定完全取消和重新安装mysql再次。
因此,如果我试图通过sudo apt-get remove mysql-server-8.0卸载它,我将得到以下输出:
sudo apt-get remove mysql-server-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were aut