易截截图软件、单文件、免安装、纯绿色、仅160KB

linux mysql的安装及一些配置方法

1.检查以前安装的MySQL,卸载。
rpm -qa|grep -i mysql
rpm -e XXXXX
注如果出现两条相同的,则使用rpm -e --allmatches
2.安装rpm包。
rpm -ivh MySQL-server-community-5.1.37-0.rhel5.x86_64.rpm
rpm -ivh MySQL-shared-community-5.1.37-0.rhel5.x86_64.rpm
rpm -ivh MySQL-devel-community-5.1.37-0.rhel5.x86_64.rpm
rpm -ivh MySQL-client-community-5.1.37-0.rhel5.x86_64.rpm
3.cp 参数文件到 /etc/my.cnf
find / -name "my*.cnf"
添加参数
transaction-isolation=READ-COMMITTED
default-storage-engine=INNODB
innodb_flush_log_at_trx_commit=2
4.更新权限及用户
mysql -u root -p
use mysql;
select user,host from user;
delete from user where user <> 'root';
delete from user where host <> 'localhost';
update user set host ='%' where user ='root';
select user,host from user;
更新user表到如下状态
mysql> select user,host from user;
+------+------+
| user | host |
+------+------+
| root | %    |
+------+------+
1 row in set (0.00 sec)
创建用户
grant select,insert,update,delete,create,drop,alter,index,RELOAD, lock tables, execute, create routine, alter routine,Create temporary tables 
on *.* to mysql@"%" identified by "123456";
set global transaction isolation level read committed;
set session transaction isolation level read committed;
更新权限
flush privileges;
5.设置密码(123456)
mysqladmin -u root -p password ×××
####mysqladmin -u root -p password mypasswd
6.重启服务,验证设置。
/etc/init.d/mysql restart
登陆mysql
卸载驱动
rpm -e --justdb mysql-connector-odbc-5.1.5-0
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1234 K
bytes of memory
MySQL 忘记口令的解决办法
如果 MySQL 正在运行,首先杀之: killall -TERM mysqld。
启动 MySQL :bin/safe_mysqld --skip-grant-tables &
就可以不需要密码就进入 MySQL 了。
然后就是
use mysql;
update user set password=password("new_pass") where user="root";
update user set password=password(


相关文档:

实战Linux Bluetooth编程(三) HCI层编程

1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI)  就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......

实战Linux Bluetooth编程 (七) SDP协议

Service Discovery Protocol(SDP)提供一种能力,让应用程序有方法发现哪种服务可用以及这种服务的特性。
服务发现协议(SDP或Bluetooth SDP)在蓝牙协议栈中对蓝牙环境中的应用程序有特殊的含意,发现哪个服务是可用的和确定这些可用服务的特征。SDP定义了bluetooth client发现可用bluetooth server服务和它们的特征的方法。 ......

Linux绿坝

DansGuardian
, written by SmoothWall Ltd and others, is content-control software: software designed to control which websites users can access. It also includes virus filtering and usage monitoring features. DansGuardian must be installed on a Unix or Linux computer, such as a server computer; its ......

linux shell 命令之---- sed 的用法


选定行的范围:,逗号
$ sed -n '/test/,/check/p' 
    example--所有在模板test和check所确定的范围内的行都被打印。
$ sed -n '5,/^test/p' 
    example--打印从第五行开始到第一个以test开始的行之间的所有行。
    
$ sed '/test/,/check/s/$/sed te ......

写得蛮好的linux学习笔记(转)


linux目录架构
/   根目录
/bin    常用的命令 binary file 的目錄
/boot   存放系统启动时必须读取的档案,包括核心 (kernel) 在内
     /boot/grub/menu.lst   GRUB设置
     /boot/vmlinuz   内核
 &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号