表示 进入内容 2412501042
« 先前的 10 新的记录 | 下一步 10 较早的记录 »
Displaying posts with tag: Blog (reset)
MySQL数据库密码重置

1、停止数据库 2、mysqld_safe --skip-grant-tables & 3、use mysql; 4、update user set password=password("123456") where user='root'; 5、flush privileges; 6、重启mys...

【mysql】  【数据库】  【update】  【cto】  【Blog】   点击查看原文>

mysql的show status详解

http://lxneng.iteye.com/blog/451985 通过show status 来优化MySQL数据库   http://blog.chinaunix.net/uid-21879027-id-3032826.

【mysql】  【数据库】  【测试】  【html】  【cto】  【Blog】  【ITeye】   点击查看原文>

MYSQL 随机取出一条数据

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】   点击查看原文>

mysql 使用mysqldump 备份和还原

使用mysqldump实现数据库的备份和还原 一、备份

mysqldump -uroot -p --opt bbs | gzip > back.sql          

bbs为数据库   --opt 为Mysqldump的参数 把数据压缩 快速的输出 二、恢复  

mysql -uroot -p bbs
【mysql】  【gzip】  【SQL】  【数据库】  【bbs】  【Create】   …

[获取更多]
[MySQL FAQ]系列 -- 如何利用触发器实现账户权限审计

一个简单的例子: 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】   …

[获取更多]
php同时连接mssql和mysql

前几天研究了怎么让php同时连接mssql和mysql,让然还是因为有需求了。   网上google了一下发现真是晕啊,能用--with-mssql  --with-pdo-dblib这两个编译选项做,还需要freeTDS和unixODBC。

【php】  【mysql】  【yum】  【配置】  【测试】  【google】  【开发环境】   …

[获取更多]
mysql5.7更改密码

update mysql.user set authentication_string=password('12345') where user='root' and Host = 'localhost';

本文转自 小小三郎1 51CTO博客,原文链接:http://blog.

【mysql】  【update】  【cto】  【Blog】   点击查看原文>

mysql5.7主从复制遇到的坑

datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock replicate-do-db=shopping binlog-do-db=shopping #复制的库 server-id = 3 #skip-grant-tables = 1 sy...

【mysql】  【LOG】  【test】  【Socket】  【Blog】   点击查看原文>

mysql初始化出现:Installing MySQL system tables..../bin/

二进制安装mysql初始化出现: Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.

【mysql】  【yum】  【open】  【file】  【cto】  【Blog】   点击查看原文>

Navicat生成更新数据库结构同步的数据库

1、打开Navicat for MySQL ,找到工具->结构同步。

2、选择目标数据库和源数据库,此时下面就会生成一系列结构同步SQL,于是我们进行第三步

比如你现有一个data, 要把data的结构复制到一个新的test. a.先建好test。

【mysql】  【数据库】  【同步】  【数据同步】  【test】  【html】   …

[获取更多]
表示 进入内容 2412501042
« 先前的 10 新的记录 | 下一步 10 较早的记录 »