摘要:善于使用 mysqld.exe --console来得到提示
阅读全文
随笔分类 - mysql
摘要:重要一点: 编辑mysql\bin\my.ini在[mysqld]的段中加上一句:skip-grant-tables 原文地址:http://www.2cto.com/database/201211/169504.html的ERROR1130(HY000):Host'localhost'解决方法ERROR1130(HY000):Host 'localhost' is not allowed toconnectto this MySQL server www.2cto.com 出现原因:mysql只有一个root用户,修改root密码后选了MD5,提交后,重新登陆
阅读全文
摘要:[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '#首先确定sql并没有语法错误 。之后一般是sql文件的编码导致的,可以尝试切换不同的编码再运行。比如我的一个sql文件是utf8的,但我修改了文件的一些内容后,再使用utf8编码运行,结果就出现上面的那个错误。之后我切换成ansi ,再使用936 (ANSI/OEM - Simplified
阅读全文
摘要:资料来源:http://www.2cto.com/database/201212/174208.htmlhttp://zhidao.zgsj.com/article/6/201231161128.shtmlhttp://yangtai.blog.51cto.com/334569/213861/1.关闭正在运行的MySQL。 2.打开DOS窗口,转到mysql\bin目录。 3.输入mysqld --skip-grant-tables回车。 如果没有出现提示信息,那就对了。 4.再开一个DOS窗口,转到mysql\bin目录。 5.输入mysql回车,如果成功,将出现MySQL提示符 ...
阅读全文
摘要:使用单引号括起来即可示例: selectcolumn_nameasField,column_typeasType,column_keyas'Key',is_nullableas'Null',column_defaultas'Default',column_commentasExtrafrominformation_schema.columnswheretable_name='allowancelist'
阅读全文
摘要:参考地址:http://dev.mysql.com/doc/refman/5.1/zh/information-schema.html#columns-table 标准名称 SHOW名称 注释 TABLE_CATALOG ...
阅读全文
摘要:原文地址:http://www.codesky.net/article/200910/168518.html服务器:windows2003 ,mysql 5 ,php 4.4问题描述:Can't create a new thread (errno 12)引用:http://bugs.mysql.com/bug.php?id=28387MySQL的默认保留所有打开的线程在“sleep”模式为 10000秒(或8小时),查看mysql Admin的参数也是如此,在进程里查看有很多sleep进程,时间在4000秒以上。修改my.ini,增加2个参数:innodb_thread_sleep_
阅读全文