# INFO url : jdbc:mysql://localhost:3306/Bible user: gwt-examples pass: password # create database and user mysql -u root -p create database Bible; CREATE USER 'gwt-examples' IDENTIFIED BY 'password'; grant all on Bible.* to 'gwt-examples'@'%' identified by "password"; #grant all on Bible.* to 'gwt-examples'@'192.168.1.10' identified by "password"; #grant all on Bible.* to 'gwt-examples'@'localhost' identified by "password"; commit; quit; # get gwt examples cd ${HOME} svn checkout http://gwt-examples.googlecode.com/svn/trunk/ gwt-examples # fill database wget http://ken
#!/bin/bash sudo apt-get -y install mysql-server # auto preconfigure password
# install on 32 bit wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add - cat <<EOF> /etc/apt/sources.list.d/oracle.list deb http://oss.oracle.com/debian unstable main non-free EOF apt-get update apt-get install oracle-xe # install on 64bit wget http://oss.oracle.com/debian/dists/unstable/main/binary-i386/libaio_0.3.104-1_i386.deb -P /tmp wget http://oss.oracle.com/debian/dists/unstable/non-free/binary-i386/oracle-xe_10.2.0.1-1.1_i386.deb -P /tmp sudo apt-get install bc sudo dpkg -i --force-architecture /tmp/libaio_0.3.104-1_i386.deb sudo dpkg -i --force
BEGIN DBMS_SCHEDULER.create_job ( job_name => 'update_snapshots', job_type => 'STORED_PROCEDURE', job_action => 'UPDATE_SNAPSHOT', start_date => SYSTIMESTAMP, repeat_interval => 'freq=hourly; byminute=5', end_date => NULL, enabled => TRUE ); END -- 10xe DBMS_SCHEDULER.create_job ( job_name => 'update_invoice_positions', job_type => 'PLSQL_BLOCK', job_action => 'K.INVOICE;', start_date => SYSTIMESTAMP, repeat_interval => 'freq=hourly; byminute=0', end_date
SET pagesize 50000 SET linesize 240 SET echo off column job format 9999 heading 'Job' justify right column schema_user format a20 heading 'Oracle User' justify left column broken format a6 heading 'Broken' justify left column last_date format a20 heading 'Last Date' justify left column this_date format a20 heading 'This Date' justify left column next_date format a20 heading 'Next Date' justify left column INTERVAL format a60 heading 'Interval' justify left column what format a80 heading 'What'
SET echo off; clear screen; PROMPT PROMPT COLLECTING USER INFORMATION PROMPT ACCEPT database_sid CHAR PROMPT 'DATABASE TO CONNECT TO [ORCL]: ' DEFAULT ORCL ACCEPT mhsys_password CHAR PROMPT 'PASSWORD FOR USER MHSYS [MHSYS]: ' DEFAULT MHSYS HIDE PROMPT prompt CONNECTING USER MHSYS CONNECT MHSYS/&mhsys_password@&database_sid; SET serveroutput ON; SET linesize 100; spool job_set_ndxsys.LOG; prompt SHOWING JOBS SELECT JOB, SCHEMA_USER, TO_CHAR(NEXT_DATE, 'DD-MON-YYYY, HH24:MI') NEXT_DATE, INTERVAL, WHAT FROM dba_jobs ORDER BY job; p
SET serveroutput ON; SET linesize 100; SET echo ON; spool job_remove.LOG; SELECT JOB, SCHEMA_USER, BROKEN, WHAT FROM dba_jobs; EXECUTE DBMS_JOB.REMOVE(&job_number_to_remove) COMMIT; SELECT JOB, SCHEMA_USER, BROKEN, WHAT FROM dba_jobs; spool off;
-- select 10 random row from table SELECT column FROM TABLE ORDER BY rand() limit 10 -- view all databases show databases; -- view tables from database show tables FROM mysql; -- timestamp 7 days ago date_sub(curdate(), INTERVAL 7 DAY);
LINK=http://ovh.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.0-rc1/phpMyAdmin-3.3.0-rc1-all-languages.tar.bz2 # download wget $LINK -P /tmp # extract tar -xjf /tmp/phpMyAdmin-*.tar.bz2 -C /var/www # rename dir mv /var/www/phpMyAdmin-*/ /var/www/phpMyAdmin/ # acces phpMyAdmin on server http://YOUR_SERVER/phpMyAdmin # # OPTIONALY # # configure cd phpMyAdmin cp config.sample.inc.php config.inc.php vi config.inc.php $cfg['blowfish_secret'] = 'terceS'; # configure user and db $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'YOUR_DB
#!/bin/bash # ToDo # use a repository # configure global # go to oracle homepage # http://www.oracle.com/technology/software/products/sql/index.html # accept the licence # download "Oracle SQL Developer for other platforms" # change to directory where you saved the sqldeveloper file cd sudo unzip ./Desktop/sqldeveloper-*-no-jre.zip -d /usr/share/ sudo chmod +x /usr/share/sqldeveloper/sqldeveloper.sh rm ./Desktop/sqldeveloper-*-no-jre.zip sudo su cat <<EOF> "/usr/share/applications/Oracle SQL Developer.desktop" [Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Applicati
Login
mysql -u root -p
Links
phpMyAdmin - phpMyAdmin downloads
Allow access from outsice
/etc/init.d/mysql restart
#bind-address = 127.0.0.1
bind-address = 101.102.103.104
# or comment bind-address
Links
http://www.greensql.net/ - open source database firewall for MySQL and PostgreSQL
http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-dat...
Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!