表示 进入内容 131 去 140 的 628 « 先前的 10 新的记录 | 下一步 10 较早的记录 » Displaying posts with tag: CTO (reset) Nov 17 2017 MYSQL 随机取出一条数据 Posted by mysql-云栖社区 on Fri 17 Nov 2017 12:35 UTC Tags: Blog, MySQL, CTO, fetch SELECT MIN(id), MAX(id) FROM tablename; Fetch the result into $a $id=rand($a[0],$a[1]); SELECT * FROM tablename WHERE id>='$id' LIMIT 1 本文转自许琴 51CTO博客,原文链接:http://blog. 【mysql】 【fetch】 【cto】 【Blog】 点击查看原文> Nov 17 2017 mysql 使用mysqldump 备份和还原 Posted by mysql-云栖社区 on Fri 17 Nov 2017 12:18 UTC Tags: sql, Blog, database, source, gzip, MySQL, CTO, 数据库, create, bbs 使用mysqldump实现数据库的备份和还原 一、备份 mysqldump -uroot -p --opt bbs | gzip > back.sql bbs为数据库 --opt 为Mysqldump的参数 把数据压缩 快速的输出 二、恢复 mysql -uroot -p bbs 【mysql】 【gzip】 【SQL】 【数据库】 【bbs】 【Create】 …[获取更多] Nov 17 2017 [MySQL FAQ]系列 -- 如何利用触发器实现账户权限审计 Posted by mysql-云栖社区 on Fri 17 Nov 2017 11:57 UTC Tags: faq, Blog, MySQL, CTO, create, 性能 一个简单的例子: delimiter | create trigger before_insert_a before insert on a for each row begin if USER() != 'root@localhost' then insert into log values(user()); end if; end; | 这里不能用 current_user() 代替 user(),因为 current_user() 取得的是创建该trigger的账户。 【faq】 【mysql】 【性能】 【Create】 【cto】 【Blog】 …[获取更多] Nov 17 2017 mysql5.7更改密码 Posted by mysql-云栖社区 on Fri 17 Nov 2017 11:46 UTC Tags: Blog, update, MySQL, CTO update mysql.user set authentication_string=password('12345') where user='root' and Host = 'localhost'; 本文转自 小小三郎1 51CTO博客,原文链接:http://blog. 【mysql】 【update】 【cto】 【Blog】 点击查看原文> Nov 17 2017 mysql初始化出现:Installing MySQL system tables..../bin/ Posted by mysql-云栖社区 on Fri 17 Nov 2017 11:44 UTC Tags: Blog, open, yum, file, MySQL, CTO 二进制安装mysql初始化出现: Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio. 【mysql】 【yum】 【open】 【file】 【cto】 【Blog】 点击查看原文> Nov 17 2017 MySQL与Oracle在SQL语句写法上的一些差异 Posted by mysql-云栖社区 on Fri 17 Nov 2017 08:56 UTC Tags: Oracle, sql, Blog, MySQL, CTO, 函数 1、单分组函数 本文转自 手不要乱摸 51CTO博客,原文链接:http://blog.51cto.com/5880861/1693256 【mysql】 【函数】 【Oracle】 【SQL】 【cto】 【Blog】 点击查看原文> Nov 17 2017 数据库的基本语法 Posted by mysql-云栖社区 on Fri 17 Nov 2017 08:55 UTC Tags: Blog, database, update, MySQL, CTO, 数据库, create, 排序 1、数据库表的操作: 增:insert into 表名(字段1,字段2...)values(值1,值2...); 删:delete from 表名 where 根据条件; 改:update 表名 set 需要修改的字段=’要修改的值’; 查:select * from 表名; 2、数据库... 【mysql】 【数据库】 【排序】 【Create】 【database】 【update】 …[获取更多] Nov 17 2017 mysql多表联合删除 Posted by mysql-云栖社区 on Fri 17 Nov 2017 07:30 UTC Tags: Blog, MySQL, CTO, 数据库 文件一:01.txt文件二:02.txt登录mysql选择数据库表user结构表user_depart结构导入数据到表user导入数据到表user_depart联合删除查看删除后user表的数据查看删除后user_depart表的数据 本文转自 Lee_吉 博客,原文链接: http://blog. 【mysql】 【数据库】 【cto】 【Blog】 点击查看原文> Nov 17 2017 ab压力测试驱动完成web服务器优化配置完成 Posted by mysql-云栖社区 on Fri 17 Nov 2017 05:59 UTC Tags: PHP, sql, Linux, Blog, Web, innodb, myisam, Nginx, MySQL, CTO, 配置, 服务器, 性能, 压力测试 通过ab压力测试很多失败,发现服务器lnmp的nginx有很多502报错,应该是服务器的配置不够优化,涉及linux /nginx/mysql/php针对服务器的内存情况进行调优配置。 mysql5.6 innodb在插入,count(*)同有sql的页面,性能比myisam好。 【nginx】 【linux】 【php】 【服务器】 【mysql】 【innodb】 …[获取更多] Nov 17 2017 Linux 常用指令 Posted by mysql-云栖社区 on Fri 17 Nov 2017 00:05 UTC Tags: Linux, Blog, MySQL, CTO, 数据库 1 搜索源代码 find . -exec grep -Hna 'libiconv_open_into' {} \; 2 重定向make指令异常到文件 make > logerr.txt 2>&1 3 登陆mysql数据库 mysql -u root -p 本文转自fengyuzaitu 51CTO博客,原文链接:http://blog. 【linux】 【mysql】 【数据库】 【cto】 【Blog】 点击查看原文> 表示 进入内容 131 去 140 的 628 « 先前的 10 新的记录 | 下一步 10 较早的记录 » Oracle MySQL Blogs Oracle's MySQL Blog (31) MySQL 其他链接 MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums