摘要: [root@centos6 data]# mysql --host=192.168.1.107 --protocol=tcp --user=root --passwordEnter password: ERROR 2003 (HY000): Can't connect to MySQL server... 阅读全文
posted @ 2016-01-20 08:03 lawrence.li 阅读(5142) 评论(1) 推荐(2) 编辑
摘要: virtualbox 下的 centos6 空间满了[root@centos6 ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/VolGroup-lv_root ... 阅读全文
posted @ 2016-01-19 16:15 lawrence.li 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1.英文流畅,中文难懂我一直觉得计算机教材太枯燥了,很多术语很拗口难懂,后来找到一本叫《鸟哥linux》的,觉得非常生动,可惜《鸟哥linux》里面的版本比较久,里面的是centos 5.3 ,而我想要安装的是centos 7, 而centos官方没有提供 7 的文档,于是就找到了redhat 的官... 阅读全文
posted @ 2016-01-18 12:23 lawrence.li 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 安装某个软件时出现的错误[root@centos6 yum.repos.d]# yum info vimLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostf... 阅读全文
posted @ 2016-01-16 22:02 lawrence.li 阅读(191) 评论(0) 推荐(0) 编辑
摘要: yum是一种管理软件的工具,好比360软件管家一样,yum会从不同的reposity去搜索你想要下载的软件,然后挑选一个速度最快的来下载[root@centos6 etc]# ls -l yum.repos.dtotal 24-rw-r--r--. 1 root root 1991 Oct 23 ... 阅读全文
posted @ 2016-01-16 21:55 lawrence.li 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 第一步:确保两台服务器能够互相ping通,证明网络是通的第二步:[root@centos7 local]# scp ./mysql-5.5.47-linux2.6-x86_64.tar.gz root@192.168.1.108:/usr/local/The authenticity of host... 阅读全文
posted @ 2016-01-13 21:42 lawrence.li 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 记录 binary log 的风格有3种 1.sql语句模式 2.行模式 3.混合模式 我在MySQL上做了这个操作 mysql> use test; Database changed mysql> select * from t1; Empty set (0.00 sec) mysql> inse 阅读全文
posted @ 2016-01-09 14:27 lawrence.li 阅读(416) 评论(0) 推荐(0) 编辑
摘要: [root@centos7 ~]# cat /root/.bashrc -bash: cat: command not found[root@centos7 ~]# ls-bash: ls: command not found[root@centos7 ~]# 解决过程ls和cat都是linux的工... 阅读全文
posted @ 2016-01-09 11:38 lawrence.li 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: 不管是windows平台,还是linux平台,我们调用一个程序,都要使用绝对路径到达指定目录的,比如我需要调用mysql客户端,我要到安装目录下:/usr/local/mysql/bin/去找到它,如果想要省略掉前面一大串的路径,就需要把这串路径加入到“环境”里面,让整个“环境”可以识别出mysql... 阅读全文
posted @ 2016-01-09 11:18 lawrence.li 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 基础数据mysql> select * from person limit 9;+------+------------+------+--------+| id | first_name | age | gender |+------+------------+------+--------... 阅读全文
posted @ 2016-01-09 09:37 lawrence.li 阅读(829) 评论(0) 推荐(0) 编辑