Ciao ragazzi,
questa mattina ho installato xampp (lampp) su opt/ solo che poco dopo mi sono trovato con la configurazione che utilizzavo per i server locali scomposta la quale non riesco più ad allineare.
Nel senso che se eseguo il comando:
[root@localhost ~]# service mysql start
Redirecting to /bin/systemctl start mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory.
[root@localhost ~]# service mysql start
Redirecting to /bin/systemctl start mysql.service
Failed to issue method call: Unit mysql.service failed to load: No such file or directory.
[root@localhost ~]# systemctl status mysql.service
mysql.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@localhost ~]# ps -ef |grep mysql
root 12689 1 0 11:18 ? 00:00:00 /bin/sh /opt/lampp/bin/mysqld_safe --datadir=/opt/lampp/var/mysql --pid-file=/opt/lampp/var/mysql/localhost.localdomain.pid
nobody 12731 12689 0 11:18 ? 00:00:00 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --user=nobody --pid-file=/opt/lampp/var/mysql/localhost.localdomain.pid --skip-locking --port=0 --socket=/opt/lampp/var/mysql/mysql.sock
root 18607 18551 0 12:40 pts/1 00:00:00 grep --color=auto mysql
[root@localhost ~]# systemctl enable mysqld.service
[root@localhost ~]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
Inserisco il file my.cnf:
[code][mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
Settings user and group are ignored when systemd is used.
If you need to run mysqld under a different user or group,
customize your systemd unit file for mysqld/mariadb according to the
instructions in http://fedoraproject.org/wiki/Systemd
Currently, there are mariadb and community-mysql packages in Fedora.
This particular config file is included in respective RPMs of both of them,
so the following settings are general and will be also used by both of them.
Otherwise the RPMs would be in conflict.
Settings for particular implementations like MariaDB are then
defined in appropriate sections; for MariaDB server in [mariadb] section in
/etc/my.cnf.d/server.cnf (part of mariadb-server).
It doesn’t matter that we set these settings only for [mysqld] here,
because they will be read and used in mysqld_safe as well.
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[mysqld_safe]
include all files from the config directory
!includedir /etc/my.cnf.d[/code]
Mentre mariadb-server l’ho disinstallata credendo di fare meglio. Invece
Cosa posso fare?
Grazie,
Simone