martes, 4 de octubre de 2011

Instalar PHP & Mysql en CentOS

Veamos los pasos siguientes:


yum install mysql mysql-server

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start



Obtenemos algo como esto:

Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com/
Support MySQL by buying support/licenses at http://shop.mysql.com/
                                                           [  OK  ]
Starting MySQL:                                            [  OK  ]


mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword



[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>


Listo, ya esta instalado el mysql.

No hay comentarios:

Publicar un comentario