基础语法GRANT priv_type ON database.table TO user[IDENTIFIED BY [PASSWORD] 'password'] [,user [IDENTIFIED BY [PASSWORD] 'password']...] priv_type代表允许操作的权限. database.table代表数据库名.表名 注意*代表所有,如database.*代表该数据库的所有表,*.*代表所有数据库的所有表 user由用户名(User)和主机名(Hos…
timerfd是Linux为用户程序提供的一个定时器接口.这个接口基于文件描述符,通过文件描述符的可读事件进行超时通知,所以能够被用于select/poll的应用场景. 一,相关操作函数 #include <sys/timerfd.h> int timerfd_create(int clockid, int flags); int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itim…
timerfd是Linux为用户程序提供的一个定时器接口.这个接口基于文件描述符,通过文件描述符的可读事件进行超时通知,所以能够被用于select/poll的应用场景. 一,相关操作函数 #include <sys/timerfd.h> int timerfd_create(int clockid, int flags); int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itim…
mysql增删改查相关操作 以前用mysql用的少,对于数据库相关的操作不熟悉,现在开始要接触数据库了,记录一下相关的基础操作吧. 1.数据库的授权操作 # mysql -u root -p Enter password: mysql> grant all privileges on *.* to root@'%' identified by '<password>' with grant option; ## 表示为root用户添加所有数据库所有权限,并可以给其他人授权. mysql&…
apache系统故障排查方案及相关操作知识 1.查看系统开的apache服务在哪个端口监听,有几个apache在服务,它的初始pid是多少 netstat -alop |grep LISTEN |grep httpd 2.从配置文件中查看当前apache的pid文件的位置vi /usr/local/apache/conf/httpd.conf ## PidFile: The file in which the server should record its process# identif…