摘要: 表结构复制(带数据)create table new select * from old 表结构复制(不带数据)create table new select * from old where 1=2这里给个where条件1=2是为了差不出数据给个空表 表结构复制(like关键字)create ta 阅读全文
posted @ 2018-01-22 23:03 墨.荷 阅读(181) 评论(0) 推荐(0) 编辑
摘要: alter table test change id id int AUTO_INCREMENT; 阅读全文
posted @ 2018-01-22 23:01 墨.荷 阅读(15105) 评论(0) 推荐(1) 编辑
摘要: 修改配置文件etc下的passwd文件 最后一行hpc:x:1000:1000:hpc,,,:/home/hpc:/bin/bash 1 将权限提升为root的权限码0 2 将命令库指向root的命令库hpc:x:0:0:hpc,,,:/root:/bin/bash 阅读全文
posted @ 2018-01-22 22:59 墨.荷 阅读(1284) 评论(0) 推荐(0) 编辑
摘要: vi /etc/profile在最后面添加 export JAVA_HOME=/usr/local/src/jdk1.8.0_121(你的jdk位置)export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarexport PAT 阅读全文
posted @ 2018-01-22 22:50 墨.荷 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 将但前的程序挂载 ctrl + z 1 jobs查看已挂载的程序,不用携带任何参数 jobs2 jobs杀死后台已经禁止的程序 kill %num ps 查看所有进程 kill num杀死后台进程3 fg 将后台停止的进程调至前台继续运行 使用 jobs 查看那些程序停止了 fg %num4 bg 阅读全文
posted @ 2018-01-22 22:46 墨.荷 阅读(9911) 评论(0) 推荐(0) 编辑
摘要: 1. cd 到你的启动目录2. vi start_navicat* 编辑启动脚本3. 将export LANG="en_US.UTF-8"改为export LANG="zh_CN.UTF-8"4.保存退出5. ./start_navicat即可启动了,编码正常 阅读全文
posted @ 2018-01-22 22:38 墨.荷 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 1,3c1,3< 1< 2< 3 > h> p> c 1,3c1,31,3表示第一个文件的1至3行与第二个文件的不相同c后面的(a=add,c=change,d=delete)1,3表示第二个文件的1至3行与第一个文件不相同 阅读全文
posted @ 2018-01-22 22:32 墨.荷 阅读(3923) 评论(0) 推荐(0) 编辑
摘要: 在这个里面的最后面添加你的 命令 /etc/bash.bashrc 语法alias xxx="yyy" xxx 为你自定义的命令yyy 是实际上执行的命令 例如 alias ll="l -sl" ll 实际执行的是l -sl 阅读全文
posted @ 2018-01-22 22:30 墨.荷 阅读(5277) 评论(6) 推荐(2) 编辑
摘要: 1 创建desktop后缀文件 2 添加内容 [Desktop Entry]Name=navicat// 应用名字Exec=/opt/navicat112_mysql_cs_x64/start_navicat // 你要启动sh文件Termina=false // 不是以命令行界面启动Icon=/h 阅读全文
posted @ 2018-01-22 22:24 墨.荷 阅读(428) 评论(0) 推荐(0) 编辑
摘要: http://linux.51yip.com/search/ffmpeg# ffmpeg -y -i "1.avi" -title "Test" -vcodec xvid -s 368x208 -r 29.97 -b 1500 -acodec aac -ac 2 -ar 24000 -ab 128 阅读全文
posted @ 2018-01-22 22:17 墨.荷 阅读(856) 评论(0) 推荐(0) 编辑