摘要:
连接到mysql,依次运行以下命令 mysql -u root -pmysql> use mysql;mysql> update user set host = '%' where user = 'root';mysql> FLUSH PRIVILEGES;mysql> GRANT ALL PRIV 阅读全文
摘要:
现这种错误明显就是 mysql_connect 之后忘记 mysql_close,当大量的connect之后,就会出现Too many connections的错误。正常的mysql_connect 之后调用 mysql_close()关闭连接,但在连接错误时,会者mysql_real_query( 阅读全文