Tag Archives: MySQL

Reset Mysql Root Password in XAMPP 在XAMPP中重置MySql密码

默认情况下, 通过XAMPP安装的Mysql Root密码为空.

在XAMPP中重置Mysql密码:

1. Go to http://localhost:port/security/  该链接将会对目前的配置进行安全检查

2. 该页面会检查当前安全配置, 并会带有链接: http://

Posted in DB | Tagged , | Leave a comment

Mysqldump备份数据库语句

使用以下语句备份Mysql数据库:

mysqldump –host=192.168.1.*** –user=root –password=password –compact –result-file
"temp/meta.%time:~0,2%%time:~3,2%.%random%.%random%.sql" dbName
pause

在Windows下课存为bat文件, 执行后将会备份指定服务器上指定的DB到本地文件, 文件名形如: temp/meta.1615.29832.10152.sql.

Posted in DB | Tagged , , | 1 Comment

MySql:#1467 – Failed to read auto-increment value from storage engine

某日, mySql(5.1.30-community)如此报错, 用phpMyAdmin强行插入, 亦是如此:

image

但如直接指定Auto-Increment的 Field, 就可顺利插入.

解决:

修改该自增Filed的属性, 先将其自增属性点掉:

image

保存后, 再点选其自增, 再保存, 问题暂时

Posted in DB | Tagged , | 1 Comment

使用MysqlWorkbench 生成mysql反向工程

首先将MySQL数据库导出, 可使用PhpMyAdmin等工具,

打开WorkBench, File > import > Reverse Enginner MySQL Create Script…

选择导出的mysql文件, 确定即可.

image

Posted in 我靠, 你真是程序员啊 | Tagged , , | Leave a comment

SQL Reserved Words Checker – SQL保留字查询

支持数据库:

SQL Server, MySQL, PostgreSQL, Oracle, DB2, ANSI SQL, ODBC

地址:http://www.petefreitag.com/tools/sql_reserved_words_checker/

演示: 

image

Posted in 我靠, 你真是程序员啊 | Tagged , | Leave a comment