好吧,我有Manjaro/Linux 17.0,我尝试安装MariaDB,但总是得到相同的错误: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory") 我不知道该怎么办,我已经搜索了上千个论坛,我不能启动mariadb的守护进程系统控制,我试着做一个触摸在/run/mysqld/mysqld.sock但是,当我尝试启动MariaDB时,它拒绝了我的连接
我已经在linux服务器上安装了xampp。但是在命令提示符的连接过程中,我得到了下面的错误。请帮我修复这个错误。
linux-pott:/opt/lampp/var/mysql # mysqladmin -u root -p status
Enter password:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket'/var/run/mysql/mysql.sock'
我正在尝试使用以下方法安装MySQL:
sudo apt install mysql-server
在这个过程的最后,我得到了以下信息:
E: Sub-process /usr/bin/dpkg returned an error code (1)
整个投入/产出:
ubuntu@ubuntu:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages
使用以下命令在带有raspbian (armv71 =32位)的raspberry pi 3上安装sql数据库: ./configure --with-mysql --with-mysql-libraries=/usr/lib/i386-linux-gnu 我得到一个错误: **********************************************
ERROR: unable to find mysqlclient library (libmysqlclient.*)
checked in the following places
/usr/lib/
我一直在尝试使用WSL安装mysql,并遵循了本指南中指出的步骤。我尝试运行mysql --version,它起作用了(提示mysql Ver 8.0.23 for Linux on x86_64 (MySQL Community Server - GPL))。但是当我尝试下一个命令sudo /etc/init.d/mysql start时,它显示为sudo: /etc/init.d/mysql: command not found。我也试过检查/etc/init.d/目录的内容,那里没有现有的mysql文件/文件夹。下一步我应该怎么做才能继续安装mysql?
谢谢!
我尝试使用以下过程安装mysql 5.6.12
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-b
我正在用fedora安装xampp,启动它会引发一个错误,任何人都能知道它为什么会出现吗?
[root@localhost naveen]# sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.7...
XAMPP: Another web server daemon is already running.
XAMPP: Starting MySQL...
/opt/lampp/bin/mysql.server: /opt/lampp/bin/my_print_defaults: /lib/ld-linux.so.2: bad EL
安装的CentOS 7新鲜
# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
yum -y install mariadb-server mariadb
# mysql -V
mysql Ver 15.1 Distrib 5.5.52-MariaDB, for Linux (x86_64) using readline 5.1
/usr/bin/mysql_secure_installation
Enter current password for root (enter for none):
ERROR