为了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
使用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机器上,我正在尝试安装magento。我已经下载了magento,并完成了准备检查。当我试图创建数据库时,它显示了以下错误:
对不起,我们支持MySQL版本5.6.0或更高版本。
我所做的是在phpmyadmin中创建一个空数据库,即magento。在magento的安装向导中,我添加了以下内容以添加数据库:
Database Server Host:localhost
Database Server Host:root //phpmyadmin username
Database Server Password:password //phpmyamdin
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
如何在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从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
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
我正在新的Ubuntu18.04虚拟机上设置Ubuntu8.0,但是我无法将变量lower_case_table_names设置为1。我尝试像以前版本一样更改/etc/ mysql /mysql.conf.d/mysqld.cnf mysqld,但没有成功,无法重新启动mysql服务。这必须是特定于8.0,因为我能够在以前的版本中设置它。
无法重新安装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:
我正试图将我的一个项目从另一个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)
由于我的数据库中没有很多
我不是Linux的高级用户,我试着用数据库安装工作,所以我安装了Mysql服务器,我想我做错了同样的事情,所以我遇到了麻烦,现在我不能安装任何东西,这是我使用apt-get -f install时得到的:
root@me:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be in
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