$sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
y luego instalarlo
$yum -y install mysql mysql-server
Enable the MySQL service:
$sudo
/sbin/chkconfig mysqld on
Start the MySQL server:
$sudo
/sbin/service mysqld start
afterwards set the MySQL root password:
$mysqladmin -u root password 'new-password'
Algunos comandos:
>mysql -u root -p
... ingresar...password
>show databases;
>create database mydatabase;
>quit or >exit
sitios visitados:
https://www.digitalocean.com/community/questions/can-t-install-mysql-on-centos-7
http://stackoverflow.com/questions/5376427/cant-connect-to-local-mysql-server-through-socket-var-mysql-mysql-sock-38
No hay comentarios.:
Publicar un comentario