mysql -u root -p -h localhost nombre_bd < script.sql
y otra
cat script.sql | mysql -u root -p -h localhost
mysql -u root -p -h localhost nombre_bd < script.sql
cat script.sql | mysql -u root -p -h localhost
from distutils.sysconfig import get_python_lib;print get_python_lib()
/usr/lib/python2.6/dist-packages
/usr/local/lib/python2.6/dist-packages
o
/usr/lib/pymodules/python2.6/django
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os, django
>>> sys.modules['django']
module 'django' from '/usr/local/lib/python2.6/dist-packages/django/__init__.pyc'
syntax on
set number
set expandtab
set tabstop=4
set shiftwidth=4
set nowrap
set foldmethod=marker
set smartindent
set mouse=a
set foldmethod=indent
set foldlevel=99
autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys. stderr=sys.stdout;\ py_compile.compile(r'%')\"
autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z %[%^\ ]%\\@=%m
autocmd BufRead *.py nmap :!python %
map ^T :Texplore <CR>