Anda di halaman 1dari 1

C:\Documents and Settings\Administrador\Escritorio\ADM-MYSQL.

txt

Martes, 13 de Septiembre de 2011 06:00 p.m.

chkconfig httpd on chkconfig mysqld on chkconfig --level 2345 httpd off chkconfig --level 2345 httpd on echo Alias /phpMyAdmin /usr/share/phpmyadmin >> /etc/httpd/conf.d/phpmyadmin.conf echo "Alias /php /var/www/html/afranco" >> /etc/httpd/conf.d/phpmyadmin.conf Descomprimir: cp config.sample.inc.php config.inc.php $cfg['blowfish_secret'] = 'TypeAnything_for_Secure'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ mysql_secure_installation --> Cambio de Clave GRANT ALL PRIVILEGES ON *.* TO 'afranco'@'%' IDENTIFIED BY '1q2w3e' WITH GRANT OPTION; grant all privileges on roundcubemail.* to afranco@'%' identified by '1q2w3e' with grant option; grant all privileges on *.* to afranco@'localhost' identified by '1q2w3e' with grant option; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON database1.* TO 'prueba'@'%' IDENTIFIED BY '1q2w3e'; tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 5080/mysqld

Administracion de Mysql - Server Conexion a otro host= --> mysql -u afranco -p -h 192.168.1.105 --> mysql -u root -p -h localhost base_datos mysql> status; mysql> quit ; mysql> CREATE DATABASE Database2; mysql> CREATE DATABASE IF NOT EXISTS Database2; mysql> show databases; mysql> use Database2; mysql> show tables; mysql> create table prueba1 (id_prueba int , mail int ); mysql> describe prueba1; mysql> insert into prueba1 (mail) values (3); mysql> insert into prueba1 (id_prueba) values (3); mysql> insert into prueba1 (id_prueba,mail) values (3,5); mysql> select * from prueba1; mysqldump -u root -p Database2 > Database2.sql mysql -u root -p Posfix < Postfix.sql mysqldump --opt -u root -p Database2 prueba1 > prueba1.sql

-1-

Anda mungkin juga menyukai