Portál AbcLinuxu, 9. června 2025 04:10
# netstat -npl|grep mysql
unix 2 [ ACC ] STREAM LISTENING 18133452 24747/mariadbd /var/lib/mysql/mysql.sock
# ps -edf | grep mysql
mysql 24747 1 4 Oct02 ? 04:14:20 /usr/sbin/mariadbd
root 27766 32472 0 12:19 pts/1 00:00:00 grep --color=auto mysql
# mysql_config --socket
/run/mysql/mysql.sock
# The following options will be passed to all MariaDB clients
[client]
# password = your_password
# port = 3306
# socket = /var/run/mysql/mysql.sock
Řešení dotazu:
Uvedu několik výpisů:Toto je korektne spravanie socketu. ;)# netstat -npl|grep mysql unix 2 [ ACC ] STREAM LISTENING 18133452 24747/mariadbd /var/lib/mysql/mysql.sockTohle by mělo (snad) vrátit jeho skutečné umístění. Ale v adresáři databáze /var/lib/mysql se nachází jen jakýsi prázdný soubor s názvem "=mysql.sock"
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
#
# * Galera-related settings
#
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
#bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0
# this is only for embedded server
[embedded]
# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
# This group is only read by MariaDB-10.5 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.5]
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.