No hay mysqld en /etc/init.d después de instalar Mysql, uso yum

No hay mysqld en /etc/init.d después de instalar Mysql, uso yum

Yo uso el siguiente orden:

[root@localhost /]# yum install -y mysql mysql-server mysql-devel

instalar mysql.

Después de instalarlo, quiero iniciar MySQL de la siguiente manera:

[root@localhost /]# /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: there is no file or directory

Pero ya ves, no puedo empezar de esta manera.

Entonces, uso:

find / -name mysqld 

para encontrar mysqld, obtengo:

[root@localhost /]# find / -name mysqld 
/usr/libexec/mysqld

Entonces, uso el:

/usr/libexec/mysqld start 

para iniciar mysql, pero aparece el error:

[root@localhost /]# /usr/libexec/mysqld start   
2017-05-19 14:28:17 139762539387072 [Warning] option 'open_files_limit': unsigned value 18446744073709551615 adjusted to 4294967295  
2017-05-19 14:28:17 139762539387072 [Note] /usr/libexec/mysqld (mysqld 10.1.20-MariaDB) starting as process 82223 ...  
2017-05-19 14:28:17 139762539387072 [Warning] Could not increase number of max_open_files to more than 1024 (request: 5035)  
2017-05-19 14:28:17 139762539387072 [ERROR] WSREP: rsync SST method requires wsrep_cluster_address to be configured on startup.  

Y quédate atrapado aquí.

Alguien sabe como solucionarlo?

Respuesta1

En CentOS 7 usarías el siguiente comando.

$ sudo systemctl start mysqld

Y si desea que mysqld se inicie automáticamente al arrancar, puede hacerlo

$ sudo systemctl enable mysqld

Editar: ¿Está seguro de que instaló MySQL y no está intentando instalar MariaDB? Creo que MariaDB es el motor de base de datos predeterminado para CentOS. Puedes comprobar que realmente se instaló con

$ rpm -q mysqld

De lo contrario, recomendaría seguir las instrucciones.aquí

información relacionada