表示 进入内容 541550628
« 先前的 10 新的记录 | 下一步 10 较早的记录 »
Displaying posts with tag: CTO (reset)
mysql navicat提权

MYSQL的服务器上都一般都会安装navicat管理工具 有二个方法提权: 1、navicat管理的MySQL服务器信息(一般是root帐户)是存在注册表里的,具体是HKEY_CURRENT_USER\Software\PremiumSoft\Navicat\Servers下,导出注册表导入到本机然后星号察看就OK了。

【服务器】  【mysql】  【日志】  【cto】  【Blog】  【navicat】   …

[获取更多]
Table '' is marked as crashed and should be repaired 解决方法

解决方法:

找到mysql的安装目录的bin/myisamchk工具,在命令行中输入:

1

myisamchk -c -r ../data/mysql/user.MYI

然后myisamchk 工具会帮助你恢复数据表的索引。

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

orzdba监控工具【增加远程监控】

orzdba工具默认必须在本地使用,这不是很方便,现增加了远程调用。

使用方法: ./orzdba_remote --host=192.168.148.1 --user=admin  --password=123456  --port=3308 -mysql -sys

附件下载脚本。

【mysql】  【脚本】  【监控工具】  【cto】  【Blog】   点击查看原文>

mysql创建新用户并授权访问操作该数据库

1.mysql -uroot -p 2.输入密码: 3.update mysql.user set authentication_string=password('123456') where user='oneuser' and Host = '%'; 4.grant all privileges on onetable.* to oneuser@'%' identified by '123456'; 5.flush privileges;

然后外部连接数据库。

【mysql】  【数据库】  【BY】  【grant】  【update】  【cto】  【Blog】   …

[获取更多]
mysql表修复脚本

  #!/bin/bash  #author:itnihao  #mail:itnihao@qq.com  #date 2013-02-18  #version v1.0  #function:repair mysql table        User=root      Password=123456      Host=192.

【mysql】  【脚本】  【database】  【cto】  【Blog】  【Bash】   …

[获取更多]
mysql批量修改表引擎

生成修改的语句 SELECT CONCAT('ALTER TABLE ',table_name,' ENGINE=InnoDB;') FROM information_schema.tables WHERE table_schema='ambari' AND ENGINE='MyISAM';

本文转自 yntmdr 51CTO博客,原文链接:http://blog.

【mysql】  【innodb】  【Ambari】  【cto】  【Blog】  【myisam】   点击查看原文>

[MySQL FAQ]系列 -- 如何快速比较查询结果是否一致

利用mysql客户端的pager功能即可: mysql> pager md5sum - PAGER set to 'md5sum -' mysql> select * from user; b20bd3864962507e2e05cd8706440ffd - 3 rows in set (0.

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

Linux下查看nginx、apache、mysql和php的编译参数

 

Linux下查看nginx,apache,mysql,php的编译参数1、nginx编译参数:#/usr/local/nginx/sbin/nginx -V(小写的v只能看版本号)2、apache编译参数:# cat /usr/local/apache/build/config.

【nginx】  【linux】  【php】  【mysql】  【Apache】  【cto】  【Blog】   …

[获取更多]
innodb_log_file_size

优化innodb_log_file_size 参数调整后报错  InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes

解决办法 : 删除/usr/local/mysql/var/ib_logfile0...

【mysql】  【innodb】  【LOG】  【file】  【cto】  【Blog】   点击查看原文>

Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

/usr/local/mysql/bin/mysqldump -uroot -pxxxxx --all-databases > all.sql mysql用mysqldump导出数据库时提示“-- Warning: Skipping the data of table mysql.

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

表示 进入内容 541550628
« 先前的 10 新的记录 | 下一步 10 较早的记录 »