database
文章平均质量分 52
zhw_2009
这个作者很懒,什么都没留下…
展开
-
mysql函数学习--过滤html标签
我是这么写的mysql函数,用来过滤数据库某张表里的某个字段里包含的html标签。 当查询这个字段时,我直接调用这个函数就可以了。 [code="sql"]DELIMITER $$ DROP FUNCTION IF EXISTS `abgent_website`.`removeHtml`$$ CREATE FUNCTION `removeHtml`(s varchar(255)...原创 2010-07-19 18:46:20 · 253 阅读 · 0 评论 -
如何设置MySQL远程连接和其他常用命令
登录到MySQL服务器端,在mysql库下执行 [color=darkred]grant all on *.* to 'remote'@'172.16.21.39' [identified by 'password'][/color]; 后面的密码可以不加 如果要设置为任何客户端都可以以root连接的话,可以这么写: [color=darkred]grant all on *.* ...原创 2010-06-09 10:02:34 · 104 阅读 · 0 评论 -
mysql关于权限的管理
转[url]http://hi.baidu.com/liheng_2009/blog/item/0f2aaebd30fc980719d81f9b.html[/url] 查看用户权限 show grants for 你的用户 比如: show grants for root@'localhost'; Grant 用法 GRANT USAGE ON *.* TO 'di...原创 2010-12-31 17:18:41 · 68 阅读 · 0 评论 -
mysql安装问题 The security setting could not be applied to the database 解决办法
转载[url]http://www.onlycto.com/tech/1000/61.html[/url] [quote]相信有朋友遇到过这个问题,特别是不是第一次安装mysql的朋友。 说明:我所说的都是在windowsXP系统下的mysql问题 问题描述一般是 “The security setting could not be applied to the database be...原创 2011-01-12 20:01:05 · 1096 阅读 · 0 评论 -
mysql常用知识总结-导入导出
1. 导出数据库中某个表的内容出某一个文件里 select name into outfile 'c:/bb2.sql' from product_category; 或者 select name into outfile 'c:\\bb2.sql' from product_category; 2. mysql里面一些函数介绍 select STRCMP(a,b);是比较...原创 2010-10-08 16:26:31 · 231 阅读 · 0 评论