-> Definindo senha root mysql
#mysql -D mysql -u root -p
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 34
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> update user set Password=PASSWORD('senhaRootAqui') where User='root';
mysql> flush privileges;
mysql> quit;
-> Criando tabela.
mysql> create table aluno (
serie varchar(40),
nome varchar(50),
teste vachar(255)
);
-> Adicionando colunas na tabela.
mysql> alter table aluno add idade int(3) ;
-> Deletando coluna "teste" da tabela aluno,
mysql> alter table aluno drop teste;
-> Apagando Registros
mysql> delete from aluno where serie="2";
-> Adicionando configuração á um campo da table:
alter table aluno add primary key(serie) ;
-> Removendo chaves primaria da tabela:
alter table aluno drop index serie;
-> Adicionando uma coluna no primeiro campo da tabela:
alter table aluno add id int(11) not null fist;
-> Adicionando uma coluna apos uma que você queira:
alter table aluno add teste2 varchar(33) not null after serie;
sábado, 18 de abril de 2009
quinta-feira, 9 de abril de 2009
Sigma
http://www.sigma-six.org/
unzip sigma.zip
mysql -u sigma -p sigma < type="mysql">
installation:
unzip sigma.zip
mysql -u sigma -p sigma < type="mysql">
-copy all files to your web host
-use phpmyadmin or your mysql interface to run site.sql against your database.
-open site.xml and edit the database section with your database details.
-set permissions on the upload directory to allow write/delete -go to index.php and login with username of admin with a password of test.
-be sure to change the passwords for the admin and regular user.
Add this to your htaccess file to prevent viewing of the xml config file.
Gerenciamento de IP's
Mantenha uma base informações de ips de sua rede pronta quando precisar. Não fique pergundo o ip de seu cliente !
Utilize o phpip !
Em http://www.phpip.net/download.php, baixe o pacote:
phpip-4.3.2-build-200611081420.tar.gz
Depois:
# tar -zxvf phpip-4.3.2-build-200611081420.tar.gz -C /var/www
# mv phpip-4.3.2-build-200611081420/ /var/www/phpip
Crie a base de dados, e usuário do sistema phpip:
# mysql -u root -p -e "create database phpip"
# mysq -u root -p -e "grant all privileges on phpip_management.* to phpip@localhost identified by 'phpip'";
Depois acesse no navegador de internet:
http://seuip/phpip
Ira aparecer um console de instalação é bem simples ! Você ira sacar !
Depois de configurado é só acessar novamente o http://seuip/phpip !
Agora coloque a casa em ordem !!
Acesse o link abaixo, para aprender mais:
http://www.phpip.net/documentation.php

Abs.
Mais informações:
http://www.debianhelp.co.uk
http://www.phpip.net
Utilize o phpip !
Em http://www.phpip.net/download.php, baixe o pacote:
phpip-4.3.2-build-200611081420.tar.gz
Depois:
# tar -zxvf phpip-4.3.2-build-200611081420.tar.gz -C /var/www
# mv phpip-4.3.2-build-200611081420/ /var/www/phpip
Crie a base de dados, e usuário do sistema phpip:
# mysql -u root -p -e "create database phpip"
# mysq -u root -p -e "grant all privileges on phpip_management.* to phpip@localhost identified by 'phpip'";
Depois acesse no navegador de internet:
http://seuip/phpip
Ira aparecer um console de instalação é bem simples ! Você ira sacar !
Depois de configurado é só acessar novamente o http://seuip/phpip !
Agora coloque a casa em ordem !!
Acesse o link abaixo, para aprender mais:
http://www.phpip.net/documentation.php

Abs.
Mais informações:
http://www.debianhelp.co.uk
http://www.phpip.net
Assinar:
Postagens (Atom)